com.mindfusion.diagramming
Class HandlesVisualStyle

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

public class HandlesVisualStyle
extends java.lang.Object
implements java.io.Externalizable

Defines the Pen and Brush objects used to draw items' adjustment handles.

See Also:
Serialized Form

Constructor Summary
HandlesVisualStyle()
          Initializes a new instance of the HandlesVisualStyle class.
 
Method Summary
 Pen getDashPen()
          Gets a Pen used to draw dashed selection frames.
 Brush getHandleBrush()
          Gets a Brush used to fill the interior of selection handles.
 Pen getHandlePen()
          Gets a Pen used to draw the border of selection handles.
 Brush getHatchBrush()
          Gets a Brush used to draw hatch frames.
 Brush getPatternBrush()
          Gets a Brush used to draw selection frames for the MoveOnly style.
 void loadFromXml(java.lang.String elementName, java.lang.String colorElementName, org.w3c.dom.Element parentElement, XmlPersistContext context)
          Loads the style from XML.
 void readExternal(java.io.ObjectInput in)
           
 void saveToXml(java.lang.String elementName, org.w3c.dom.Element parentElement, XmlPersistContext context)
          Saves the style to XML.
 void setDashPen(Pen value)
          Sets a Pen used to draw dashed selection frames.
 void setHandleBrush(Brush value)
          Sets a Brush used to fill the interior of selection handles.
 void setHandlePen(Pen value)
          Sets a Pen used to draw the border of selection handles.
 void setHatchBrush(Brush value)
          Sets a Brush used to draw hatch frames.
 void setPatternBrush(Brush value)
          Sets a Brush used to draw selection frames for the MoveOnly style.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlesVisualStyle

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

Method Detail

saveToXml

public void saveToXml(java.lang.String elementName,
                      org.w3c.dom.Element parentElement,
                      XmlPersistContext context)
Saves the style to XML.

Parameters:
elementName - The name of the element that describes the style.
parentElement - The parent XML element.
context - An <@link XmlPersistContext} object providing contextual information about the serialization process and some helper serialization methods.

loadFromXml

public void loadFromXml(java.lang.String elementName,
                        java.lang.String colorElementName,
                        org.w3c.dom.Element parentElement,
                        XmlPersistContext context)
                 throws javax.xml.transform.TransformerException
Loads the style from XML.

Parameters:
elementName - The name of the element that describes the style.
colorElementName - The name of an element that contains a fallback color.
parentElement - The parent XML element.
context - An <@link XmlPersistContext} object providing contextual information about the serialization process and some helper serialization methods.
Throws:
javax.xml.transform.TransformerException

getHandlePen

public Pen getHandlePen()
Gets a Pen used to draw the border of selection handles.

Returns:

setHandlePen

public void setHandlePen(Pen value)
Sets a Pen used to draw the border of selection handles.

Parameters:
value -

getHandleBrush

public Brush getHandleBrush()
Gets a Brush used to fill the interior of selection handles.

Returns:

setHandleBrush

public void setHandleBrush(Brush value)
Sets a Brush used to fill the interior of selection handles.

Parameters:
value -

getDashPen

public Pen getDashPen()
Gets a Pen used to draw dashed selection frames.

Returns:

setDashPen

public void setDashPen(Pen value)
Sets a Pen used to draw dashed selection frames.

Parameters:
value -

getHatchBrush

public Brush getHatchBrush()
Gets a Brush used to draw hatch frames.

Returns:

setHatchBrush

public void setHatchBrush(Brush value)
Sets a Brush used to draw hatch frames.

Parameters:
value -

getPatternBrush

public Brush getPatternBrush()
Gets a Brush used to draw selection frames for the MoveOnly style.

Returns:

setPatternBrush

public void setPatternBrush(Brush value)
Sets a Brush used to draw selection frames for the MoveOnly style.

Parameters:
value -

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException