|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJLogView_.datastructs.LGPlot
public class LGPlot
LGPlot is a class representing a plot data structure. A plot is a series of x, y coordinates to be drawn and all the information about how to draw them. In our case, it just have a couple of index that tells the parent graph object which column to use for x and which column to use for y.
It has all information for how to draw the plot only as future-proof purpose the old JLogView_ markup has no capabilities of setting drawing information for a particular plot, however it is intended that the new one will.
Constructor Summary | |
---|---|
LGPlot(int x,
int y)
This is the default constructor of an LGPlot needing information about its x and y columns. |
Method Summary | |
---|---|
boolean |
drawingIsCustomized()
This method tells wether or not the drawing of this plot has been customized i.e. |
java.awt.Color |
getColour()
This method gives the colour to be used to draw this plot |
java.awt.BasicStroke |
getStroke()
This method return the linestyle (aka stroke) to be used to draw this plot |
int |
getSymbolSize()
This method gives the symbol size in pixel for drawing the data points of this plot |
int |
getSymbolStyle()
This method gives the symbol style to use to draw the data points of this plot |
int |
getXCol()
This method gives the index of the column to be used for x coordinates |
int |
getYCol()
This method gives the index of the column to be used for y coordinates |
boolean |
isOn()
This methods tells whether or not this plot is on (i.e. |
void |
setColour(java.awt.Color col)
This method sets the colour to be used to draw this plot |
void |
setCustomizedDrawing(boolean custom)
This switch the value that tells if the drawing has been customized. |
void |
setStroke(float[] style,
int width)
This method sets the linestyle (aka stroke) to be used to draw this plot |
void |
setSymbolSize(int siz)
This method sets the symbol size in pixel for drawing the data points of this plot |
void |
setSymbolStyle(int style)
This method sets the symbol style to use to draw the data points of this plot |
void |
setXCol(int x)
This method sets the index of the column to be used for x coordinates |
void |
setYCol(int y)
This method sets the index of the column to be used for y coordinates |
void |
switchOn(boolean ison)
This is switch this plot on of off (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LGPlot(int x, int y)
x
- the index of the column to be used for x coordinatesy
- the index of the column to be used for y coordinatesMethod Detail |
---|
public boolean isOn()
public void switchOn(boolean ison)
ison
- a boolean, true -> draw the plot, false -> do not draw itpublic int getXCol()
public int getYCol()
public void setXCol(int x)
x
- the index of the x columnpublic void setYCol(int y)
y
- the index of the y columnpublic void setColour(java.awt.Color col)
col
- the Color object representing that colourColor
public java.awt.Color getColour()
Color
public void setStroke(float[] style, int width)
style
- an array of float representing the line pattern.width
- the line width in pixelsBasicStroke
public java.awt.BasicStroke getStroke()
BasicStroke
public void setSymbolStyle(int style)
style
- an integer whose value is between 0 and 7.LGDrawingStylesUtils.drawSymbol(Graphics2D, int, int, int, int)
public int getSymbolStyle()
LGDrawingStylesUtils.drawSymbol(Graphics2D, int, int, int, int)
public void setSymbolSize(int siz)
siz
- the size in pixelspublic int getSymbolSize()
public boolean drawingIsCustomized()
public void setCustomizedDrawing(boolean custom)
custom
- a boolean, true -> drawing is customized, false -> it is not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |