|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--physicon.graphLib.DrawerBase | +--physicon.graphLib.CurveDrawerBase
Abstract curve drawer. Contains the array of points and methods to access it.
Constructor Summary | |
CurveDrawerBase(java.awt.Color _c)
The constructor |
|
CurveDrawerBase(java.awt.Color _c,
boolean thick)
|
Method Summary | |
void |
addBreakPoint(java.awt.Point _pt)
Adds the point to the end of array. |
void |
addPoint(java.awt.Point _pt)
Adds the point to the end of array |
int |
breakPointAt(int _i)
|
int |
breakPointsNumber()
|
boolean |
contains(java.awt.Point pt)
|
void |
drawLocal(java.awt.Graphics g)
Drawes the curve as the number of lines of correct color connecting points in the array |
java.awt.Color |
getColor()
Returns the current curve color |
java.awt.Rectangle |
getLocalRoughRect()
Returns local rough rect. |
java.util.Vector |
getPoints()
|
java.awt.Point |
pointAt(int _i)
Returns the point at the given index |
int |
pointsNumber()
|
void |
reset()
Calls @super method and removes all points from the array |
void |
setColor(java.awt.Color _c)
Set new color for the curve |
void |
setThick(boolean isThick)
|
Methods inherited from class physicon.graphLib.DrawerBase |
getGlobalLevel,
getGlobalRefPoint,
setGlobalLevel,
setGlobalRefPoint |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CurveDrawerBase(java.awt.Color _c)
_c
- - The color of curvepublic CurveDrawerBase(java.awt.Color _c, boolean thick)
Method Detail |
public final java.awt.Color getColor()
public void setColor(java.awt.Color _c)
_c
- - new curve colorpublic final java.awt.Point pointAt(int _i)
_i
- - Zero based number of pointpublic final void addPoint(java.awt.Point _pt)
_pt
- - Reference to the point addedpublic final void addBreakPoint(java.awt.Point _pt)
_pt
- - Reference to the point addedpublic final int pointsNumber()
public final java.util.Vector getPoints()
public final int breakPointsNumber()
public final int breakPointAt(int _i)
public boolean contains(java.awt.Point pt)
public java.awt.Rectangle getLocalRoughRect()
public void reset()
public void drawLocal(java.awt.Graphics g)
g
- - given Graphics object.public void setThick(boolean isThick)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |