info.monitorenter.gui.chart.axis
Class AxisInverse<T extends IAxisScalePolicy>
- java.lang.Object
-
- info.monitorenter.gui.chart.axis.AAxis<T>
-
- info.monitorenter.gui.chart.axis.AxisInverse<T>
-
- Type Parameters:
T- Subtypes may be more picky which scale policies the accept to disallow incorrect scales: This supports it (seeIAxis.setAxisScalePolicy(IAxisScalePolicy)).
- All Implemented Interfaces:
- IAxis<T>, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener
public class AxisInverse<T extends IAxisScalePolicy> extends AAxis<T>
AnAAxiswith inverse display of values.Labels and values are starting from the highest value and go down to the lowest one.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class info.monitorenter.gui.chart.axis.AAxis
AAxis.AChart2DDataAccessor, AAxis.XDataAccessor
-
Nested classes/interfaces inherited from interface info.monitorenter.gui.chart.IAxis
IAxis.AxisTitle
-
-
Field Summary
-
Fields inherited from interface info.monitorenter.gui.chart.IAxis
PROPERTY_ADD_REMOVE_TRACE, PROPERTY_AXIS_SCALE_POLICY_CHANGED, PROPERTY_LABELFORMATTER, PROPERTY_PAINTGRID, PROPERTY_PAINTSCALE, PROPERTY_RANGEPOLICY
-
-
Constructor Summary
Constructors Constructor and Description AxisInverse()Defcon.AxisInverse(IAxisLabelFormatter formatter, T scalePolicy)Constructor that uses the given label formatter for formatting labels.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetScaledValue(double absolute)Scales the given absolute value into a value between 0 and 1.0 (if it is in the range of the data).IAxisScalePolicysetAxisScalePolicy(T axisScalePolicy)The default used is.AxisScalePolicyAutomaticBestFit-
Methods inherited from class info.monitorenter.gui.chart.axis.AAxis
addPropertyChangeListener, addTrace, equals, getAccessor, getAxisPosition, getAxisScalePolicy, getAxisTitle, getDimension, getDimensionString, getFormatter, getHeight, getMajorTickSpacing, getMax, getMaxValue, getMin, getMinorTickSpacing, getMinValue, getPixelXLeft, getPixelXRight, getPixelYBottom, getPixelYTop, getPropertyChangeListeners, getRange, getRangePolicy, getTitle, getTitlePainter, getTraces, getWidth, hashCode, hasTrace, initPaintIteration, isDirtyScaling, isPaintGrid, isPaintScale, isStartMajorTick, isVisible, paint, paintTitle, propertyChange, removeAllTraces, removeAxisTitle, removePropertyChangeListener, removeTrace, scale, scaleTrace, setAxisTitle, setChart, setFormatter, setMajorTickSpacing, setMinorTickSpacing, setPaintGrid, setPaintScale, setPixelXLeft, setPixelXRight, setPixelYBottom, setPixelYTop, setRange, setRangePolicy, setStartMajorTick, setTitle, setTitlePainter, setVisible, translateMousePosition, translatePxToValue, translateValueToPx
-
-
-
-
Constructor Detail
-
AxisInverse
public AxisInverse()
Defcon.
-
AxisInverse
public AxisInverse(IAxisLabelFormatter formatter, T scalePolicy)
Constructor that uses the given label formatter for formatting labels.- Parameters:
formatter- needed for formatting labels of this axis.scalePolicy- controls the ticks/labels and their distance.
-
-
Method Detail
-
setAxisScalePolicy
public IAxisScalePolicy setAxisScalePolicy(T axisScalePolicy)
Description copied from class:AAxisThe default used is.AxisScalePolicyAutomaticBestFit- Specified by:
setAxisScalePolicyin interfaceIAxis<T extends IAxisScalePolicy>- Overrides:
setAxisScalePolicyin classAAxis<T extends IAxisScalePolicy>- Parameters:
axisScalePolicy- the axis scale policy which controls the position and distance of the ticks to draw to use.- Returns:
- the previous axis scale policy that was used before.
- See Also:
AAxis.setAxisScalePolicy(info.monitorenter.gui.chart.IAxisScalePolicy)
-
getScaledValue
public double getScaledValue(double absolute)
Description copied from interface:IAxisScales the given absolute value into a value between 0 and 1.0 (if it is in the range of the data).If the given absolute value is not in the display- range of the
Chart2D, negative values or values greater than 1.0 may result.- Parameters:
absolute- a value in the real value range of the corresponding chart.- Returns:
- a value between 0.0 and 1.0 that is mapped to a position within the chart.
- See Also:
IAxis.getScaledValue(double)
-
-
DMelt 3.0 © DataMelt by jWork.ORG