Class ChartUIElement
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.BasicPropertySet
-
- com.inductiveautomation.sfc.uimodel.ChartUIElement
-
- All Implemented Interfaces:
Countable
,Extendable<PropertySet>
,Mergable<PropertySet>
,MutablePropertyValueSource
,ObservablePropertySet
,PropertySet
,PropertyValueSource
,java.io.Serializable
,java.lang.Iterable<PropertyValue>
public class ChartUIElement extends BasicPropertySet
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
BasicPropertySet.Builder
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ChartUIElement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartUIElement
copy(java.util.UUID newId)
static ChartUIElement
create(ElementType type)
Creates a new element of the given type with a new idvoid
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.Linkvoid
toXml(javax.xml.stream.XMLStreamWriter writer, StepRegistry registry, java.lang.String tab)
Writes this element to the XML stream.-
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
addPropertyChangeListener, addPropertyChangeListener, change, coerceValue, contains, equals, firePropertyChange, get, getCount, getExtension, getOrDefault, getOrElse, getProperties, getRaw, getRawValueMap, getValues, isExtended, isInherited, iterator, of, remove, removePropertyChangeListener, removePropertyChangeListener, set, set, setDirect, setImpl, setRawValueMap, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, newDefaultInstance, newExtension
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
getNonNull, getNonNull
-
-
-
-
Field Detail
-
Id
public static final Property<java.util.UUID> Id
-
Type
public static final Property<ElementType> Type
-
Location
public static final Property<java.awt.Point> Location
-
Size
public static final Property<java.awt.Dimension> Size
-
LocationAdjust
public static final Property<java.awt.Rectangle> LocationAdjust
-
-
Method Detail
-
create
public static ChartUIElement create(ElementType type)
Creates a new element of the given type with a new id
-
toXml
public void toXml(javax.xml.stream.XMLStreamWriter writer, StepRegistry registry, java.lang.String tab) throws javax.xml.stream.XMLStreamException
Writes this element to the XML stream. Will open (and close) a new element such as <step> or <transition>, etc.- Throws:
javax.xml.stream.XMLStreamException
-
fromXml
public void fromXml(org.w3c.dom.Element element, StepRegistry registry, ChartUIModel parentModel) throws XmlParseException
- Throws:
XmlParseException
-
getId
public java.util.UUID getId()
-
getType
public ElementType getType()
-
getLocation
public java.awt.Point getLocation()
-
getSize
public java.awt.Dimension getSize()
-
isLink
public boolean isLink()
Convenience method to test if this element is of type ElementType.Link
-
copy
public ChartUIElement copy(java.util.UUID newId)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-