Package org.eclipse.graphiti.tb
Interface IBorderDecorator
-
- All Superinterfaces:
IDecorator
- All Known Implementing Classes:
BorderDecorator
public interface IBorderDecorator extends IDecorator
Border decorators can be used to add a border (a rectangle around the shape) to the visualization of a shape without modifying the dirty state of the displaying editor, seeIDecorator
.- Since:
- 0.9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IColorConstant
getBorderColor()
Returns the color that will be used for the border.java.lang.Integer
getBorderStyle()
Returns the style that will be used for the border line.java.lang.Integer
getBorderWidth()
Returns the width that will be used for the border line.-
Methods inherited from interface org.eclipse.graphiti.tb.IDecorator
getMessage, setMessage
-
-
-
-
Method Detail
-
getBorderColor
IColorConstant getBorderColor()
Returns the color that will be used for the border. By default (when returningnull
)IColorConstant.BLACK
is used.- Returns:
- a
IColorConstant
defining the color
-
getBorderWidth
java.lang.Integer getBorderWidth()
Returns the width that will be used for the border line. By default (when returningnull
or a value smaller than 1) 1 is used.- Returns:
- an
Integer
defining the width of the border line
-
getBorderStyle
java.lang.Integer getBorderStyle()
Returns the style that will be used for the border line. Possible values are:Graphics.LINE_SOLID
Graphics.LINE_DASH
Graphics.LINE_DASHDOT
Graphics.LINE_DASHDOTDOT
Graphics.LINE_DOT
null
or an invalid value)Graphics.LINE_SOLID
is used.- Returns:
- an
Integer
defining the width of the border style
-
-