|
||||||||||
| 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 Integer |
lineStyle
|
private Integer |
lineWidth
|
| Constructor Summary | |
|---|---|
BorderDecorator()
Creates a new border decorator that decorates a shape with a border. |
|
BorderDecorator(IColorConstant borderColor,
Integer lineWidth,
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. |
Integer |
getBorderStyle()
Returns the style that will be used for the border line. |
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(Integer lineStyle)
Sets the style that will be used for the border line. |
void |
setBorderWidth(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 Integer lineWidth
private Integer lineStyle
| Constructor Detail |
|---|
public BorderDecorator()
public BorderDecorator(IColorConstant borderColor,
Integer lineWidth,
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 line| Method Detail |
|---|
public 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 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(Integer lineWidth)
null or a value smaller than 1 is set) 1 is used.
lineWidth - an Integer defining the width of the border linepublic Integer getBorderStyle()
IBorderDecorator
org.eclipse.draw2d.Graphics#LINE_SOLIDorg.eclipse.draw2d.Graphics#LINE_DASHorg.eclipse.draw2d.Graphics#LINE_DASHDOTorg.eclipse.draw2d.Graphics#LINE_DASHDOTDOTorg.eclipse.draw2d.Graphics#LINE_DOTnull or an invalid value)
org.eclipse.draw2d.Graphics#LINE_SOLID is used.
getBorderStyle in interface IBorderDecoratorInteger defining the width of the border stylepublic void setBorderStyle(Integer lineStyle)
org.eclipse.draw2d.Graphics#LINE_SOLIDorg.eclipse.draw2d.Graphics#LINE_DASHorg.eclipse.draw2d.Graphics#LINE_DASHDOTorg.eclipse.draw2d.Graphics#LINE_DASHDOTDOTorg.eclipse.draw2d.Graphics#LINE_DOTnull 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 | |||||||||