|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.GraphObj
com.quinncurtis.chart3djava.ChartPlot
com.quinncurtis.chart3djava.SimplePlot
com.quinncurtis.chart3djava.SimpleLineMarkerPlot
public class SimpleLineMarkerPlot
Revisions 12/24/2005 changed lineMarkerPlot and drawLineMakerPlot
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SimpleLineMarkerPlot()
The default SimpleLineMarkerPlot constructor. |
|
SimpleLineMarkerPlot(PhysicalCoordinates transform)
This constructor creates a new SimpleLineMarkerPlot object that will reside in the specified coordinate system. |
|
SimpleLineMarkerPlot(PhysicalCoordinates transform,
SimpleDataset dataset,
int symtype,
ChartAttribute lineattrib,
ChartAttribute symbolattrib,
int nsymbolstart,
int nsymbolskip)
This constructor creates a new SimpleLineMarkerPlot object that will reside in the specified coordinate system. |
|
| Method Summary | |
|---|---|
boolean |
calcNearestPoint(ChartPoint3D testpoint,
int nmode,
NearestPointData nearestpoint)
This method compares a test point against all of the xy points in a simple dataset and calculates which point in the dataset is nearest the test point. |
boolean |
checkIntersection(ChartPoint3D testpoint,
NearestPointData np)
Returns true if the test point intersects one of the bar plot bars. |
java.lang.Object |
clone()
Returns an object that is a clone of this SimpleLineMarkerPlot object. |
void |
copy(SimpleLineMarkerPlot source)
Copies the source SimpleLineMarkerPlot object. |
void |
draw(java.awt.Graphics2D g2)
The draw method for this class. |
void |
draw3D(java.awt.Graphics2D g2)
The 3D draw method for this class. |
int |
errorCheck(int nerror)
Checks the SimpleLineMarkerPlot object for common errors. |
int |
getLineMarkerSymbol()
Returns the symbol for line marker plots. |
ChartAttribute |
getSymbolAttributes()
Returns a copy of the attributes for the filling the scatter plot symbols. |
int |
getSymbolSkip()
Returns the symbol skip value for line marker plots. |
int |
getSymbolStart()
Returns the symbol start value for line marker plots. |
void |
setLineMarkerPlot(SimpleDataset dataset,
int symtype,
ChartAttribute lineattrib,
ChartAttribute symbolattrib,
int nsymbolstart,
int nsymbolskip)
Sets the properties of a line marker plot. |
void |
setLineMarkerSymbol(int nsymbol)
Sets the symbol for line marker plots. |
void |
setSymbolAttributes(ChartAttribute attrib)
Sets the attributes for the filling the scatter plot symbols. |
void |
setSymbolSkip(int nskip)
Sets the symbol skip value for line marker plots. |
void |
setSymbolStart(int nstart)
Sets the symbol start value for line marker plots. |
| Methods inherited from class com.quinncurtis.chart3djava.SimplePlot |
|---|
checkValidPoint, copy, getDataset, polygonBasedCheckIntersection, setDataset |
| Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
|---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleLineMarkerPlot()
public SimpleLineMarkerPlot(PhysicalCoordinates transform)
transform - The coordinate system for the new SimpleLineMarkerPlot object.
public SimpleLineMarkerPlot(PhysicalCoordinates transform,
SimpleDataset dataset,
int symtype,
ChartAttribute lineattrib,
ChartAttribute symbolattrib,
int nsymbolstart,
int nsymbolskip)
transform - The coordinate system for the new SimpleLineMarkerPlot object.dataset - The line marker plot will represent the values in this data set.symtype - The symbol used in the line marker plot. Use one of the scatter plot symbol
constants: NOSYMBOL, SQUARE, TRIANGLE, DIAMOND, CROSS, PLUS, STAR, LINE, HBAR, VBAR, CIRCLE, HBAR3D, VBAR3D, CUBE3D,
PLUS3D, DIAMOND3D, PYRAMID3D, HOURGLASS3D, ARROW3D, CYLINDER3D, SPHERE3D.lineattrib - Specifies the attributes (line color and line style) for the line part
of the line marker plot.symbolattrib - Specifies the attributes (line and fill color ) for the symbol part of
the line marker plot.nsymbolstart - Specifies the starting index for symbols in the line marker plot.nsymbolskip - Specifies the skip factor for placing symbols in the line marker plot.| Method Detail |
|---|
public int errorCheck(int nerror)
errorCheck in class SimplePlotnerror - Current error state.
public void copy(SimpleLineMarkerPlot source)
source - The source SimpleLineMarkerPlot object.public java.lang.Object clone()
clone in class GraphObj
public void setLineMarkerPlot(SimpleDataset dataset,
int symtype,
ChartAttribute lineattrib,
ChartAttribute symbolattrib,
int nsymbolstart,
int nsymbolskip)
dataset - The line marker plot will represent the values in this data set.symtype - The symbol used in the line marker plot. Use one of the scatter plot symbol
constants: NOSYMBOL, SQUARE, TRIANGLE, DIAMOND, CROSS, PLUS, STAR, LINE, HBAR, VBAR, CIRCLE, HBAR3D, VBAR3D, CUBE3D,
PLUS3D, DIAMOND3D, PYRAMID3D, HOURGLASS3D, ARROW3D, CYLINDER3D, SPHERE3D.lineattrib - Specifies the attributes (line color and line style) for the line part of
the line marker plot.symbolattrib - Specifies the attributes (line and fill color ) for the symbol part of
the line marker plot.nsymbolstart - Specifies the starting index for symbols in the line marker plot.nsymbolskip - Specifies the skip factor for placing symbols in the line marker plot.public void draw3D(java.awt.Graphics2D g2)
g2 - The graphics context.public void draw(java.awt.Graphics2D g2)
draw in class GraphObjg2 - The graphics context.
public boolean calcNearestPoint(ChartPoint3D testpoint,
int nmode,
NearestPointData nearestpoint)
calcNearestPoint in class SimplePlottestpoint - The test point for the nearness calculation.nmode - Specifies the algorithm used in the nearness calculation.nearestpoint - Returns the parameters of the nearest point.
public boolean checkIntersection(ChartPoint3D testpoint,
NearestPointData np)
checkIntersection in class SimplePlottestpoint - The test pointnp - Nearest point information for data based objects.
public void setSymbolStart(int nstart)
nstart - Sets the symbol start value for line marker for plots.public int getSymbolStart()
public void setSymbolSkip(int nskip)
nskip - Sets the symbol skip value for line marker for plots.public int getSymbolSkip()
public void setLineMarkerSymbol(int nsymbol)
nsymbol - Sets the symbol for line marker for plots.public int getLineMarkerSymbol()
public void setSymbolAttributes(ChartAttribute attrib)
attrib - Sets the attributes for the filling the scatter plot symbols.public ChartAttribute getSymbolAttributes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||