lt.monarch.chart.marker
Class NullMarker

java.lang.Object
  extended by lt.monarch.chart.marker.AbstractMarker
      extended by lt.monarch.chart.marker.NullMarker
All Implemented Interfaces:
java.io.Serializable, Marker, StyleEditorEntity

public class NullMarker
extends AbstractMarker

Renders an invisible marker.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.marker.AbstractMarker
dirty, map, metaModel, paintStyle, projectedLocation, style
 
Constructor Summary
Constructor and Description
NullMarker()
          Constructs a new NullMarker.
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes object
 void draw(AbstractGraphics g, SeriesPaintTags tag, Style style)
          Renders the marker on the Graphics context.
 Rectangle2D getBounds()
          Gets bounds of this marker.
 void reset()
          Resets the marker after use.
 void setLocation(Projector projector, GeneralPoint npt)
          Sets location of the marker.
 
Methods inherited from class lt.monarch.chart.marker.AbstractMarker
clearChartObjectsMap, draw, finalize, getChartObjectBounds, getMetaModel, getPaintStyle, getParent, getStyle, getTransparencyValue, isVisible, mapChartObject, prepare, setChartObjectsMap, setEntity, setMetaModel, setTextAlignment, setTransparencyValue, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullMarker

public NullMarker()
Constructs a new NullMarker.

Method Detail

draw

public void draw(AbstractGraphics g,
                 SeriesPaintTags tag,
                 Style style)
Description copied from interface: Marker
Renders the marker on the Graphics context. Uses style colors.

Parameters:
g - graphics context
tag - painting tag
style - drawing style

setLocation

public void setLocation(Projector projector,
                        GeneralPoint npt)
Description copied from class: AbstractMarker
Sets location of the marker.

Specified by:
setLocation in interface Marker
Overrides:
setLocation in class AbstractMarker
Parameters:
projector - projector used to project the normalized point
npt - normalized point that specifies marker position

reset

public void reset()
Resets the marker after use.

Specified by:
reset in interface Marker
Overrides:
reset in class AbstractMarker

getBounds

public Rectangle2D getBounds()
Gets bounds of this marker.

Returns:
A rectangle indicating this marker's bounds.

dispose

public void dispose()
Disposes object

Specified by:
dispose in interface Marker
Overrides:
dispose in class AbstractMarker