|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.console.lib.gui.InjectorsGraph
public class InjectorsGraph
This structure represents a host with all its associated points, name and color
Field Summary | |
---|---|
java.awt.Color |
color
|
int |
maxElements
|
java.lang.String |
name
|
java.util.Vector[] |
points
|
Constructor Summary | |
---|---|
InjectorsGraph(int size,
boolean isLimited)
The constructor, which create all the vectors that will contain the points to store. |
Method Summary | |
---|---|
void |
addPoint(java.awt.geom.Point2D.Double point,
int type)
This method adds a point to a specific graph of this host. |
void |
clearAllPoints()
Remove all the points for this host. |
int |
getMaxElements()
|
void |
setMaxElements(int nbPoints)
Set the maximum number of points to store for the graph of this host. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public java.awt.Color color
public java.util.Vector[] points
public int maxElements
Constructor Detail |
---|
public InjectorsGraph(int size, boolean isLimited)
size
- The number of graphs for each hostisLimited
- True means that the number of points to store is limited.Method Detail |
---|
public void addPoint(java.awt.geom.Point2D.Double point, int type)
point
- The point to add.type
- The type of graph this point belongs to.public void clearAllPoints()
public void setMaxElements(int nbPoints)
nbPoints
- The number of maximum points to store.public int getMaxElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |