lt.monarch.chart.chart2D
Class VerticalMarkerLine

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<MarkerPaintTags>
      extended by lt.monarch.chart.AbstractChartMarker
          extended by lt.monarch.chart.chart2D.MarkerLine
              extended by lt.monarch.chart.chart2D.VerticalMarkerLine
All Implemented Interfaces:
java.io.Serializable, ChartObject, StyleEditorEntity

public class VerticalMarkerLine
extends MarkerLine

Draws a vertical line with a label. Here is an example of vertical marker line usage:

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.MarkerLine
level, mapper
 
Fields inherited from class lt.monarch.chart.AbstractChartMarker
axisMapper, label, textStyle
 
Fields inherited from class lt.monarch.chart.engine.AbstractChartObject
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style
 
Constructor Summary
Constructor and Description
VerticalMarkerLine(Axis axis)
          Constructs a new HorizontalMarkerLine with a new PlaneMapper2D mapper and axis mapper of the specified axis.
VerticalMarkerLine(PlaneMapper mapper, AxisMapper axisMapper)
          Constructs a new VerticalMarkerLine with the specified plane and axis mappers.
 
Method Summary
Modifier and Type Method and Description
 void draw(AbstractGraphics g)
          Paints the horizontal marker line in the specified Graphics context.
 
Methods inherited from class lt.monarch.chart.chart2D.MarkerLine
getLevel, getSortPosition, setLabelPosition, setLabelPosition, setLevel
 
Methods inherited from class lt.monarch.chart.AbstractChartMarker
getAxisMapper, getLabel, getPaintMode, getParent, getStyle, getTextStyle, isLabelEmpty, setLabel, setPaintMode
 
Methods inherited from class lt.monarch.chart.engine.AbstractChartObject
activate, chart, copy, deactivate, dispose, finalize, getChart, getChartObjectBounds, getPaintStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalMarkerLine

public VerticalMarkerLine(PlaneMapper mapper,
                          AxisMapper axisMapper)
Constructs a new VerticalMarkerLine with the specified plane and axis mappers.

Parameters:
mapper - the plane mapper
axisMapper - the axis mapper

VerticalMarkerLine

public VerticalMarkerLine(Axis axis)
Constructs a new HorizontalMarkerLine with a new PlaneMapper2D mapper and axis mapper of the specified axis.

Parameters:
axis - the axis
Method Detail

draw

public void draw(AbstractGraphics g)
Paints the horizontal marker line in the specified Graphics context.

Parameters:
g - the Graphics context in which to paint marker line