public class ChartUIElement extends BasicPropertySet
Modifier and Type | Field and Description |
---|---|
static Property<java.util.UUID> |
Id |
static Property<java.awt.Point> |
Location |
static Property<java.awt.Rectangle> |
LocationAdjust |
static Property<java.awt.Dimension> |
Size |
static Property<ElementType> |
Type |
Constructor and Description |
---|
ChartUIElement() |
Modifier and Type | Method and Description |
---|---|
ChartUIElement |
copy(java.util.UUID newId) |
static ChartUIElement |
create(ElementType type)
Creates a new element of the given type with a new id
|
void |
fromXml(org.w3c.dom.Element element,
StepRegistry registry,
ChartUIModel parentModel) |
java.util.UUID |
getId() |
java.awt.Point |
getLocation() |
java.awt.Dimension |
getSize() |
ElementType |
getType() |
int |
hashCode() |
boolean |
isLink()
Convenience method to test if this element is of type ElementType.Link
|
void |
toXml(javax.xml.stream.XMLStreamWriter writer,
StepRegistry registry,
java.lang.String tab)
Writes this element to the XML stream.
|
addPropertyChangeListener, addPropertyChangeListener, change, contains, equals, firePropertyChange, get, getCount, getOrDefault, getOrElse, getProperties, getRawValueMap, getValues, isExtended, isInherited, iterator, merge, merge, of, remove, removePropertyChangeListener, removePropertyChangeListener, set, set, setDirect, setRawValueMap, toString
public static final Property<java.util.UUID> Id
public static final Property<ElementType> Type
public static final Property<java.awt.Point> Location
public static final Property<java.awt.Dimension> Size
public static final Property<java.awt.Rectangle> LocationAdjust
public static ChartUIElement create(ElementType type)
public void toXml(javax.xml.stream.XMLStreamWriter writer, StepRegistry registry, java.lang.String tab) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void fromXml(org.w3c.dom.Element element, StepRegistry registry, ChartUIModel parentModel) throws XmlParseException
XmlParseException
public java.util.UUID getId()
public ElementType getType()
public java.awt.Point getLocation()
public java.awt.Dimension getSize()
public boolean isLink()
public ChartUIElement copy(java.util.UUID newId)
public int hashCode()
hashCode
in class java.lang.Object