lt.monarch.chart.engine
Class MarkerConstraints

java.lang.Object
  extended by lt.monarch.chart.engine.MarkerConstraints
Direct Known Subclasses:
LabeledMarkerConstraints

public class MarkerConstraints
extends java.lang.Object


Constructor Summary
Constructor and Description
MarkerConstraints()
           
 
Method Summary
Modifier and Type Method and Description
 void applyTo(Marker marker, Projector projector)
          Applies set values to given marker.
 ChartEntity getEntity()
          Returns marker's chart entity.
 GeneralPoint getLocation()
          Returns location of marker.
 void setEntity(ChartEntity ent)
          Sets chart entity to marker.
 void setLocation(GeneralPoint pt)
          Sets location of marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerConstraints

public MarkerConstraints()
Method Detail

applyTo

public void applyTo(Marker marker,
                    Projector projector)
Applies set values to given marker.

Parameters:
marker - Marker
projector - Projector, that is used to set marker's location.

getLocation

public GeneralPoint getLocation()
Returns location of marker.

Returns:
Location of marker.

setLocation

public void setLocation(GeneralPoint pt)
Sets location of marker.

Parameters:
pt - Location of marker (normalized point).

getEntity

public ChartEntity getEntity()
Returns marker's chart entity.

Returns:
Marker's chart entity.

setEntity

public void setEntity(ChartEntity ent)
Sets chart entity to marker.

Parameters:
ent - Chart entity.