Interface IContextButtonPadDeclaration
- All Known Implementing Classes:
AbstractContextButtonPadDeclaration
,SpecialContextButtonPadDeclaration
,StandardContextButtonPadDeclaration
public interface IContextButtonPadDeclaration
This interface provides the visual definition for the context button pad.
The context button pad consists of three pads (top, right, bottom), which are slightly overlapping, so that they build one coherent area. Several context buttons are placed inside those three pads and also outside (e.g. the collapse button).
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the rectangular bounds of the bottom pad.Returns the rectangular bounds around all visible areas of the context button pad.Returns the overlapping rectangular bounds around all visible areas of the context button pad.int
Returns the corner radius which is used to paint all corners of the pad.double
Returns the opacity which is used when painting the pad.Returns the color in which the pads outline is filled.Returns the color in which the inner line of the pads outline is painted.int
Returns the line width which is used to paint the outline of the pad.Returns the color in which the middle line of the pads outline is painted.Returns the color in which the outer line of the pads outline is painted.Returns the context buttons to be placed on the context button pad.Returns the rectangular bounds of the right pad.Returns the top pad style.Returns the rectangular bounds of the top pad.Returns the top pad style.
-
Method Details
-
getPositionedContextButtons
List<PositionedContextButton> getPositionedContextButtons()Returns the context buttons to be placed on the context button pad. EachPositionedContextButton
contains information about the visual definition of the context button.- Returns:
- The context buttons to be placed on the context button pad.
-
getTopPad
Rectangle getTopPad()Returns the rectangular bounds of the top pad. Can be null.- Returns:
- The rectangular bounds of the top pad. Can be null.
-
getRightPad
Rectangle getRightPad()Returns the rectangular bounds of the right pad. Can be null.- Returns:
- The rectangular bounds of the right pad. Can be null.
-
getBottomPad
Rectangle getBottomPad()Returns the rectangular bounds of the bottom pad. Can be null.- Returns:
- The rectangular bounds of the bottom pad. Can be null.
-
getTopPadStyle
IContextButtonPadDeclaration.PadStyle getTopPadStyle()Returns the top pad style.- Returns:
- The top pad style.
-
getRightPadStyle
IContextButtonPadDeclaration.PadStyle getRightPadStyle()Returns the top pad style.- Returns:
- The top pad style.
-
getContainmentRectangles
Returns the rectangular bounds around all visible areas of the context button pad. They might or might not overlap. A point is defined to be on the context button pad, if it is inside one of those rectangles.- Returns:
- The rectangular bounds around all visible areas of the context button pad.
-
getOverlappingContainmentRectangles
Returns the overlapping rectangular bounds around all visible areas of the context button pad. All rectangles overlap and build an area, which has no free space in the middle. A point is defined to be on or inside the context button pad, if it is inside one of those rectangles.- Returns:
- The overlapping rectangular bounds around all visible areas of the context button pad.
-
getPadCornerRadius
int getPadCornerRadius()Returns the corner radius which is used to paint all corners of the pad.- Returns:
- The corner radius which is used to paint all corners of the pad.
-
getPadLineWidth
int getPadLineWidth()Returns the line width which is used to paint the outline of the pad.- Returns:
- The line width which is used to paint the outline of the pad.
-
getPadOuterLineColor
IColorConstant getPadOuterLineColor()Returns the color in which the outer line of the pads outline is painted. Note, that the pad is outlined with three adjacent lines (outer, middle, inner) and then filled inside.- Returns:
- The color in which the outer line of the pads outline is painted.
-
getPadMiddleLineColor
IColorConstant getPadMiddleLineColor()Returns the color in which the middle line of the pads outline is painted. Note, that the pad is outlined with three adjacent lines (outer, middle, inner) and then filled inside.- Returns:
- The color in which the middle line of the pads outline is painted.
-
getPadInnerLineColor
IColorConstant getPadInnerLineColor()Returns the color in which the inner line of the pads outline is painted. Note, that the pad is outlined with three adjacent lines (outer, middle, inner) and then filled inside.- Returns:
- The color in which the inner line of the pads outline is painted.
-
getPadFillColor
IColorConstant getPadFillColor()Returns the color in which the pads outline is filled. Note, that the pad is outlined with three adjacent lines (outer, middle, inner) and then filled inside.- Returns:
- The color in which the pads outline is filled.
-
getPadDefaultOpacity
double getPadDefaultOpacity()Returns the opacity which is used when painting the pad. Possible values are between 0.0 (invisible, transparent) and 1.0 (completely visible, opaque).- Returns:
- The opacity which is used when painting the pad.
-