public class DiagramItemStyle extends Style
Modifier | Constructor and Description |
---|---|
protected |
DiagramItemStyle()
Initializes a new instance of the
DiagramItemStyle class. |
Modifier and Type | Method and Description |
---|---|
Brush |
getBrush()
Gets the brush used to fill the interior of the item.
|
java.lang.String |
getFontFamily()
Gets the font family of the item text.
|
float |
getFontSize()
Gets the font size of the item text.
|
int |
getFontStyle()
Gets the font style of the item text.
|
GraphicsUnit |
getFontUnit()
Gets the measure unit used to specify font size.
|
Brush |
getShadowBrush()
Gets the brush used to paint the shadow of the item.
|
Brush |
getStroke()
Gets the brush used to paint the outline of the item.
|
double |
getStrokeThickness()
Gets the thickness of the item's outline, expressed in the
current units of measure.
|
Brush |
getTextBrush()
Gets the brush used to paint texts inside the item.
|
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 |
setBrush(Brush value)
Sets the brush used to fill the interior of the item.
|
void |
setFontFamily(java.lang.String value)
Sets the font family of the item text.
|
void |
setFontSize(float value)
Sets the font size of the item text.
|
void |
setFontStyle(int value)
Sets the font style of the item text.
|
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 item.
|
void |
setStroke(Brush value)
Sets the brush used to paint the outline of the item.
|
void |
setStrokeThickness(double value)
Sets the thickness of the item's outline, expressed in the
current units of measure.
|
void |
setTextBrush(Brush value)
Sets the brush used to paint texts inside the item.
|
addPropertyChangeListener, getValue, isPropertySet, loadFromXml, readExternal, registerProperty, registerType, removePropertyChangeListener, saveToXml, setValue, unsetValue, writeExternal
protected DiagramItemStyle()
DiagramItemStyle
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 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)