com.mindfusion.diagramming
Class DiagramItemStyle

java.lang.Object
  extended by com.mindfusion.diagramming.Style
      extended by com.mindfusion.diagramming.DiagramItemStyle
All Implemented Interfaces:
NotifyPropertyChanged, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
DiagramLinkStyle, DiagramNodeStyle

public class DiagramItemStyle
extends Style

Represents a reusable set of properties that define the appearance of diagram items.

See Also:
Serialized Form

Constructor Summary
protected DiagramItemStyle()
          Initializes a new instance of the DiagramItemStyle class.
 
Method Summary
 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.
 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.
 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 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.
 
Methods inherited from class com.mindfusion.diagramming.Style
addPropertyChangeListener, getValue, isPropertySet, loadFromXml, readExternal, registerProperty, registerType, removePropertyChangeListener, saveToXml, setValue, unsetValue, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramItemStyle

protected DiagramItemStyle()
Initializes a new instance of the DiagramItemStyle class.

Method Detail

getFontFamily

public java.lang.String getFontFamily()
Gets the font family of the item text.


setFontFamily

public void setFontFamily(java.lang.String value)
Sets the font family of the item text.


getFontSize

public float getFontSize()
Gets the font size of the item text.


setFontSize

public void setFontSize(float value)
Sets the font size of the item text.


getFontStyle

public int getFontStyle()
Gets the font style of the item text.


setFontStyle

public void setFontStyle(int value)
Sets the font style of the item text.


getBrush

public Brush getBrush()
Gets the brush used to fill the interior of the item.


setBrush

public void setBrush(Brush value)
Sets the brush used to fill the interior of the item.


getStroke

public Brush getStroke()
Gets the brush used to paint the outline of the item.


setStroke

public void setStroke(Brush value)
Sets the brush used to paint the outline of the item.


getStrokeThickness

public double getStrokeThickness()
Gets the thickness of the item's outline, expressed in the current units of measure.


setStrokeThickness

public void setStrokeThickness(double value)
Sets the thickness of the item's outline, expressed in the current units of measure.


getShadowBrush

public Brush getShadowBrush()
Gets the brush used to paint the shadow of the item.


setShadowBrush

public void setShadowBrush(Brush value)
Sets the brush used to paint the shadow of the item.


getTextBrush

public Brush getTextBrush()
Gets the brush used to paint texts inside the item.


setTextBrush

public void setTextBrush(Brush value)
Sets the brush used to paint texts inside the item.