|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectifi.dsb.Curve
Class to hold data-points and drawing options for a curve.
CurveData,
Axis,
Graph,
Plot2D| Constructor Summary | |
Curve(Graph graph)
Constructs Curve object for a graph, without data. |
|
Curve(Graph graph,
CurveData xData,
CurveData yData)
Constructs Curve object for a graph, with data. |
|
Curve(Plot2D plot)
Constructs a Curve object, no data supplied. |
|
Curve(Plot2D plot,
CurveData xData,
CurveData yData)
Constructs Curve object for the graph in a plot, with data. |
|
Curve(Plot2D plot,
double[] xData,
double[] yData)
Constructs Curve object for the graph in a plot, with data. |
|
Curve(Plot2D plot,
double[] xData,
double[] yData,
int n)
Constructs Curve object for the graph in a plot, with data. |
|
| Method Summary | |
ifi.dsb.Marker |
getCircleMarker()
|
ifi.dsb.Marker |
getCrossMarker()
|
ifi.dsb.Line |
getDashDotLine()
|
ifi.dsb.Line |
getDashedLine()
|
ifi.dsb.Marker |
getDiamondMarker()
|
ifi.dsb.Line |
getDottedLine()
|
boolean |
getDrawLine()
Return whether or not to draw a curve. |
boolean |
getDrawMarker()
Return whether or not to draw a marker for each data point. |
Graph |
getGraph()
Return graph in which this curve will be drawn. |
ifi.dsb.Line |
getLine()
Return type of line. |
ifi.dsb.Line[] |
getLines()
Return all possible lines. |
float |
getLineWidth()
Return the line-width of a curve. |
ifi.dsb.Line |
getLongDashedLine()
|
ifi.dsb.Marker |
getMarker()
Return type of marker. |
float |
getMarkerLineWidth()
Return the line-width of a marker. |
ifi.dsb.Marker[] |
getMarkers()
Return all possible markers. |
float |
getMarkerSize()
Return size of marker, in pixels. |
ifi.dsb.Line |
getSolidLine()
|
ifi.dsb.Marker |
getSquareMarker()
|
ifi.dsb.Marker |
getTriangleMarker()
|
CurveData |
getXCurveData()
Return reference to horizontal-coordinate curve-values. |
int |
getXIndMax()
Return upper index bound of clipping range (extract) from horizontal data array. |
int |
getXIndMin()
Return lower index bound of clipping range (extract) from horizontal data array. |
CurveData |
getYCurveData()
Return reference to vertical-coordinate curve-values. |
int |
getYIndMax()
Return upper index bound of clipping range (extract) from vertical data array. |
int |
getYIndMin()
Return lower index bound of clipping range (extract) from vertical data array. |
void |
setCurveData(CurveData data)
Set vertical CurveData. |
void |
setCurveData(CurveData xData,
CurveData yData)
Set horizontal and vertical CurveData. |
void |
setCurveData(double[] data)
Set vertical CurveData. |
void |
setCurveData(double[] xData,
double[] yData)
Set horizontal and vertical CurveData. |
void |
setCurveData(double[] xData,
double[] yData,
int n)
Set horizontal and vertical CurveData. |
void |
setDrawLine(boolean drawLine)
Set whether or not to draw a curve. |
void |
setDrawMarker(boolean drawMarker)
Set whether or not to draw a marker for each data point. |
void |
setLine(ifi.dsb.Line line)
Set type of line. |
void |
setLineWidth(float lineWidth)
Set the line-width of a curve. |
void |
setMarker(ifi.dsb.Marker marker)
Set type of marker. |
void |
setMarkerLineWidth(float lineWidth)
Set the line-width of a marker. |
void |
setMarkerSize(float size)
Set size of marker, in pixels. |
void |
setXIndMax(int ind)
Set upper index bound of clipping range (extract) from horizontal data array. |
void |
setXIndMin(int ind)
Set lower index bound of clipping range (extract) from horizontal data array. |
void |
setYIndMax(int ind)
Set upper index bound of clipping range (extract) from vertical data array. |
void |
setYIndMin(int ind)
Set lower index bound of clipping range (extract) from vertical data array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Curve(Plot2D plot)
Curve(Plot2D, double[], double[], int)
public Curve(Plot2D plot,
CurveData xData,
CurveData yData)
plot - Reference to plot.Curve(Graph, CurveData, CurveData)
public Curve(Plot2D plot,
double[] xData,
double[] yData)
xData - Copied to internal storage.yData - Copied to internal storage.Curve(Plot2D, double[], double[], int)
public Curve(Plot2D plot,
double[] xData,
double[] yData,
int n)
plot - Reference to plot.xData - Copied to internal storage.yData - Copied to internal storage.n - At most this many values are used from xData and yData.public Curve(Graph graph)
public Curve(Graph graph,
CurveData xData,
CurveData yData)
graph - xData - Not copiedyData - Not copied| Method Detail |
public Graph getGraph()
public void setCurveData(CurveData data)
public void setCurveData(double[] data)
setCurveData(CurveData)
public void setCurveData(CurveData xData,
CurveData yData)
public void setCurveData(double[] xData,
double[] yData)
setCurveData(CurveData, CurveData)
public void setCurveData(double[] xData,
double[] yData,
int n)
n - Number of samples to include from the data.setCurveData(CurveData, CurveData)public CurveData getXCurveData()
public CurveData getYCurveData()
public int getXIndMin()
public void setXIndMin(int ind)
public int getXIndMax()
public void setXIndMax(int ind)
public int getYIndMin()
public void setYIndMin(int ind)
public int getYIndMax()
public void setYIndMax(int ind)
public float getLineWidth()
public void setLineWidth(float lineWidth)
public float getMarkerLineWidth()
public void setMarkerLineWidth(float lineWidth)
public boolean getDrawLine()
public void setDrawLine(boolean drawLine)
public boolean getDrawMarker()
public void setDrawMarker(boolean drawMarker)
public float getMarkerSize()
public void setMarkerSize(float size)
public ifi.dsb.Marker getMarker()
public void setMarker(ifi.dsb.Marker marker)
public ifi.dsb.Marker[] getMarkers()
public ifi.dsb.Marker getCrossMarker()
public ifi.dsb.Marker getSquareMarker()
public ifi.dsb.Marker getTriangleMarker()
public ifi.dsb.Marker getCircleMarker()
public ifi.dsb.Marker getDiamondMarker()
public ifi.dsb.Line getLine()
public void setLine(ifi.dsb.Line line)
public ifi.dsb.Line[] getLines()
public ifi.dsb.Line getSolidLine()
public ifi.dsb.Line getDottedLine()
public ifi.dsb.Line getDashedLine()
public ifi.dsb.Line getLongDashedLine()
public ifi.dsb.Line getDashDotLine()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||