lt.monarch.chart.chart2D
Class VerticalMarkerRange

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

public class VerticalMarkerRange
extends MarkerRange

Vertical marker range, which draws specified marker range over the specified axis.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.MarkerRange
fillImage, mapper, max, min
 
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
VerticalMarkerRange(Axis axis)
          Constructs a new HorizontalMarkerLine with a new PlaneMapper2D mapper and axis mapper of the specified axis.
VerticalMarkerRange(PlaneMapper mapper, AxisMapper axisMapper)
          Constructs a new HorizontalMarkerLine with the specified plane and axis mappers.
 
Method Summary
Modifier and Type Method and Description
protected  void drawRange(AbstractGraphics g, Rectangle2D bounds)
           
protected  Rectangle2D getLabelBounds(AbstractGraphics g, double min, double max, Point2D left, Point2D right, TextPainter painter)
          Gets label bounds
protected  Rectangle2D setBounds(double min, double max)
          Sets normalized coordinates for the marker range
 
Methods inherited from class lt.monarch.chart.chart2D.MarkerRange
draw, drawLabel, getChartObjectBounds, getMax, getMin, setLabelPosition, setLabelPosition, setRange
 
Methods inherited from class lt.monarch.chart.AbstractChartMarker
getAxisMapper, getLabel, getPaintMode, getParent, getSortPosition, getStyle, getTextStyle, isLabelEmpty, setLabel, setPaintMode
 
Methods inherited from class lt.monarch.chart.engine.AbstractChartObject
activate, chart, copy, deactivate, dispose, finalize, getChart, 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

VerticalMarkerRange

public VerticalMarkerRange(PlaneMapper mapper,
                           AxisMapper axisMapper)
Constructs a new HorizontalMarkerLine with the specified plane and axis mappers. Be sure to set the text location, since 0 point location will be used.

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

VerticalMarkerRange

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

Parameters:
axis - the axis
Method Detail

getLabelBounds

protected Rectangle2D getLabelBounds(AbstractGraphics g,
                                     double min,
                                     double max,
                                     Point2D left,
                                     Point2D right,
                                     TextPainter painter)
Description copied from class: MarkerRange
Gets label bounds

Specified by:
getLabelBounds in class MarkerRange
Parameters:
g - graphics context
min - minimum value [0..1]
max - maximum value [0..1]
left - left point
right - right point
painter - painter
Returns:
bound rectangle

setBounds

protected Rectangle2D setBounds(double min,
                                double max)
Description copied from class: MarkerRange
Sets normalized coordinates for the marker range

Specified by:
setBounds in class MarkerRange
Parameters:
min - minimum value [0..1]
max - maximum value [0..1]
Returns:
rectangle bounds

drawRange

protected void drawRange(AbstractGraphics g,
                         Rectangle2D bounds)
Specified by:
drawRange in class MarkerRange