Class BaseGraph
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----DragCanvas
|
+----BaseGraph
- class BaseGraph
- extends DragCanvas
-
Axis
-
-
Border
-
-
BorderColor
-
-
c4
-
-
ex
-
-
ey
-
-
FColor
-
-
fv
-
-
Grid
-
-
hx
-
-
hy
-
-
i
-
-
j
-
-
k
-
-
l4
-
-
Legend
-
-
ll
-
-
maxcol
-
-
maxlig
-
-
Ortho
-
-
Peeks
-
-
PrevPoint
-
-
px
-
-
py
-
-
r
-
-
Scale
-
-
scaleStr
-
-
scaleX
-
-
scaleY
-
-
sv
-
-
tv
-
-
u
-
-
Wire
-
-
x
-
-
xa
-
-
Xmax
- (Xmin,Ymin) (XMax,YMax) bounds of series of points
-
Xmin
-
-
xPoints
-
-
XpPoly
-
-
xx
-
-
y
-
-
ya
-
-
Ymax
-
-
Ymin
-
-
yPoints
-
-
YpPoly
-
-
yy
-
-
BaseGraph(int, int, int, int)
- graph constructor
-
calcAxis()
- graph charting algorithm
-
calcRealX(int)
- calculate a real X/Y value from a plotted point
same for Y
-
calcRealY(int)
-
-
calcRelX(float)
- calculate a relative point from a real value
same for Y
-
calcRelY(float)
-
-
drawPeekPoint(Graphics, float, float)
- draw a rounded Peek
-
drawPoint(Graphics, float, float, Color)
- draw a point, dot if Peeks, join if Wire and fill otherwise
-
getAxis()
-
-
getBorder()
-
-
getBorderColor()
-
-
getColor()
-
-
getGrid()
-
-
getLegend()
-
-
getOrtho()
-
-
getPeeks()
-
-
getScale()
-
-
getWire()
-
-
paintAxis(Graphics)
- paint X and Y axis
-
setAxis(boolean)
- Graph Axis
-
setBorder(boolean)
- Graph Border
-
setBorderColor(Color)
- border color
-
setColor(Color)
- Graph Color
-
setGrid(boolean)
- Graph Grid
-
setLegend(boolean)
- Graph Legend
-
setOrtho(boolean)
- Graph Orthonorm (proportional)
-
setPeeks(boolean)
- Graph Peeks
-
setScale(boolean)
- show scaling values
-
setWire(boolean)
- Wire or Fill
Xmax
protected float Xmax
- (Xmin,Ymin) (XMax,YMax) bounds of series of points
Ymax
protected float Ymax
Xmin
protected float Xmin
Ymin
protected float Ymin
ex
protected double ex
ey
protected double ey
xa
protected long xa
ya
protected long ya
FColor
private Color FColor
Legend
protected boolean Legend
Peeks
protected boolean Peeks
Border
protected boolean Border
Axis
protected boolean Axis
Grid
protected boolean Grid
Ortho
protected boolean Ortho
Scale
protected boolean Scale
BorderColor
protected Color BorderColor
Wire
protected boolean Wire
xx
double xx
yy
double yy
ll
double ll
px
double px
py
double py
u
double u
r
double r
i
int i
j
int j
k
int k
c4
int c4
l4
int l4
hx
int hx
hy
int hy
x
int x
y
int y
maxcol
int maxcol
maxlig
int maxlig
fv
int fv
sv
int sv
tv
int tv
xPoints
private int xPoints[]
yPoints
private int yPoints[]
scaleStr
private String scaleStr
scaleX
private int scaleX
scaleY
private int scaleY
PrevPoint
protected Point PrevPoint
XpPoly
private int XpPoly[]
YpPoly
private int YpPoly[]
BaseGraph
public BaseGraph(int iXPos,
int iYPos,
int iWidth,
int iHeight)
- graph constructor
setColor
public boolean setColor(Color Value)
- Graph Color
getColor
public Color getColor()
setLegend
public boolean setLegend(boolean Value)
- Graph Legend
getLegend
public boolean getLegend()
setPeeks
public boolean setPeeks(boolean Value)
- Graph Peeks
getPeeks
public boolean getPeeks()
setBorder
public boolean setBorder(boolean Value)
- Graph Border
getBorder
public boolean getBorder()
setAxis
public boolean setAxis(boolean Value)
- Graph Axis
getAxis
public boolean getAxis()
setGrid
public boolean setGrid(boolean Value)
- Graph Grid
getGrid
public boolean getGrid()
setOrtho
public boolean setOrtho(boolean Value)
- Graph Orthonorm (proportional)
getOrtho
public boolean getOrtho()
setScale
public boolean setScale(boolean Value)
- show scaling values
getScale
public boolean getScale()
setBorderColor
public boolean setBorderColor(Color Value)
- border color
getBorderColor
public Color getBorderColor()
setWire
public boolean setWire(boolean Value)
- Wire or Fill
getWire
public boolean getWire()
calcAxis
protected void calcAxis()
- graph charting algorithm
paintAxis
protected void paintAxis(Graphics g)
- paint X and Y axis
calcRealX
protected float calcRealX(int x)
- calculate a real X/Y value from a plotted point
same for Y
calcRealY
protected float calcRealY(int y)
calcRelX
protected int calcRelX(float x)
- calculate a relative point from a real value
same for Y
calcRelY
protected int calcRelY(float y)
drawPeekPoint
protected void drawPeekPoint(Graphics g,
float x,
float y)
- draw a rounded Peek
drawPoint
protected void drawPoint(Graphics g,
float x,
float y,
Color color)
- draw a point, dot if Peeks, join if Wire and fill otherwise