public class DiagramLineChannel
extends java.lang.Object
This class holds a line channel. This is all the relationships to plotted in a vertical or horizontal channel
Modifier and Type | Field and Description |
---|---|
static int |
ABOVE
Above the row
|
static int |
AFTER
After the column
|
static int |
BEFORE
Before the column
|
static int |
BELOW
Below the row
|
static int |
HORIZONTAL
The horizontal orientation
|
static int |
LINE_WIDTH
Line width
|
static int |
VERTICAL
The vertical orientation
|
Constructor and Description |
---|
DiagramLineChannel(int index,
int orientation,
int position)
Constrcust a channel
|
Modifier and Type | Method and Description |
---|---|
void |
addWorkflowRelationship(DiagramWorkflowRelationship rel)
Adds a relationship to the channel
|
int |
getIndex()
Returns the index of the channel this is the row/column
that the channel is associated with
|
java.lang.Object |
getKey()
Generates a unique key for this channel object
|
static java.lang.Object |
getKey(int index,
int orientation,
int position)
Generates a key for a channel object which is unique for the
channel parameters
|
int |
getLineCount()
Returns the count of the lines in the channel
|
int |
getLineSpacing()
Gets the line spacing
|
int |
getLocation()
Returns the location of the channel.
|
int |
getLocation(DiagramWorkflowRelationship rel)
Returns the location of the relationship that belongs to the
channel.This is y coordinate for horizontal channels and
the x coordinate for vertical channels
|
int |
getOrientation()
Returns the orientation of the channel
|
int |
getPosition()
Returns the channel position
|
int |
getSpaceRequired()
Returns the space required to display the channel.
|
java.util.Vector |
getWorkflowRelationships()
Returns the list of relationships in the channel
|
void |
setLineSpacing(int spacing)
Sets the line spacing
|
void |
setLocation(int location)
Sets the location of the start of the channel
|
java.lang.String |
toString()
Returns the string representation of the line channel
|
public static final int VERTICAL
public static final int HORIZONTAL
public static final int ABOVE
public static final int BELOW
public static final int BEFORE
public static final int AFTER
public static final int LINE_WIDTH
public DiagramLineChannel(int index, int orientation, int position)
index
- The index of the channel - row/columnorientation
- The orientation - HORIZONTAL/VERTICALposition
- The position - ABOVE/BELOW/BEFORE/AFTERpublic int getIndex()
public int getOrientation()
public int getPosition()
public void addWorkflowRelationship(DiagramWorkflowRelationship rel)
rel
- The relationship to addpublic java.util.Vector getWorkflowRelationships()
public java.lang.Object getKey()
public int getLineCount()
public int getSpaceRequired()
public int getLocation()
public int getLocation(DiagramWorkflowRelationship rel)
rel
- The relationship to get position forpublic void setLocation(int location)
location
- The starting locationpublic void setLineSpacing(int spacing)
spacing
- The line spacingpublic int getLineSpacing()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.Object getKey(int index, int orientation, int position)
index
- The channel index - this is the row/columnorientation
- The orientation - VERTICAL/HORIZONTALposition
- The position - ABOVE/BELOW/BEFORE/AFTER