T
- Subtypes may be more picky which scale policies the accept to
disallow incorrect scales: This supports it (see
IAxis.setAxisScalePolicy(IAxisScalePolicy)
).IAxis<T>
, java.io.Serializable
public class AxisInverse<T extends IAxisScalePolicy> extends AAxis<T>
AAxis
with inverse display of values.
Labels and values are starting from the highest value and go down to the lowest one.
Modifier and Type | Class | Description |
---|---|---|
protected class |
AxisInverse.XDataInverseAccessor |
An accessor for the x axis of a chart.
|
protected class |
AxisInverse.YDataInverseAccessor |
Accesses the y axis of the
Chart2D . |
AAxis.AChart2DDataAccessor, AAxis.XDataAccessor, AAxis.YDataAccessor
IAxis.AxisTitle
DEBUG, m_accessor, m_formatter, m_majorTickSpacing, m_max, m_min, m_minorTickSpacing, m_needsFullRescale, m_rangePolicy
PROPERTY_ADD_REMOVE_TRACE, PROPERTY_AXIS_SCALE_POLICY_CHANGED, PROPERTY_LABELFORMATTER, PROPERTY_PAINTGRID, PROPERTY_PAINTSCALE, PROPERTY_RANGEPOLICY
Constructor | Description |
---|---|
AxisInverse() |
Defcon.
|
AxisInverse(IAxisLabelFormatter formatter,
T scalePolicy) |
Constructor that uses the given label formatter for formatting labels.
|
Modifier and Type | Method | Description |
---|---|---|
protected AAxis.AChart2DDataAccessor |
createAccessor(Chart2D chart,
int dimension,
int position) |
Template method to create the proper
implementation. |
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).
|
IAxisScalePolicy |
setAxisScalePolicy(T axisScalePolicy) |
The default used is
. |
addPropertyChangeListener, addTrace, ensureInitialized, equals, findMax, findMin, getAccessor, getAxisPosition, getAxisScalePolicy, getAxisTitle, getDimension, getDimensionString, getFormatter, getHeight, getMajorTickSpacing, getMax, getMaxValue, getMin, getMinorTickSpacing, getMinValue, getPixelXLeft, getPixelXRight, getPixelYBottom, getPixelYTop, getPropertyChangeListeners, getRange, getRangePolicy, getTitle, getTitlePainter, getTraces, getValueDistanceForPixel, getWidth, hashCode, hasTrace, initPaintIteration, isDirtyScaling, isPaintGrid, isPaintScale, isStartMajorTick, isVisible, paint, paintTitle, propertyChange, removeAllTraces, removeAxisTitle, removePropertyChangeListener, removeTrace, scale, scalePoint, scaleTrace, setAccessor, setAxisPosition, setAxisTitle, setChart, setFormatter, setMajorTickSpacing, setMinorTickSpacing, setPaintGrid, setPaintScale, setPixelXLeft, setPixelXRight, setPixelYBottom, setPixelYTop, setRange, setRangePolicy, setStartMajorTick, setTitle, setTitlePainter, setVisible, translateMousePosition, translatePxToValue, translateValueToPx
public AxisInverse()
public AxisInverse(IAxisLabelFormatter formatter, T scalePolicy)
formatter
- needed for formatting labels of this axis.scalePolicy
- controls the ticks/labels and their distance.protected AAxis.AChart2DDataAccessor createAccessor(Chart2D chart, int dimension, int position)
AAxis
AAxis.AChart2DDataAccessor
implementation.
createAccessor
in class AAxis<T extends IAxisScalePolicy>
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)
public IAxisScalePolicy setAxisScalePolicy(T axisScalePolicy)
AAxis
AxisScalePolicyAutomaticBestFit
.
setAxisScalePolicy
in interface IAxis<T extends IAxisScalePolicy>
setAxisScalePolicy
in class AAxis<T extends IAxisScalePolicy>
axisScalePolicy
- the axis scale policy which controls the position and distance of
the ticks to draw to use.AAxis.setAxisScalePolicy(info.monitorenter.gui.chart.IAxisScalePolicy)
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)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.