public abstract class AbstractContextButtonPadDeclaration extends java.lang.Object implements IContextButtonPadDeclaration
IContextButtonPadDeclaration
. The calculation of
the visual definition of the context button pad is based on a reference
rectangle (around which the context pad is aligned) and on the context button
entries (which provided the functionality of the context buttons).IContextButtonPadDeclaration.PadStyle
Constructor and Description |
---|
AbstractContextButtonPadDeclaration(IContextButtonPadData contextButtonPadData)
Creates a new AbstractContextButtonPadDeclaration.
|
Modifier and Type | Method and Description |
---|---|
abstract PositionedContextButton |
createButton(IContextButtonEntry entry,
java.awt.Rectangle position)
Creates a
PositionedContextButton for a given context button
entry and position. |
java.awt.Rectangle |
getBottomPad()
Returns the rectangular bounds of the bottom pad.
|
java.util.List<java.awt.Rectangle> |
getContainmentRectangles()
Returns the rectangular bounds around all visible areas of the context
button pad.
|
java.util.List<java.awt.Rectangle> |
getOverlappingContainmentRectangles()
Returns the overlapping rectangular bounds around all visible areas of
the context button pad.
|
java.util.List<PositionedContextButton> |
getPositionedContextButtons()
Returns the list of all positioned context buttons.
|
java.awt.Rectangle |
getRightPad()
Returns the rectangular bounds of the right pad.
|
IContextButtonPadDeclaration.PadStyle |
getRightPadStyle()
Returns the right pad style.
|
java.awt.Rectangle |
getTopPad()
Returns the rectangular bounds of the top pad.
|
IContextButtonPadDeclaration.PadStyle |
getTopPadStyle()
Returns the top pad style.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPadCornerRadius, getPadDefaultOpacity, getPadFillColor, getPadInnerLineColor, getPadLineWidth, getPadMiddleLineColor, getPadOuterLineColor
public AbstractContextButtonPadDeclaration(IContextButtonPadData contextButtonPadData)
referenceRectangle
- The original reference rectangle as described in
getOriginalReferenceRectangle()
contextButtonPadData
- The context button data containing the
IContextButtonEntry
public abstract PositionedContextButton createButton(IContextButtonEntry entry, java.awt.Rectangle position)
PositionedContextButton
for a given context button
entry and position. This method can be implemented to set all the visual
attributes of the context buttons (line-width, color, opacity, ...).public java.awt.Rectangle getTopPad()
initializeRectangles()
. It
can be null.getTopPad
in interface IContextButtonPadDeclaration
public java.awt.Rectangle getRightPad()
initializeRectangles()
. It
can be null.getRightPad
in interface IContextButtonPadDeclaration
public java.awt.Rectangle getBottomPad()
initializeRectangles()
. It
can be null.getBottomPad
in interface IContextButtonPadDeclaration
public IContextButtonPadDeclaration.PadStyle getTopPadStyle()
initializeRectangles()
.getTopPadStyle
in interface IContextButtonPadDeclaration
public IContextButtonPadDeclaration.PadStyle getRightPadStyle()
initializeRectangles()
.getRightPadStyle
in interface IContextButtonPadDeclaration
public final java.util.List<PositionedContextButton> getPositionedContextButtons()
initializeButtonPositions()
.getPositionedContextButtons
in interface IContextButtonPadDeclaration
public final java.util.List<java.awt.Rectangle> getContainmentRectangles()
getContainmentRectangles
in interface IContextButtonPadDeclaration
public final java.util.List<java.awt.Rectangle> getOverlappingContainmentRectangles()
getOverlappingContainmentRectangles
in interface IContextButtonPadDeclaration