public class DiagramNode
extends java.lang.Object
Constructor and Description |
---|
DiagramNode(java.lang.String id,
ProcessElementType type,
DiagramNode parent)
Creates a new node.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssignment(Assignment assignment)
Adds an assignment to a list of assignment of this diagram connection.
|
java.util.List<Assignment> |
getAssignments()
Gets view of the list of assignments of this
connection.
|
java.lang.String |
getFillColor()
Gets the fill color of this node
|
int |
getHeight()
Gets the height of this node.
|
java.lang.String |
getId()
Gets the node identifier
|
java.lang.String |
getName()
Gets the name of this node
|
java.lang.String |
getOutlineColor()
Gets the outline color of this node
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Gets properties specific to the given type.
|
java.lang.String |
getTextColor()
Gets the text color of this node
|
java.lang.String |
getTextFont()
Gets the name of the fond used when rendering node text.
|
ProcessElementType |
getType()
Gets the type of this node.
|
int |
getWidth()
Gets the width of this node.
|
int |
getX()
Gets the X coordinate of this node.
|
int |
getY()
Gets the Y coordinate of this node
|
void |
putProperty(java.lang.String key,
java.lang.Object value)
Puts a property.
|
void |
setFillColor(java.lang.String fillColor)
Sets the fill color of this node
|
void |
setHeight(int height)
Sets the height of this node
|
void |
setName(java.lang.String name)
Sets the name of this node
|
void |
setOutlineColor(java.lang.String outlineColor)
Sets the outline color of this node
|
void |
setTextColor(java.lang.String textColor)
Sets the text color.
|
void |
setTextFont(java.lang.String textFont)
Sets the fond name.
|
void |
setWidth(int width)
Sets the width of this node.
|
void |
setX(int x)
Sets the X coordinate of this node
|
void |
setY(int y)
Sets the Y coordinate of this node
|
public DiagramNode(java.lang.String id, ProcessElementType type, DiagramNode parent)
id
- the identifier of the nodetype
- the type of the nodeparent
- a reference to parent objectpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.lang.String getFillColor()
public void setFillColor(java.lang.String fillColor)
fillColor
- public java.lang.String getOutlineColor()
public void setOutlineColor(java.lang.String outlineColor)
outlineColor
- the outline colorpublic java.lang.String getTextColor()
public void setTextColor(java.lang.String textColor)
textColor
- the color used when rendering node textpublic java.lang.String getTextFont()
public void setTextFont(java.lang.String textFont)
textFont
- the font namepublic int getX()
public void setX(int x)
x
- public int getY()
public void setY(int y)
y
- public int getHeight()
public void setHeight(int height)
height
- the heightpublic int getWidth()
public void setWidth(int width)
width
- public java.lang.String getId()
public ProcessElementType getType()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public void putProperty(java.lang.String key, java.lang.Object value)
key
- value
- public void addAssignment(Assignment assignment)
assignment
- an assignment to be addedpublic java.util.List<Assignment> getAssignments()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.