public class InjectorsGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.awt.Color |
color |
int |
maxElements |
java.lang.String |
name |
java.util.ArrayList<java.util.Vector<java.awt.geom.Point2D.Double>> |
points |
Constructor and Description |
---|
InjectorsGraph(int size,
boolean isLimited)
The constructor, which create all the vectors that will contain the points to store.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String name
public java.awt.Color color
public java.util.ArrayList<java.util.Vector<java.awt.geom.Point2D.Double>> points
public int maxElements
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.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()