info.monitorenter.gui.chart.axis
Class AxisLinear

java.lang.Object
  extended by info.monitorenter.gui.chart.axis.AAxis
      extended by info.monitorenter.gui.chart.axis.AxisLinear
All Implemented Interfaces:
IAxis, PropertyChangeListener, Serializable, EventListener

public class AxisLinear
extends AAxis

An AAxis with linear display of values.

Version:
$Revision: 1.16 $
Author:
Achim Westermann
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class info.monitorenter.gui.chart.axis.AAxis
AAxis.AChart2DDataAccessor, AAxis.XDataAccessor, AAxis.YDataAccessor
 
Field Summary
 
Fields inherited from class info.monitorenter.gui.chart.axis.AAxis
m_accessor, m_formatter, m_majorTickSpacing, m_minorTickSpacing, m_power
 
Fields inherited from interface info.monitorenter.gui.chart.IAxis
PROPERTY_LABELFORMATTER, PROPERTY_PAINTGRID, PROPERTY_RANGEPOLICY, PROPERTY_TITLE, PROPERTY_TITLEFONT, PROPERTY_TITLEPAINTER
 
Constructor Summary
AxisLinear()
          Defcon.
AxisLinear(IAxisLabelFormatter formatter)
          Constructor that uses the given label formatter for formatting labels.
 
Method Summary
protected  AAxis.AChart2DDataAccessor createAccessor(Chart2D chart, int dimension)
          Template method to create the proper AAxis.AChart2DDataAccessor 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).
 
Methods inherited from class info.monitorenter.gui.chart.axis.AAxis
addPropertyChangeListener, addTrace, getAccessor, getDimension, getFormatter, getHeight, getLabels, getMajorTickSpacing, getMax, getMin, getMinorTickSpacing, getPropertyChangeListeners, getRange, getRangePolicy, getScaleValues, getTitle, getTitlePainter, getValueDistanceForPixel, getWidth, initPaintIteration, isPaintGrid, isPaintScale, isStartMajorTick, paintTitle, propertyChange, removePropertyChangeListener, removeTrace, replace, roundToTicks, scale, scaleTrace, setAccessor, setChart, setFormatter, setMajorTickSpacing, setMinorTickSpacing, setPaintGrid, setPaintScale, setRange, setRangePolicy, setStartMajorTick, setTitle, setTitlePainter, translateMousePosition, translatePxToValue, translateValueToPx
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisLinear

public AxisLinear()
Defcon.


AxisLinear

public AxisLinear(IAxisLabelFormatter formatter)
Constructor that uses the given label formatter for formatting labels.

Parameters:
formatter - needed for formatting labels of this axis.
Method Detail

createAccessor

protected AAxis.AChart2DDataAccessor createAccessor(Chart2D chart,
                                                    int dimension)
Description copied from class: AAxis
Template method to create the proper AAxis.AChart2DDataAccessor implementation.

Specified by:
createAccessor in class AAxis
Parameters:
chart - the chart to access.
dimension - Chart2D.X or Chart2D.Y.
Returns:
the proper AAxis.AChart2DDataAccessor implementation.
See Also:
AAxis.createAccessor(info.monitorenter.gui.chart.Chart2D, int)

getScaledValue

public double getScaledValue(double absolute)
Description copied from interface: IAxis
Scales 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)


Copyright © 2001 - 2007 LGPL, All Rights Footloose.