public class DiagramLinkStyle extends DiagramItemStyle
| Constructor and Description |
|---|
DiagramLinkStyle()
Initializes a new instance of the
DiagramLinkStyle class. |
| Modifier and Type | Method and Description |
|---|---|
Brush |
getHeadStroke()
Gets the brush used to paint the arrowhead outlines of this brush.
|
double |
getHeadStrokeThickness()
Gets the outline thickness of the arrowheads of this brush,
expressed in the current units of measure.
|
DiagramLinkStyleBuilder |
init()
Returns a DiagramLinkStyleBuilder object used to configure this DiagramLinkStyle instance.
|
protected void |
loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Loads the style content from a JsonObject.
|
protected void |
saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Saves the style content into a JsonObject.
|
void |
setHeadStroke(Brush value)
Sets the brush used to paint the arrowhead outlines of this brush.
|
void |
setHeadStrokeThickness(double value)
Sets the outline thickness of the arrowheads of this brush,
expressed in the current units of measure.
|
static DiagramLinkStyleBuilder |
with()
Returns a DiagramLinkStyleBuilder object used to configure and create new DiagramLinkStyle instances.
|
getBrush, getFontFamily, getFontSize, getFontStyle, getFontUnit, getShadowBrush, getStroke, getStrokeThickness, getTextBrush, setBrush, setFontFamily, setFontSize, setFontStyle, setFontUnit, setShadowBrush, setStroke, setStrokeThickness, setTextBrushaddPropertyChangeListener, getValue, isPropertySet, loadFromXml, readExternal, registerProperty, registerType, removePropertyChangeListener, saveToXml, setValue, unsetValue, writeExternalpublic DiagramLinkStyle()
DiagramLinkStyle class.public Brush getHeadStroke()
public void setHeadStroke(Brush value)
public double getHeadStrokeThickness()
public void setHeadStrokeThickness(double value)
public static DiagramLinkStyleBuilder with()
DiagramLinkStyleBuilder instance.public DiagramLinkStyleBuilder init()
DiagramLinkStyleBuilder instance.protected void saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
saveToJson in class DiagramItemStyleobj - A JsonObject the style's data should be stored into.context - A JsonPersistContext object providing contextual information
about the serialization process and some helper serialization methods.protected void loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
loadFromJson in class DiagramItemStyleobj - A JsonObject containing the style's data.context - A JsonPersistContext object providing contextual information about
the serialization process and some helper serialization methods.