|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.chart.axis.AAxis
info.monitorenter.gui.chart.axis.AxisInverse
public class AxisInverse
An AAxis
with inverse display of values.
Labels and values are starting from the highest value and go down to the lowest one.
Nested Class Summary | |
---|---|
class |
AxisInverse.XDataInverseAccessor
An accessor for the x axis of a chart. |
protected class |
AxisInverse.YDataInverseAccessor
Accesses the y axis of the Chart2D . |
Nested classes/interfaces inherited from class info.monitorenter.gui.chart.axis.AAxis |
---|
AAxis.AChart2DDataAccessor, AAxis.XDataAccessor, AAxis.YDataAccessor |
Nested classes/interfaces inherited from interface info.monitorenter.gui.chart.IAxis |
---|
IAxis.AxisTitle |
Field Summary |
---|
Fields inherited from class info.monitorenter.gui.chart.axis.AAxis |
---|
m_accessor, m_formatter, m_majorTickSpacing, m_max, m_min, m_minorTickSpacing, m_needsFullRescale, m_power, m_rangePolicy |
Fields inherited from interface info.monitorenter.gui.chart.IAxis |
---|
PROPERTY_ADD_REMOVE_TRACE, PROPERTY_LABELFORMATTER, PROPERTY_PAINTGRID, PROPERTY_RANGEPOLICY |
Constructor Summary | |
---|---|
AxisInverse()
Defcon. |
|
AxisInverse(IAxisLabelFormatter formatter)
Constructor that uses the given label formatter for formatting labels. |
Method Summary | |
---|---|
protected AAxis.AChart2DDataAccessor |
createAccessor(Chart2D chart,
int dimension,
int position)
Template method to create the proper
implementation. |
protected List<LabeledValue> |
getLabels(double resolution)
Returns the labels for this axis. |
double |
getScaledValue(double absolute)
Scales the given absolute value into a value between 0 and 1.0 (if it is in the range of the data). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisInverse()
public AxisInverse(IAxisLabelFormatter formatter)
formatter
- needed for formatting labels of this axis.Method Detail |
---|
protected AAxis.AChart2DDataAccessor createAccessor(Chart2D chart, int dimension, int position)
AAxis
AAxis.AChart2DDataAccessor
implementation.
createAccessor
in class AAxis
chart
- the chart to access.dimension
- Chart2D.X
or Chart2D.Y
.position
- Chart2D.CHART_POSITION_BOTTOM
,
Chart2D.CHART_POSITION_LEFT
,
Chart2D.CHART_POSITION_RIGHT
or
Chart2D.CHART_POSITION_TOP
.
AAxis.AChart2DDataAccessor
implementation.AAxis.createAccessor(info.monitorenter.gui.chart.Chart2D,
int, int)
protected List<LabeledValue> getLabels(double resolution)
The labels will have at least the given argument resolution
as
distance in the value domain of the chart.
getLabels
in class AAxis
resolution
- the distance in the value domain of the chart that has to be at
least between to labels.
public double getScaledValue(double absolute)
IAxis
If the given absolute value is not in the display- range of the
Chart2D
, negative values or values greater than 1.0 may
result.
absolute
- a value in the real value range of the corresponding chart.
IAxis.getScaledValue(double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |