public class DiagramStyle extends Style
Constructor and Description |
---|
DiagramStyle()
Initializes a new instance of the
DiagramStyle class. |
Modifier and Type | Method and Description |
---|---|
Brush |
getBackBrush()
Gets the brush used for painting the diagram background.
|
Brush |
getBrush()
Gets the brush used to fill the interior of items.
|
java.lang.String |
getFontFamily()
Gets the font family of the item texts.
|
float |
getFontSize()
Gets the font size of the item texts.
|
int |
getFontStyle()
Gets the font style of the item texts.
|
GraphicsUnit |
getFontUnit()
Gets the measure unit used to specify font size.
|
java.util.List<NodeEffect> |
getNodeEffects()
Gets a list with all effects applied to the nodes of this diagram.
|
Brush |
getShadowBrush()
Gets the brush used to paint the shadow of the items.
|
Brush |
getStroke()
Gets the brush used to paint the outline of the items.
|
double |
getStrokeThickness()
Gets the thickness of the items' outline, expressed in the
current units of measure.
|
Brush |
getTextBrush()
Gets the brush used to paint texts inside the items.
|
protected void |
loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Loads the style content from a JSON object.
|
protected void |
saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Saves the style content into a JsonObject.
|
void |
setBackBrush(Brush value)
Sets the brush used for painting the diagram background.
|
void |
setBrush(Brush value)
Sets the brush used to fill the interior of items.
|
void |
setFontFamily(java.lang.String value)
Sets the font family of the item texts.
|
void |
setFontSize(float value)
Sets the font size of the item texts.
|
void |
setFontStyle(int value)
Gets the font style of the item texts.
|
void |
setFontUnit(GraphicsUnit value)
Sets the measure unit used to specify font size.
|
void |
setShadowBrush(Brush value)
Sets the brush used to paint the shadow of the items.
|
void |
setStroke(Brush value)
Sets the brush used to paint the outline of the items.
|
void |
setStrokeThickness(double value)
Sets the thickness of the items' outline, expressed in the
current units of measure.
|
void |
setTextBrush(Brush value)
Sets the brush used to paint texts inside the items.
|
addPropertyChangeListener, getValue, isPropertySet, loadFromXml, readExternal, registerProperty, registerType, removePropertyChangeListener, saveToXml, setValue, unsetValue, writeExternal
public DiagramStyle()
DiagramStyle
class.protected void saveToJson(com.mindfusion.common.JsonObject obj, JsonPersistContext context)
obj
- 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)
obj
- A JsonObject containing the style's data.context
- A JsonPersistContext object providing contextual information about
the serialization process and some helper serialization methods.public Brush getBackBrush()
public void setBackBrush(Brush value)
public java.util.List<NodeEffect> getNodeEffects()
public java.lang.String getFontFamily()
public void setFontFamily(java.lang.String value)
public float getFontSize()
public void setFontSize(float value)
public int getFontStyle()
public void setFontStyle(int value)
public GraphicsUnit getFontUnit()
public void setFontUnit(GraphicsUnit value)
public Brush getBrush()
public void setBrush(Brush value)
public Brush getStroke()
public void setStroke(Brush value)
public double getStrokeThickness()
public void setStrokeThickness(double value)
public Brush getShadowBrush()
public void setShadowBrush(Brush value)
public Brush getTextBrush()
public void setTextBrush(Brush value)