|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.ecosim.visual.graph.GraphLine
public class GraphLine
The Class GraphLine is used to represent the lines of the graph, which when taken together represent the graph of one provider
Constructor Summary | |
---|---|
GraphLine(java.lang.String name,
java.awt.Color c,
int startx,
int starty)
The Constructor. |
Method Summary | |
---|---|
void |
addPoint(int x,
int y)
Adds a new point to the graphline |
java.awt.Color |
getColor()
Gets the color of this line |
java.util.ArrayList<java.awt.geom.Line2D.Float> |
getLines()
Gets the lines of this graph |
java.lang.String |
getName()
Gets the name of the provider having this line |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphLine(java.lang.String name, java.awt.Color c, int startx, int starty)
startx
- the startposition at the x axisstarty
- the startposition at the y axisc
- the color the provider should be drawn inname
- the name of the providerMethod Detail |
---|
public void addPoint(int x, int y)
y
- the y positionx
- the x positionpublic java.util.ArrayList<java.awt.geom.Line2D.Float> getLines()
public java.awt.Color getColor()
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |