|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<MarkerPaintTags>
lt.monarch.chart.AbstractChartMarker
lt.monarch.chart.chart2D.MarkerRange
public abstract class MarkerRange extends AbstractChartMarker
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Image |
fillImage
|
protected PlaneMapper |
mapper
mapper, used to map output to a plane in a n-dimensional space |
protected java.lang.Object |
max
Specifies marker range end position on some axis |
protected java.lang.Object |
min
Specifies marker range start position on some axis |
| 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 and Description |
|---|
MarkerRange(PlaneMapper mapper,
AxisMapper axisMapper)
Constructs a new MarkerRange with the specified plane and axis mappers. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g)
Paints the horizontal marker line in the specified Graphics context. |
protected void |
drawLabel(AbstractGraphics g,
Rectangle2D bounds,
double min,
double max)
Draws marker range label |
protected abstract void |
drawRange(AbstractGraphics g,
Rectangle2D bounds)
|
Rectangle2D |
getChartObjectBounds()
Gets bounds of chart object |
protected abstract Rectangle2D |
getLabelBounds(AbstractGraphics g,
double min,
double max,
Point2D left,
Point2D right,
TextPainter painter)
Gets label bounds |
java.lang.Object |
getMax()
Gets range maximum value |
java.lang.Object |
getMin()
Gets range minimum value |
protected abstract Rectangle2D |
setBounds(double min,
double max)
Sets normalized coordinates for the marker range |
void |
setLabelPosition(double position,
Alignment align)
Sets the alignment and position of the label. |
void |
setLabelPosition(double position,
Alignment align,
Orientation orientation)
Sets the position, alignment and orientation of the label. |
void |
setRange(java.lang.Object min,
java.lang.Object max)
Sets the marker range position. |
| 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 |
| Field Detail |
|---|
protected final PlaneMapper mapper
protected java.lang.Object min
protected java.lang.Object max
protected java.awt.Image fillImage
| Constructor Detail |
|---|
public MarkerRange(PlaneMapper mapper,
AxisMapper axisMapper)
MarkerRange with the specified plane and axis mappers.
mapper - the plane mapperaxisMapper - the axis mapper| Method Detail |
|---|
public void setLabelPosition(double position,
Alignment align)
position - label position on the line in range 0..1align - label alignment
public void setLabelPosition(double position,
Alignment align,
Orientation orientation)
position - label position on the line in range 0..1align - label alignmentorientation - label orientation
public void setRange(java.lang.Object min,
java.lang.Object max)
min - Minimum range valuemax - Maximum range value
protected abstract Rectangle2D getLabelBounds(AbstractGraphics g,
double min,
double max,
Point2D left,
Point2D right,
TextPainter painter)
g - graphics contextmin - minimum value [0..1]max - maximum value [0..1]left - left pointright - right pointpainter - painter
protected abstract Rectangle2D setBounds(double min,
double max)
min - minimum value [0..1]max - maximum value [0..1]
protected abstract void drawRange(AbstractGraphics g,
Rectangle2D bounds)
public void draw(AbstractGraphics g)
g - the Graphics context in which to paint marker line
protected void drawLabel(AbstractGraphics g,
Rectangle2D bounds,
double min,
double max)
g - graphics contextbounds - label boundsmin - minimum range value (mapped)max - maximum range value (mapped)public java.lang.Object getMin()
public java.lang.Object getMax()
public Rectangle2D getChartObjectBounds()
StyleEditorEntity
getChartObjectBounds in interface StyleEditorEntitygetChartObjectBounds in class AbstractChartObject<MarkerPaintTags>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||