edu.cmu.emulator.graph
Class Series
java.lang.Object
edu.cmu.emulator.graph.Series
public class Series
- extends Object
Constructor Summary |
Series(int size,
boolean useLines,
Color color)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xVals
protected double[] xVals
yVals
protected double[] yVals
color
protected Color color
stroke
protected Stroke stroke
gt
protected GTransform gt
iStart
protected int iStart
iEnd
protected int iEnd
EMPTY_INDEX
protected int EMPTY_INDEX
Series
public Series(int size,
boolean useLines,
Color color)
setStroke
public void setStroke(Stroke stroke)
setVals
public void setVals(double[] xVals,
double[] yVals)
getXVals
public double[] getXVals()
getYVals
public double[] getYVals()
draw
public void draw(Graphics2D g2,
GTransform gt)
nextIndex
protected final int nextIndex(int index)
prevIndex
protected final int prevIndex(int index)
addValue
public void addValue(double x,
double y)
full
public boolean full()
empty
public boolean empty()
dropOldestValue
public void dropOldestValue()
Copyright © 2013. All Rights Reserved.