|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.tb.AbstractDecorator
org.eclipse.graphiti.tb.BorderDecorator
public class BorderDecorator
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, see IDecorator
.
Field Summary | |
---|---|
private IColorConstant |
borderColor
|
private java.lang.Integer |
lineStyle
|
private java.lang.Integer |
lineWidth
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.graphiti.tb.AbstractDecorator |
---|
getMessage, setMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.tb.IDecorator |
---|
getMessage, setMessage |
Field Detail |
---|
private IColorConstant borderColor
private java.lang.Integer lineWidth
private java.lang.Integer lineStyle
Constructor Detail |
---|
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 lineMethod Detail |
---|
public 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
org.eclipse.draw2d.Graphics#LINE_SOLID
org.eclipse.draw2d.Graphics#LINE_DASH
org.eclipse.draw2d.Graphics#LINE_DASHDOT
org.eclipse.draw2d.Graphics#LINE_DASHDOTDOT
org.eclipse.draw2d.Graphics#LINE_DOT
null
or an invalid value)
org.eclipse.draw2d.Graphics#LINE_SOLID
is used.
getBorderStyle
in interface IBorderDecorator
Integer
defining the width of the border stylepublic void setBorderStyle(java.lang.Integer lineStyle)
org.eclipse.draw2d.Graphics#LINE_SOLID
org.eclipse.draw2d.Graphics#LINE_DASH
org.eclipse.draw2d.Graphics#LINE_DASHDOT
org.eclipse.draw2d.Graphics#LINE_DASHDOTDOT
org.eclipse.draw2d.Graphics#LINE_DOT
null
or an invalid value is set)
org.eclipse.draw2d.Graphics#LINE_SOLID
is used.
lineStyle
- an Integer defining the style of the border line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |