info.monitorenter.gui.chart.axis
Class AAxisTransformation.YDataAccessor

java.lang.Object
  extended by info.monitorenter.gui.chart.axis.AAxis.AChart2DDataAccessor
      extended by info.monitorenter.gui.chart.axis.AAxis.YDataAccessor
          extended by info.monitorenter.gui.chart.axis.AAxisTransformation.YDataAccessor
All Implemented Interfaces:
Serializable
Enclosing class:
AAxisTransformation

public final class AAxisTransformation.YDataAccessor
extends AAxis.YDataAccessor

Accesses the y axis of the Chart2D.

See Also:
AAxis.setAccessor(info.monitorenter.gui.chart.axis.AAxis.AChart2DDataAccessor), Chart2D.getAxisY(), Serialized Form

Field Summary
 
Fields inherited from class info.monitorenter.gui.chart.axis.AAxis.AChart2DDataAccessor
m_chart, m_rangePolicy
 
Constructor Summary
AAxisTransformation.YDataAccessor(Chart2D chart)
          Creates an instance that accesses the y axis of the given chart.
 
Method Summary
protected  void scaleTrace(ITrace2D trace, Range range)
          Scales the given trace in the dimension represented by this axis.
 int translateValueToPx(double value)
          Transforms the given chart data value into the corresponding awt pixel value for the chart.
 
Methods inherited from class info.monitorenter.gui.chart.axis.AAxis.YDataAccessor
getDimension, getHeight, getMax, getMaxFromAxis, getMaximumPixelForLabel, getMin, getMinFromAxis, getMinimumValueDistanceForLabels, getPixelRange, getValueDistanceForPixel, getWidth, scale, toString, translateMousePosition, translatePxToValue
 
Methods inherited from class info.monitorenter.gui.chart.axis.AAxis.AChart2DDataAccessor
getChart, getRangePolicy, setRangePolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AAxisTransformation.YDataAccessor

public AAxisTransformation.YDataAccessor(Chart2D chart)
Creates an instance that accesses the y axis of the given chart.

Parameters:
chart - the chart to access.
Method Detail

translateValueToPx

public final int translateValueToPx(double value)
Description copied from class: AAxis.AChart2DDataAccessor
Transforms the given chart data value into the corresponding awt pixel value for the chart.

The inverse transformation to AAxis.AChart2DDataAccessor.translatePxToValue(int).

Overrides:
translateValueToPx in class AAxis.YDataAccessor
Parameters:
value - a chart data value.
Returns:
the awt pixel value corresponding to the chart data value.
See Also:
AAxis.AChart2DDataAccessor.translateValueToPx(double)

scaleTrace

protected void scaleTrace(ITrace2D trace,
                          Range range)
Description copied from class: AAxis.AChart2DDataAccessor
Scales the given trace in the dimension represented by this axis.

This method is not deadlock - safe and should be called by the Chart2D only!

Overrides:
scaleTrace in class AAxis.YDataAccessor
Parameters:
trace - the trace to scale.
range - the range to use as scaler.
See Also:
AAxis.YDataAccessor.scaleTrace(info.monitorenter.gui.chart.ITrace2D, info.monitorenter.util.Range)


Copyright © 2001 - 2007 LGPL, All Rights Footloose.