public class YFlowLayout extends YLayoutNode
Constructor and Description |
---|
YFlowLayout(YExternalNetElement source,
YExternalNetElement target,
java.text.NumberFormat formatter)
Creates a YFlowLayout object
|
Modifier and Type | Method and Description |
---|---|
protected XNode |
getAttributesNode() |
java.lang.String |
getID()
Gets the id of this flow, for indexing purposes
|
java.lang.String |
getLabel() |
java.awt.geom.Point2D.Double |
getLabelPosition() |
java.awt.Color |
getLineColor() |
LineStyle |
getLineStyle() |
java.awt.geom.Point2D.Double |
getOffset() |
java.util.List<java.awt.geom.Point2D.Double> |
getPoints() |
YExternalNetElement |
getSource() |
int |
getSourcePort() |
YExternalNetElement |
getTarget() |
int |
getTargetPort() |
boolean |
hasLabel() |
boolean |
hasPoints() |
protected void |
parse(XNode node)
Parses the layout content for this flow, and populates its layout tree.
|
protected void |
parseAttributes(XNode attributeNode)
Parses any attributes in this node's 'attribute' XML element
|
void |
setLabel(java.lang.String label) |
void |
setLabelPosition(java.awt.geom.Point2D.Double labelPosition) |
void |
setLineColor(java.awt.Color color) |
void |
setLineColor(int rgb) |
void |
setLineStyle(LineStyle style) |
void |
setOffset(java.awt.geom.Point2D.Double offset) |
void |
setPoints(java.util.List<java.awt.geom.Point2D.Double> points) |
void |
setSource(YExternalNetElement source) |
void |
setSourcePort(int sourcePort) |
void |
setTarget(YExternalNetElement target) |
void |
setTargetPort(int targetPort) |
protected XNode |
toXNode()
Creates an XNode representation of this flow's layout, to generate its XML
representation.
|
getBounds, getColor, getDesignNotes, getDesignNotesNode, getFillColor, getFont, getFontNode, getLabelBounds, getLabelColor, getLabelLocation, getLabelNode, getLabelSize, getLocation, getNumberFormatter, getSize, hasDesignNotes, isContainer, parseFont, parseLabel, parseVertexDesignNotes, setBounds, setColor, setColor, setDesignNotes, setFillColor, setFillColor, setFont, setID, setLabelBounds, setLabelColor, setLabelColor, setNumberFormatter
public YFlowLayout(YExternalNetElement source, YExternalNetElement target, java.text.NumberFormat formatter)
source
- the source task/condition for this flowtarget
- the target task/condition for this flowformatter
- a number format for a specific localepublic java.lang.String getID()
getID
in class YLayoutNode
public YExternalNetElement getSource()
public void setSource(YExternalNetElement source)
public YExternalNetElement getTarget()
public void setTarget(YExternalNetElement target)
public int getSourcePort()
public void setSourcePort(int sourcePort)
public int getTargetPort()
public void setTargetPort(int targetPort)
public LineStyle getLineStyle()
public void setLineStyle(LineStyle style)
public java.awt.geom.Point2D.Double getOffset()
public void setOffset(java.awt.geom.Point2D.Double offset)
public java.util.List<java.awt.geom.Point2D.Double> getPoints()
public void setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
public boolean hasPoints()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public boolean hasLabel()
hasLabel
in class YLayoutNode
public java.awt.geom.Point2D.Double getLabelPosition()
public void setLabelPosition(java.awt.geom.Point2D.Double labelPosition)
public java.awt.Color getLineColor()
public void setLineColor(java.awt.Color color)
public void setLineColor(int rgb)
protected void parse(XNode node)
parse
in class YLayoutNode
node
- the XML node describing this net's layoutprotected XNode toXNode()
toXNode
in class YLayoutNode
protected void parseAttributes(XNode attributeNode)
YLayoutNode
parseAttributes
in class YLayoutNode
attributeNode
- the node describing the attributesprotected XNode getAttributesNode()
getAttributesNode
in class YLayoutNode