physicon.graphLib
Class GraphCurveBase

java.lang.Object
  |
  +--physicon.graphLib.GraphElementBase
        |
        +--physicon.graphLib.GraphCurveBase
Direct Known Subclasses:
FuncCurve, ParamCurve, PointArrayCurve

public abstract class GraphCurveBase
extends GraphElementBase

Represents abstract curve. The curve is the graph object that can be represented as one - parameter point set


Constructor Summary
GraphCurveBase(CurveDrawerBase _drawer)
          Constructor.
 
Method Summary
 DoublePoint getGlobalPoint(double _param)
          Returns Double point in the Container's coordinate system.
abstract  DoublePoint getLocalPoint(double _param)
          Must return DoublePoint at the given normilized point
abstract  double getMaxParamValue()
          Must return the maximum parameter value for the current object
abstract  double getMinParamValue()
          Must return the minimum parameter value for the current object
 DoublePoint getNormLocalPoint(double _param)
          Must return DoublePoint at the given normalized point
 double normilizeParamValue(double _param)
          converts param from real double value to norilized value (to [0, 1] segment)
 double restoreParamValue(double _param)
          converts param from normilized value to real double param value
 
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, updateDrawer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphCurveBase

public GraphCurveBase(CurveDrawerBase _drawer)
Constructor.
Parameters:
_drawer - - Drawer object to draw the curve
See Also:
DrawerBase
Method Detail

getNormLocalPoint

public DoublePoint getNormLocalPoint(double _param)
Must return DoublePoint at the given normalized point
Parameters:
_param - is in [0, 1] segment

normilizeParamValue

public double normilizeParamValue(double _param)
converts param from real double value to norilized value (to [0, 1] segment)
Parameters:
_param - - real double value

restoreParamValue

public double restoreParamValue(double _param)
converts param from normilized value to real double param value
Parameters:
_param - - param value in [0, 1] segment

getGlobalPoint

public DoublePoint getGlobalPoint(double _param)
Returns Double point in the Container's coordinate system. I.e. the refPoint is added to the point returned by getLocalPoint()
Parameters:
_param - - real value of the parameter

getLocalPoint

public abstract DoublePoint getLocalPoint(double _param)
Must return DoublePoint at the given normilized point
Parameters:
_param - is real double value of the parameter

getMinParamValue

public abstract double getMinParamValue()
Must return the minimum parameter value for the current object

getMaxParamValue

public abstract double getMaxParamValue()
Must return the maximum parameter value for the current object