com.mindfusion.diagramming
Class DiagramStyle

java.lang.Object
  extended by com.mindfusion.diagramming.Style
      extended by com.mindfusion.diagramming.DiagramStyle
All Implemented Interfaces:
NotifyPropertyChanged, java.io.Externalizable, java.io.Serializable

public class DiagramStyle
extends Style

Represents a reusable set of properties that define the appearance of diagrams.

See Also:
Serialized Form

Constructor Summary
DiagramStyle()
          Initializes a new instance of the DiagramStyle class.
 
Method Summary
 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.
 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.
 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 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.
 
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

DiagramStyle

public DiagramStyle()
Initializes a new instance of the DiagramStyle class.

Method Detail

getBackBrush

public Brush getBackBrush()
Gets the brush used for painting the diagram background.


setBackBrush

public void setBackBrush(Brush value)
Sets the brush used for painting the diagram background.


getNodeEffects

public java.util.List<NodeEffect> getNodeEffects()
Gets a list with all effects applied to the nodes of this diagram.


getFontFamily

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


setFontFamily

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


getFontSize

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


setFontSize

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


getFontStyle

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


setFontStyle

public void setFontStyle(int value)
Gets the font style of the item texts.


getBrush

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


setBrush

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


getStroke

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


setStroke

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


getStrokeThickness

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


setStrokeThickness

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


getShadowBrush

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


setShadowBrush

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


getTextBrush

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


setTextBrush

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