public class DiagramConnection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DiagramConnection.Type |
Constructor and Description |
---|
DiagramConnection(java.lang.String id)
Creates a new connection of type flow.
|
DiagramConnection(java.lang.String id,
DiagramConnection.Type type,
com.whitestein.lsps.modeler.diagram.DirectionType direction)
Creates a connection with the given type and direction.
|
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 unmodifiable view of the list of assignments of this
connection.
|
java.util.List<DiagramPoint> |
getBendpoints()
Gets an ordered list of bend points of this connection.
|
java.lang.String |
getColor()
Gets the connector color
|
java.lang.String |
getDirection()
Gets the direction of this connection.
|
java.lang.String |
getGuard()
Gets the guard expression of this connection
|
java.lang.String |
getId()
Gets the identifier of the connection element.
|
java.lang.String |
getName()
Gets the name of this connection.
|
java.lang.String |
getSource()
Gets the identifier of the source node.
|
java.lang.String |
getSourceAnchor() |
java.lang.String |
getStyle()
Gets the line style.
|
java.lang.String |
getTarget()
Gets the identifier of the target node.
|
java.lang.String |
getTargetAnchor() |
java.lang.String |
getTextColor()
Gets the text color.
|
java.lang.String |
getTextFont()
Gets the name of the font used by the text
|
DiagramConnection.Type |
getType()
Gets the type of this connection.
|
int |
getWidth()
Gets the connector width.
|
boolean |
isDefaultFlow()
Indicates whether this connection is a default flow.
|
boolean |
isRounded()
Indicates if the line is rounded at bend points.
|
void |
setColor(java.lang.String color)
Sets the connector color
|
void |
setDefaultFlow(boolean defaultFlow)
Sets the indicator whether this connection is default flow or not.
|
void |
setDirectionEnum(com.whitestein.lsps.modeler.diagram.DirectionType dir)
Sets the direction type value.
|
void |
setGuard(java.lang.String guard)
Set the guard expression of this connection
|
void |
setName(java.lang.String name)
Sets the name of this connection.
|
void |
setRounded(boolean rounded)
Sets the flag indicating whether the line should be rounded at bend points
|
void |
setSource(java.lang.String source)
Sets the identifier of the source node
|
void |
setSourceAnchor(java.lang.String sourceAnchor) |
void |
setStyle(java.lang.String style)
Sets the line style.
|
void |
setTarget(java.lang.String target)
Sets the identifier of the target node.
|
void |
setTargetAnchor(java.lang.String targetAnchor) |
void |
setTextColor(java.lang.String textColor)
Sets the text color.
|
void |
setTextFont(java.lang.String fontName)
sets the text font
|
void |
setType(DiagramConnection.Type type)
Sets the type of this connection.
|
void |
setWidth(int width)
Sets the connector width.
|
public DiagramConnection(java.lang.String id)
id
- public DiagramConnection(java.lang.String id, DiagramConnection.Type type, com.whitestein.lsps.modeler.diagram.DirectionType direction)
id
- type
- direction
- public java.lang.String getId()
public java.util.List<DiagramPoint> getBendpoints()
public java.lang.String getColor()
public void setColor(java.lang.String color)
color
- the connector colorpublic int getWidth()
public void setWidth(int width)
width
- the connector widthpublic java.lang.String getTextColor()
public void setTextColor(java.lang.String textColor)
textColor
- the text colorpublic java.lang.String getTextFont()
public void setTextFont(java.lang.String fontName)
fontName
- the name of the text fontpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.lang.String getGuard()
public void setGuard(java.lang.String guard)
guard
- public boolean isDefaultFlow()
true
if this connection is default flow; otherwise false
.public void setDefaultFlow(boolean defaultFlow)
defaultFlow
- public java.lang.String getSourceAnchor()
public void setSourceAnchor(java.lang.String sourceAnchor)
public java.lang.String getTargetAnchor()
public void setTargetAnchor(java.lang.String targetAnchor)
public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- public java.lang.String getTarget()
public void setTarget(java.lang.String target)
target
- public boolean isRounded()
true
if the line at bend points should be rounded; otherwise false
.public void setRounded(boolean rounded)
rounded
- public java.lang.String getStyle()
public void setStyle(java.lang.String style)
style
- getStyle()
public DiagramConnection.Type getType()
public void setType(DiagramConnection.Type type)
type
- the type to set.public java.lang.String getDirection()
DirectionType
public void setDirectionEnum(com.whitestein.lsps.modeler.diagram.DirectionType dir)
dir
- the direction typepublic void addAssignment(Assignment assignment)
assignment
- an assignment to be addedpublic java.util.List<Assignment> getAssignments()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.