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, waitgetPadCornerRadius, getPadDefaultOpacity, getPadFillColor, getPadInnerLineColor, getPadLineWidth, getPadMiddleLineColor, getPadOuterLineColorpublic AbstractContextButtonPadDeclaration(IContextButtonPadData contextButtonPadData)
referenceRectangle - The original reference rectangle as described in
getOriginalReferenceRectangle()contextButtonPadData - The context button data containing the
IContextButtonEntrypublic 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 IContextButtonPadDeclarationpublic java.awt.Rectangle getRightPad()
initializeRectangles(). It
can be null.getRightPad in interface IContextButtonPadDeclarationpublic java.awt.Rectangle getBottomPad()
initializeRectangles(). It
can be null.getBottomPad in interface IContextButtonPadDeclarationpublic IContextButtonPadDeclaration.PadStyle getTopPadStyle()
initializeRectangles().getTopPadStyle in interface IContextButtonPadDeclarationpublic IContextButtonPadDeclaration.PadStyle getRightPadStyle()
initializeRectangles().getRightPadStyle in interface IContextButtonPadDeclarationpublic final java.util.List<PositionedContextButton> getPositionedContextButtons()
initializeButtonPositions().getPositionedContextButtons in interface IContextButtonPadDeclarationpublic final java.util.List<java.awt.Rectangle> getContainmentRectangles()
getContainmentRectangles in interface IContextButtonPadDeclarationpublic final java.util.List<java.awt.Rectangle> getOverlappingContainmentRectangles()
getOverlappingContainmentRectangles in interface IContextButtonPadDeclaration