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, getTopPadStyle
public StandardContextButtonPadDeclaration(IContextButtonPadData contextButtonPadData)
public int getPadAppendageLength()
AbstractContextButtonPadDeclaration
public int getPadLineWidth()
IContextButtonPadDeclaration
public int getPadCornerRadius()
IContextButtonPadDeclaration
public IColorConstant getPadOuterLineColor()
IContextButtonPadDeclaration
public IColorConstant getPadMiddleLineColor()
IContextButtonPadDeclaration
public IColorConstant getPadInnerLineColor()
IContextButtonPadDeclaration
public IColorConstant getPadFillColor()
IContextButtonPadDeclaration
public double getPadDefaultOpacity()
IContextButtonPadDeclaration
public PositionedContextButton createButton(IContextButtonEntry entry, java.awt.Rectangle position)
AbstractContextButtonPadDeclaration
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, ...).createButton
in class AbstractContextButtonPadDeclaration