lt.monarch.chart.chart2D
Class HorizontalMarkerRange
java.lang.Object
lt.monarch.chart.engine.AbstractChartObject<MarkerPaintTags>
lt.monarch.chart.AbstractChartMarker
lt.monarch.chart.chart2D.MarkerRange
lt.monarch.chart.chart2D.HorizontalMarkerRange
- All Implemented Interfaces:
- java.io.Serializable, ChartObject, StyleEditorEntity
public class HorizontalMarkerRange
extends MarkerRange
Horizontal marker range. Draws a range on the specified axes of the specified width.
- See Also:
- Serialized Form
| 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 |
HorizontalMarkerRange
public HorizontalMarkerRange(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 mapperaxisMapper - the axis mapper
HorizontalMarkerRange
public HorizontalMarkerRange(Axis axis)
- Constructs a new
HorizontalMarkerLine with a new PlaneMapper2D
mapper and axis mapper of the specified axis.
- Parameters:
axis - the axis
drawRange
protected void drawRange(AbstractGraphics g,
Rectangle2D bounds)
- Specified by:
drawRange in class MarkerRange
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
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 contextmin - minimum value [0..1]max - maximum value [0..1]left - left pointright - right pointpainter - painter
- Returns:
- bound rectangle