|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsims.ihm.graph.Arrow2D
public class Arrow2D
Constructor Summary | |
---|---|
Arrow2D(java.awt.Graphics2D g2,
float SourceX,
float SourceY,
float DestX,
float DestY)
Arrow2D Constructor to build an arrow between two points |
|
Arrow2D(java.awt.Graphics2D g2,
GraphState2D state1,
GraphState2D state2,
Graph gr)
Arrow2D Constructor to build an arrow between two states |
|
Arrow2D(java.awt.Graphics2D g2,
GraphState2D state1,
int dir)
Arrow2D Constructor to build an arrow on a self-state |
Method Summary | |
---|---|
void |
draw()
Arrow2D method to draw the arrow Draw() |
int |
getAngle()
Accessor to get the value of the angle of the arrow |
int |
getDirection()
Accessor to get the direction for self-vertex edges |
int |
getFinalX()
Accessor to get the X-coordinate of the final point |
int |
getFinalY()
Accessor to get the Y-coordinate of the final point |
int |
getInitialX()
Accessor to get the X-coordinate of the initial point |
int |
getInitialY()
Accessor to get the Y-coordinate of the initial point |
GraphState2D |
getState1()
Accessor to get the initial vertex |
GraphState2D |
getState2()
Accessor to get the final vertex |
void |
setAngle()
Calculation of the angle of the triangular part of the arrow. |
void |
setCoordinates()
Set the coordinates of the arrow and the triangle setCoordinates() |
void |
setDirection(int dir)
Accessor to get the direction for self-vertex edges |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Arrow2D(java.awt.Graphics2D g2, GraphState2D state1, GraphState2D state2, Graph gr)
ObjectToDraw
- SourceState
- DestinationState
- Arrow2D()public Arrow2D(java.awt.Graphics2D g2, GraphState2D state1, int dir)
ObjectToDraw
- State
- Position
- Arrow2D()public Arrow2D(java.awt.Graphics2D g2, float SourceX, float SourceY, float DestX, float DestY)
ObjectToDraw
- SourceX
- SourceY
- DestinationX
- DestinationY
- Arrow2D()Method Detail |
---|
public void setCoordinates()
public void setAngle()
public int getInitialX()
public int getInitialY()
public int getFinalX()
public int getFinalY()
public GraphState2D getState1()
public GraphState2D getState2()
public int getAngle()
public int getDirection()
public void setDirection(int dir)
direction
- setDirection()public void draw()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |