|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.gui.chart.axis.AAxis.AChart2DDataAccessor
info.monitorenter.gui.chart.axis.AAxis.YDataAccessor
info.monitorenter.gui.chart.axis.AxisInverse.YDataInverseAccessor
public class AxisInverse.YDataInverseAccessor
Accesses the y axis of the Chart2D.
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 | |
|---|---|
AxisInverse.YDataInverseAccessor(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. |
double |
translatePxToValue(int pixel)
Transforms the given pixel value (which has to be a awt value like MouseEvent.getX() into the chart value. |
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 |
| 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 |
|---|
public AxisInverse.YDataInverseAccessor(Chart2D chart)
chart - the chart to access.| Method Detail |
|---|
protected void scaleTrace(ITrace2D trace,
Range range)
AAxis.AChart2DDataAccessor
This method is not deadlock - safe and should be called by the
only!
Chart2D
scaleTrace in class AAxis.YDataAccessortrace - the trace to scale.range - the range to use as scaler.AAxis.AChart2DDataAccessor.scaleTrace(info.monitorenter.gui.chart.ITrace2D,
info.monitorenter.util.Range)public double translatePxToValue(int pixel)
AAxis.AChart2DDataAccessorMouseEvent.getX() into the chart value.
Internal use only, the interface does not guarantee that the pixel corresponds to any valid awt pixel value within the chart component.
Warning: A value transformed to a pixel by AAxis.AChart2DDataAccessor.translateValueToPx(double) and then
retransformed by AAxis.AChart2DDataAccessor.translatePxToValue(int) will most often have changed, as the
transformation from value to px a) has to hit an exact int b) most often will map from a
bigger domain (value range) to a smaller one (range of chart on the screen).
translatePxToValue in class AAxis.YDataAccessorpixel - a pixel value of the chart component as used by awt.
AAxis.AChart2DDataAccessor.translatePxToValue(int)public int translateValueToPx(double value)
AAxis.AChart2DDataAccessor
The inverse transformation to AAxis.AChart2DDataAccessor.translatePxToValue(int).
translateValueToPx in class AAxis.YDataAccessorvalue - a chart data value.
AAxis.AChart2DDataAccessor.translateValueToPx(double)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||