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