public class BorderDecorator extends AbstractDecorator implements IBorderDecorator
IDecorator.| Constructor and Description |
|---|
BorderDecorator()
Creates a new border decorator that decorates a shape with a border.
|
BorderDecorator(IColorConstant borderColor,
java.lang.Integer lineWidth,
java.lang.Integer lineStyle)
Creates a new border decorator that decorates a shape with a border with
the given settings.
|
| Modifier and Type | Method and 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.
|
void |
setBorderColor(IColorConstant borderColor)
Sets the color to be used for the border line.
|
void |
setBorderStyle(java.lang.Integer lineStyle)
Sets the style that will be used for the border line.
|
void |
setBorderWidth(java.lang.Integer lineWidth)
Sets the width that will be used for the border line.
|
getMessage, setMessageequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessage, setMessagepublic BorderDecorator()
public BorderDecorator(IColorConstant borderColor, java.lang.Integer lineWidth, java.lang.Integer lineStyle)
borderColor - an IColorConstant defining the color for the border
linelineWidth - an Integer defining the width of the border linelineStyle - an Integer defining the style of the border linepublic IColorConstant getBorderColor()
IBorderDecoratornull) IColorConstant.BLACK is used.getBorderColor in interface IBorderDecoratorIColorConstant defining the colorpublic void setBorderColor(IColorConstant borderColor)
null is set) IColorConstant.BLACK is used.borderColor - public java.lang.Integer getBorderWidth()
IBorderDecoratornull or a value smaller than 1) 1 is used.getBorderWidth in interface IBorderDecoratorInteger defining the width of the border linepublic void setBorderWidth(java.lang.Integer lineWidth)
null or a value smaller than 1 is set) 1 is used.lineWidth - an Integer defining the width of the border linepublic java.lang.Integer getBorderStyle()
IBorderDecorator
Graphics.LINE_SOLIDGraphics.LINE_DASHGraphics.LINE_DASHDOTGraphics.LINE_DASHDOTDOTGraphics.LINE_DOTnull or an invalid value)
Graphics.LINE_SOLID is used.getBorderStyle in interface IBorderDecoratorInteger defining the width of the border stylepublic void setBorderStyle(java.lang.Integer lineStyle)
Graphics.LINE_SOLIDGraphics.LINE_DASHGraphics.LINE_DASHDOTGraphics.LINE_DASHDOTDOTGraphics.LINE_DOTnull or an invalid value is set)
Graphics.LINE_SOLID is used.lineStyle - an Integer defining the style of the border line