public class ChartUIModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCE_TYPE |
static java.util.UUID |
ROOT_FOLDER |
static int |
SCOPE |
Constructor and Description |
---|
ChartUIModel() |
ChartUIModel(ChartUIModel parentModel)
Creates a chart UI model that is part of a parallel section
|
Modifier and Type | Method and Description |
---|---|
void |
addChartElement(ChartUIElement element) |
void |
addChartUIModelListener(ChartUIModelListener listener) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
static ChartUIModel |
createNew()
Creates a new chart with a begin step at x=5, y=1
|
com.google.common.base.Optional<ChartUIElement> |
find(int x,
int y) |
com.google.common.base.Optional<ChartUIElement> |
find(int x,
int y,
ElementType type) |
com.google.common.base.Optional<ChartUIElement> |
find(java.util.UUID id) |
java.util.List<ChartUIElement> |
findElementsAt(int x,
int y) |
java.util.List<ChartUIElement> |
findParallelBegins()
Find the elements that start the parallel branches.
|
protected void |
fireElementAdded(ChartUIElement element) |
protected void |
fireElementRemoved(ChartUIElement element) |
protected void |
fireStructureChanged() |
static ChartUIModel |
fromXML(org.w3c.dom.Element sfcElement,
StepRegistry registry) |
static ChartUIModel |
fromXML(java.io.InputStream xmlInput,
StepRegistry registry)
Parses the input stream as XML which should represent a ChartUIModel
|
java.awt.Dimension |
getCanvasSize() |
java.lang.Iterable<ChartUIElement> |
getChartElements()
Return an iterable view of all chart elements.
|
static LinkDirection |
getConnectivity(ChartUIElement element,
Edge direction) |
LinkDirection |
getConnectivityAt(int x,
int y,
Edge direction)
Tests whether the element at the given location is connectable on the given edge, and if so, what direction the
connection should be
|
ChartExecutionMode |
getExecutionMode() |
java.lang.String |
getOnAbortScript() |
java.lang.String |
getOnCancelScript() |
java.lang.String |
getOnStartScript() |
java.lang.String |
getOnStopScript() |
com.google.common.base.Optional<ChartUIModel> |
getParentModel() |
ChartUIModel |
getParentModelSerializer()
Deprecated.
|
java.util.List<ChartUIElement> |
getSFCElements()
Deprecated.
|
float |
getZoom()
Returns the zoom amount.
|
int |
hashCode() |
boolean |
isHotEditable() |
boolean |
isParallelSectionModel() |
boolean |
isPersistState() |
static java.awt.Dimension |
parseDimension(java.lang.String attributeValue) |
void |
removeChartElement(java.util.UUID id) |
void |
removeChartUIModelListener(ChartUIModelListener listener) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
void |
setCanvasSize(java.awt.Dimension canvasSize) |
void |
setExecutionMode(ChartExecutionMode executionMode) |
void |
setHotEditable(boolean hotEditable) |
void |
setOnAbortScript(java.lang.String onAbortScript) |
void |
setOnCancelScript(java.lang.String onCancelScript) |
void |
setOnStartScript(java.lang.String onStartScript) |
void |
setOnStopScript(java.lang.String onStopScript) |
void |
setParentModelSerializer(ChartUIModel parentModel)
Deprecated.
|
void |
setPersistState(boolean persistState) |
void |
setSFCElements(java.util.List<ChartUIElement> elements)
Deprecated.
|
void |
setZoom(float zoom) |
java.lang.String |
toXML(StepRegistry registry) |
void |
toXML(javax.xml.stream.XMLStreamWriter writer,
StepRegistry registry)
Outputs this chart UI model to the XML stream.
|
public static final java.lang.String RESOURCE_TYPE
public static final int SCOPE
public static final java.util.UUID ROOT_FOLDER
public ChartUIModel()
public ChartUIModel(ChartUIModel parentModel)
public static ChartUIModel createNew()
public java.lang.String toXML(StepRegistry registry) throws java.lang.Exception
java.lang.Exception
public void toXML(javax.xml.stream.XMLStreamWriter writer, StepRegistry registry) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public static ChartUIModel fromXML(java.io.InputStream xmlInput, StepRegistry registry) throws XMLParseException
XMLParseException
public static ChartUIModel fromXML(org.w3c.dom.Element sfcElement, StepRegistry registry) throws XMLParseException
XMLParseException
public static java.awt.Dimension parseDimension(java.lang.String attributeValue)
protected void fireStructureChanged()
protected void fireElementAdded(ChartUIElement element)
protected void fireElementRemoved(ChartUIElement element)
public boolean isParallelSectionModel()
public com.google.common.base.Optional<ChartUIModel> getParentModel()
@Deprecated public ChartUIModel getParentModelSerializer()
@Deprecated public void setParentModelSerializer(ChartUIModel parentModel)
public java.lang.Iterable<ChartUIElement> getChartElements()
public com.google.common.base.Optional<ChartUIElement> find(java.util.UUID id)
public com.google.common.base.Optional<ChartUIElement> find(int x, int y)
public com.google.common.base.Optional<ChartUIElement> find(int x, int y, ElementType type)
public java.util.List<ChartUIElement> findElementsAt(int x, int y)
public java.util.List<ChartUIElement> findParallelBegins()
public LinkDirection getConnectivityAt(int x, int y, Edge direction)
public static LinkDirection getConnectivity(ChartUIElement element, Edge direction)
public void addChartElement(ChartUIElement element)
public void removeChartElement(java.util.UUID id)
public float getZoom()
public void setZoom(float zoom)
public java.awt.Dimension getCanvasSize()
public void setCanvasSize(java.awt.Dimension canvasSize)
public int hashCode()
hashCode
in class java.lang.Object
@Deprecated public java.util.List<ChartUIElement> getSFCElements()
@Deprecated public void setSFCElements(java.util.List<ChartUIElement> elements)
public void addChartUIModelListener(ChartUIModelListener listener)
public void removeChartUIModelListener(ChartUIModelListener listener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public ChartExecutionMode getExecutionMode()
public void setExecutionMode(ChartExecutionMode executionMode)
public boolean isHotEditable()
public void setHotEditable(boolean hotEditable)
public boolean isPersistState()
public void setPersistState(boolean persistState)
public java.lang.String getOnStartScript()
public void setOnStartScript(java.lang.String onStartScript)
public java.lang.String getOnStopScript()
public void setOnStopScript(java.lang.String onStopScript)
public java.lang.String getOnCancelScript()
public void setOnCancelScript(java.lang.String onCancelScript)
public java.lang.String getOnAbortScript()
public void setOnAbortScript(java.lang.String onAbortScript)