public class DiagramBookmark extends java.lang.Object implements NotifyPropertyChanged
| Constructor and Description |
|---|
DiagramBookmark()
Initializes a new instance of the
DiagramBookmark class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers a PropertyChangeListener.
|
Brush |
getBrush()
Gets the custom visual brush used to outline or highlight this zone.
|
java.awt.Image |
getIcon()
Gets the optional image icon used to represent this bookmark pin.
|
java.awt.geom.Rectangle2D |
getTargetBounds()
Gets the logical boundaries of this bookmark zone in diagram document units.
|
java.lang.String |
getTitle()
Gets the display title of this bookmark.
|
void |
loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Loads the bookmark content from a JsonObject.
|
void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
Loads the bookmark content from an XML element.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters a PropertyChangeListener.
|
void |
saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Saves the bookmark content into a JsonObject.
|
void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
Saves the bookmark content into an XML element.
|
void |
setBrush(Brush value)
Sets the custom visual brush used to outline or highlight this zone.
|
void |
setIcon(java.awt.Image value)
Sets the optional image icon used to represent this bookmark pin.
|
void |
setTargetBounds(java.awt.geom.Rectangle2D value)
Sets the logical boundaries of this bookmark zone in diagram document units.
|
void |
setTitle(java.lang.String value)
Sets the display title of this bookmark.
|
public DiagramBookmark()
DiagramBookmark class.public java.lang.String getTitle()
String containing the title.public void setTitle(java.lang.String value)
value - A String containing the title.public java.awt.geom.Rectangle2D getTargetBounds()
Rectangle2D specifying the target bounds.public void setTargetBounds(java.awt.geom.Rectangle2D value)
value - A Rectangle2D specifying the target bounds.public Brush getBrush()
Brush instance, or null.public void setBrush(Brush value)
value - A Brush instance, or null.public java.awt.Image getIcon()
Image instance, or null.public void setIcon(java.awt.Image value)
value - An Image instance, or null.public void saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
xmlElement - An XML Element to write to.context - An XmlPersistContext context.public void loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
throws javax.xml.transform.TransformerException,
com.mindfusion.common.XmlException
xmlElement - An XML Element to read from.context - An XmlPersistContext context.javax.xml.transform.TransformerExceptioncom.mindfusion.common.XmlExceptionpublic void saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
obj - A JsonObject to write to.context - A JsonPersistContext context.public void loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
obj - A JsonObject to read from.context - A JsonPersistContext context.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
NotifyPropertyChangedaddPropertyChangeListener in interface NotifyPropertyChangedlistener - An object implementing the PropertyChangeListener interface.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
NotifyPropertyChangedremovePropertyChangeListener in interface NotifyPropertyChangedlistener - An object implementing the PropertyChangeListener interface.