public class DiagramNode extends Object
Constructor and Description |
---|
DiagramNode(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.
|
List<Assignment> |
getAssignments()
Gets view of the list of assignments of this
connection.
|
String |
getFillColor()
Gets the fill color of this node
|
int |
getHeight()
Gets the height of this node.
|
String |
getId()
Gets the node identifier
|
String |
getName()
Gets the name of this node
|
String |
getOutlineColor()
Gets the outline color of this node
|
Map<String,Object> |
getProperties()
Gets properties specific to the given type.
|
String |
getTextColor()
Gets the text color of this node
|
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(String key,
Object value)
Puts a property.
|
void |
setFillColor(String fillColor)
Sets the fill color of this node
|
void |
setHeight(int height)
Sets the height of this node
|
void |
setName(String name)
Sets the name of this node
|
void |
setOutlineColor(String outlineColor)
Sets the outline color of this node
|
void |
setTextColor(String textColor)
Sets the text color.
|
void |
setTextFont(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(String id, ProcessElementType type, DiagramNode parent)
id
- the identifier of the nodetype
- the type of the nodeparent
- a reference to parent objectpublic String getName()
public void setName(String name)
name
- public String getFillColor()
public void setFillColor(String fillColor)
fillColor
- public String getOutlineColor()
public void setOutlineColor(String outlineColor)
outlineColor
- the outline colorpublic String getTextColor()
public void setTextColor(String textColor)
textColor
- the color used when rendering node textpublic String getTextFont()
public void setTextFont(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 String getId()
public ProcessElementType getType()
public Map<String,Object> getProperties()
public void putProperty(String key, Object value)
key
- value
- public void addAssignment(Assignment assignment)
assignment
- an assignment to be addedpublic List<Assignment> getAssignments()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.