|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--physicon.graphLib.GraphElementBase | +--physicon.graphLib.GraphCurveBase | +--physicon.graphLib.PointArrayCurve
Represents the curve consisting of the number of points
Constructor Summary | |
PointArrayCurve(CurveDrawerBase _drawer)
Constructor. |
Method Summary | |
DoublePoint |
getLocalPoint(double _param)
Returns the point at the given parameter value. |
double |
getMaxParamValue()
Returns the maximal parameter value maximal parameter value is equal to the number of the points in the curve - 1. |
double |
getMinParamValue()
Returns the minimal parameter value - 0 |
DoublePoint |
getPointAt(int _i)
Returns the point at the given index |
void |
insertPointAt(DoublePoint _dpt,
int _i)
Adds new point to the current curve |
int |
pointsNumber()
Returns the number of points in the array |
void |
removeAllPoints()
Removes all points |
void |
removePointAt(int _i)
Removes point with the given index from the curve. |
void |
updateDrawer()
Updates drawer. |
Methods inherited from class physicon.graphLib.GraphCurveBase |
getGlobalPoint,
getNormLocalPoint,
normilizeParamValue,
restoreParamValue |
Methods inherited from class physicon.graphLib.GraphElementBase |
addDependent,
contains,
contains,
getContainer,
getContext,
getDepend,
getDrawer,
getGEObject,
getGraphElement,
getRedrawFlag,
getRefPoint,
getRoughRect,
getZLevel,
isCreated,
isVisible,
setDrawer,
setRedrawFlag,
setRefPoint,
setVisible,
setZLevel,
update |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PointArrayCurve(CurveDrawerBase _drawer)
_drawer
- - the drawer object for this
curve.Method Detail |
public void insertPointAt(DoublePoint _dpt, int _i)
_dpt
- - the point which is to be added._i
- - the number of point in the point set.
set this value to -1 to add point to the end of
point set.public DoublePoint getPointAt(int _i)
_i
- - the given indexpublic void removePointAt(int _i)
_i
- - the given indexpublic void removeAllPoints()
public int pointsNumber()
public void updateDrawer()
public double getMinParamValue()
public double getMaxParamValue()
public DoublePoint getLocalPoint(double _param)
_param
- - the given parameter value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |