|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A line in the system. Each line corresponds to a connection in the model. The most prominent point of a line is its starting point, but the 'move' operation actually moves both the start and the end point.
Field Summary |
Fields inherited from interface fdda.graphics.Component |
SEL_ALL, SEL_EQUALS, SEL_MOVABLES, SEL_NOTHING |
Method Summary | |
Color |
getColor()
Returns the color of the line. |
Connection |
getConnection()
Returns the connection that is symbolized by this line. |
double |
getEndX()
Returns the x coordinate of the end point of the line |
double |
getEndY()
Returns the y coordinate of the end point of the line |
double |
getLength()
Returns the length of the line |
double |
getMessageDistancePerCycle()
Returns the distance a message proceeds along the line in one cycle. |
boolean |
isDirected()
Returns whether the line is directed. |
void |
moveEndPoint(double xOffset,
double yOffset)
Moves the end point of the line |
void |
moveStartPoint(double xOffset,
double yOffset)
Moves the start point of the line. |
void |
setColor(Color color)
Sets the color of the line. |
void |
setConnection(Connection connection)
Sets the connection that is symbolized by this line. |
void |
setDirected(boolean directed)
Sets whether the line is directed. |
void |
setEndXY(double x,
double y)
Sets the end point of the line |
Methods inherited from interface fdda.graphics.Component |
clone, deselect, getGraphicalSystem, getShape, getX, getY, isMovable, isSelected, move, recalculateShape, select, selectableWith, setGraphicalSystem, setXY, visit |
Methods inherited from interface fdda.graphics.WorkingPart |
isWorking, setWorking |
Methods inherited from interface fdda.model.PropertyHolder |
addProperty, addPropertyListener, changeProperty, firePropertyChanged, getProperties, getProperty, removeProperty, removePropertyListener |
Method Detail |
public double getEndX()
public double getEndY()
public double getLength()
public void setEndXY(double x, double y)
x
- the x coordinatey
- the y coordinatepublic void moveStartPoint(double xOffset, double yOffset)
xOffset
- the x offsetyOffset
- the y offsetpublic void moveEndPoint(double xOffset, double yOffset)
xOffset
- the x offsetyOffset
- the y offsetpublic Color getColor()
public void setColor(Color color)
color
- the colorpublic boolean isDirected()
public void setDirected(boolean directed)
directed
- whether the line is directedpublic Connection getConnection()
public void setConnection(Connection connection)
connection
- the connectionpublic double getMessageDistancePerCycle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |