public class StandardContextButtonPadDeclaration extends AbstractContextButtonPadDeclaration
IContextButtonPadDeclaration which is based on
the UX guidelines.IContextButtonPadDeclaration.PadStyle| Constructor and Description |
|---|
StandardContextButtonPadDeclaration(IContextButtonPadData contextButtonPadData) |
| Modifier and Type | Method and Description |
|---|---|
PositionedContextButton |
createButton(IContextButtonEntry entry,
java.awt.Rectangle position)
Creates a
PositionedContextButton for a given context button
entry and position. |
int |
getPadAppendageLength()
Returns the length of the pad appendage, which is shown if the
neighboring pad does not exist.
|
int |
getPadCornerRadius()
Returns the corner radius which is used to paint all corners of the pad.
|
double |
getPadDefaultOpacity()
Returns the opacity which is used when painting the pad.
|
IColorConstant |
getPadFillColor()
Returns the color in which the pads outline is filled.
|
IColorConstant |
getPadInnerLineColor()
Returns the color in which the inner line of the pads outline is painted.
|
int |
getPadLineWidth()
Returns the line width which is used to paint the outline of the pad.
|
IColorConstant |
getPadMiddleLineColor()
Returns the color in which the middle line of the pads outline is
painted.
|
IColorConstant |
getPadOuterLineColor()
Returns the color in which the outer line of the pads outline is painted.
|
getBottomPad, getContainmentRectangles, getOverlappingContainmentRectangles, getPositionedContextButtons, getRightPad, getRightPadStyle, getTopPad, getTopPadStylepublic StandardContextButtonPadDeclaration(IContextButtonPadData contextButtonPadData)
public int getPadAppendageLength()
AbstractContextButtonPadDeclarationpublic int getPadLineWidth()
IContextButtonPadDeclarationpublic int getPadCornerRadius()
IContextButtonPadDeclarationpublic IColorConstant getPadOuterLineColor()
IContextButtonPadDeclarationpublic IColorConstant getPadMiddleLineColor()
IContextButtonPadDeclarationpublic IColorConstant getPadInnerLineColor()
IContextButtonPadDeclarationpublic IColorConstant getPadFillColor()
IContextButtonPadDeclarationpublic double getPadDefaultOpacity()
IContextButtonPadDeclarationpublic PositionedContextButton createButton(IContextButtonEntry entry, java.awt.Rectangle position)
AbstractContextButtonPadDeclarationPositionedContextButton 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, ...).createButton in class AbstractContextButtonPadDeclaration