public class HandlesVisualStyle
extends java.lang.Object
implements java.io.Externalizable
| Constructor and Description |
|---|
HandlesVisualStyle()
Initializes a new instance of the HandlesVisualStyle class.
|
| Modifier and Type | Method and Description |
|---|---|
Brush |
getControlPointBrush()
Gets a Brush used to fill the interior of shape control points.
|
Brush |
getDashBackground()
Gets a Brush used to draw dash frame background.
|
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.
|
Brush |
getRotationHandleBrush()
Gets a Brush used to fill the interior of the rotation handle.
|
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 |
setControlPointBrush(Brush value)
Sets a Brush used to fill the interior of shape control points.
|
void |
setDashBackground(Brush value)
Sets a Brush used to draw dash frame background.
|
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 |
setRotationHandleBrush(Brush rotationHandleBrush)
Sets a Brush used to fill the interior of the rotation handle.
|
void |
writeExternal(java.io.ObjectOutput out) |
public HandlesVisualStyle()
public void saveToXml(java.lang.String elementName,
org.w3c.dom.Element parentElement,
XmlPersistContext context)
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.public void loadFromXml(java.lang.String elementName,
java.lang.String colorElementName,
org.w3c.dom.Element parentElement,
XmlPersistContext context)
throws javax.xml.transform.TransformerException
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.javax.xml.transform.TransformerExceptionpublic Pen getHandlePen()
Pen instance.public void setHandlePen(Pen value)
value - A Pen instance.public Brush getHandleBrush()
Brush -derived class.public void setHandleBrush(Brush value)
value - Instance of a Brush -derived class.public Brush getRotationHandleBrush()
Brush -derived class.public void setRotationHandleBrush(Brush rotationHandleBrush)
value - Instance of a Brush -derived class.public Brush getControlPointBrush()
Brush -derived class.public void setControlPointBrush(Brush value)
value - Instance of a Brush -derived class.public Pen getDashPen()
Pen instance.public void setDashPen(Pen value)
value - A Pen instance.public Brush getDashBackground()
Brush -derived class.public void setDashBackground(Brush value)
value - Instance of a Brush -derived class.public Brush getHatchBrush()
Brush -derived class.public void setHatchBrush(Brush value)
value - Instance of a Brush -derived class.public Brush getPatternBrush()
Brush -derived class.public void setPatternBrush(Brush value)
value - Instance of a Brush -derived class.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException