physicon.graphLib
Class PointMarker

java.lang.Object
  |
  +--physicon.graphLib.GraphElementBase
        |
        +--physicon.graphLib.GraphMarkerBase
              |
              +--physicon.graphLib.PointMarker

public class PointMarker
extends GraphMarkerBase


Constructor Summary
PointMarker(MarkerDrawerBase _marker)
          Constructor.
PointMarker(MarkerDrawerBase _marker, GraphCurveBase _curve)
          Constructor.
 
Method Summary
 DoublePoint getLocation()
          Returns current location of marker
 double getParamValue()
          Returns the current parameter value.
 void setCurve(GraphCurveBase _curve)
           
 void setLocation(double x, double y)
          Set the location of marker
 void setLocation(DoublePoint loc)
          Set the location of marker
 void setParamValue(double _param)
          This is legal way to move the marker
 
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

PointMarker

public PointMarker(MarkerDrawerBase _marker)
Constructor.
Parameters:
_marker - - Given drawer object.

PointMarker

public PointMarker(MarkerDrawerBase _marker,
                   GraphCurveBase _curve)
Constructor.
Parameters:
_marker - - Given drawer object.
_curve - - Given parametric curve
Method Detail

setCurve

public void setCurve(GraphCurveBase _curve)

setParamValue

public void setParamValue(double _param)
This is legal way to move the marker
Parameters:
_param - - given parameter for updating drawer position. The curve shoud be defined at this parameter. In the other case parmeter will be set to the closest legal value.

getParamValue

public double getParamValue()
Returns the current parameter value. This is the value of parametric curve's parameter.

setLocation

public void setLocation(DoublePoint loc)
Set the location of marker

setLocation

public void setLocation(double x,
                        double y)
Set the location of marker

getLocation

public DoublePoint getLocation()
Returns current location of marker