public static interface IDGDynamicDecorator.IOverwrittenProperties
For performance issues, no IDiagramGraphic is instantiated at first, but calling getDG(IDiagramHandle)
creates one.
org.eclipse.jface.resource.StringConverter.| Modifier and Type | Method and Description |
|---|---|
IDiagramGraphic |
getDG(IDiagramHandle diagram)
Instantiate an
IDiagramGraphic associated with the current element. |
AbstractDiagram |
getDiagram() |
MObject |
getElement() |
void |
setDrawLineBridges(boolean value)
Indicates whereas bridge are drawn on vertical line segments that cross an horizontal one.
|
void |
setFillColor(java.lang.String value)
Modify the current fill color.
|
void |
setFillMode(int value)
Modify the current fill mode.
|
void |
setFont(java.lang.String value)
Modify the current font.
|
void |
setLineColor(java.lang.String value)
Modify the current line color.
|
void |
setLinePattern(int value)
Modify the current line pattern.
- 0 : Line drawing style for solid lines - 1 : Line drawing style for dashed lines - 2 : Line drawing style for dotted lines - 3 : Line drawing style for alternating dash-dot lines - 4 : Line drawing style for dash-dot-dot lines |
void |
setLineRadius(int value)
Modify the current line radius.
|
void |
setLineWidth(int value)
Modify the current line width.
|
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets the local property value of this graphic element for 'property'.
|
void |
setTextColor(java.lang.String value)
Modify the current text color.
|
IDiagramGraphic getDG(IDiagramHandle diagram)
IDiagramGraphic associated with the current element.
The caller needs to open an IDiagramHandle first, in order to handle the lifecycle of the
graphical element.
diagram - an opened handle to instantiate the graphical model.IDiagramGraphic.MObject getElement()
void setProperty(java.lang.String property,
java.lang.String value)
property - The property namevalue - The property valuevoid setDrawLineBridges(boolean value)
value - The new value of the draw line bridge property.void setFont(java.lang.String value)
throws DataFormatException
This method fails if the value does not represent font data.
A valid font data representation is a string of the form
"" where :
fontname is the name of a font,
style is a font style (one of
"regular", "bold",
"italic", or "bold italic")
height is an integer representing the font height.
Example: "Times New Roman-bold-36".
You may use StringConverter.asString(FontData) if you have
a Font or a FontData.
value - The new font.DataFormatException - if the given value does not represent a font datavoid setLineColor(java.lang.String value)
You may use {@link org.eclipse.jface.resource.StringConverter#asString(org.eclipse.swt.graphics.RGB) to get a color specification with the needed format.
value - The new line color.void setLinePattern(int value)
value - The new line pattern.void setLineRadius(int value)
value - The new line radius.void setLineWidth(int value)
value - The new line width.void setTextColor(java.lang.String value)
You may use {@link org.eclipse.jface.resource.StringConverter#asString(org.eclipse.swt.graphics.RGB) to get a color specification with the needed format.
value - The new text color.void setFillColor(java.lang.String value)
You may use {@link org.eclipse.jface.resource.StringConverter#asString(org.eclipse.swt.graphics.RGB) to get a color specification with the needed format.
value - The new fill color.void setFillMode(int value)
value - The new fill mode.AbstractDiagram getDiagram()