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, setMessage
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, setMessage
public 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()
IBorderDecorator
null
) IColorConstant.BLACK
is used.getBorderColor
in interface IBorderDecorator
IColorConstant
defining the colorpublic void setBorderColor(IColorConstant borderColor)
null
is set) IColorConstant.BLACK
is used.borderColor
- public java.lang.Integer getBorderWidth()
IBorderDecorator
null
or a value smaller than 1) 1 is used.getBorderWidth
in interface IBorderDecorator
Integer
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_SOLID
Graphics.LINE_DASH
Graphics.LINE_DASHDOT
Graphics.LINE_DASHDOTDOT
Graphics.LINE_DOT
null
or an invalid value)
Graphics.LINE_SOLID
is used.getBorderStyle
in interface IBorderDecorator
Integer
defining the width of the border stylepublic void setBorderStyle(java.lang.Integer lineStyle)
Graphics.LINE_SOLID
Graphics.LINE_DASH
Graphics.LINE_DASHDOT
Graphics.LINE_DASHDOTDOT
Graphics.LINE_DOT
null
or an invalid value is set)
Graphics.LINE_SOLID
is used.lineStyle
- an Integer defining the style of the border line