|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.chart.axis.AAxis
info.monitorenter.gui.chart.axis.AAxisTransformation
info.monitorenter.gui.chart.axis.AxisLog10
public class AxisLog10
An AAxis
with log base 10 scaled
display of values.
This will even not work with values < 1.0 as the log transformation turns
negative for values < 1.0 and becomes Double.NEGATIVE_INFINITY
with
lim -> 0.0 with more and more turns to a 100 % CPU load.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class info.monitorenter.gui.chart.axis.AAxisTransformation |
---|
AAxisTransformation.XDataAccessor, AAxisTransformation.YDataAccessor |
Nested classes/interfaces inherited from class info.monitorenter.gui.chart.axis.AAxis |
---|
AAxis.AChart2DDataAccessor |
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 | |
---|---|
AxisLog10()
Creates an instance that uses a LabelFormatterSimple for formatting
numbers. |
|
AxisLog10(IAxisLabelFormatter formatter)
Constructor that uses the given label formatter for formatting labels. |
Method Summary | |
---|---|
protected double |
transform(double in)
Performs Math.log10(double) with a check for reaching infinity. |
protected double |
untransform(double in)
Template method for performing the reverse axis transformation. |
Methods inherited from class info.monitorenter.gui.chart.axis.AAxisTransformation |
---|
createAccessor, getMax, getMin, getScaledValue, translateMousePosition, translatePxToValue |
Methods inherited from class info.monitorenter.gui.chart.axis.AAxis |
---|
addPropertyChangeListener, addTrace, getAccessor, getDimension, getFormatter, getHeight, getLabels, getMajorTickSpacing, 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, translateValueToPx |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisLog10()
LabelFormatterSimple
for formatting
numbers.
public AxisLog10(IAxisLabelFormatter formatter)
formatter
- needed for formatting labels of this axis.Method Detail |
---|
protected double transform(double in)
Math.log10(double)
with a check for reaching infinity.
The argument should not be negative, so only normalized values (no chart values but their scaled values or pixel values) should be given here.
If the argument is close to zero, the result of log would be
Double.POSITIVE_INFINITY
which is transformed to
Double.MAX_VALUE
.
transform
in class AAxisTransformation
in
- the value to compute the log base 10 of.
protected double untransform(double in)
AAxisTransformation
This is the counterpart to AAxisTransformation.transform(double)
.
untransform
in class AAxisTransformation
in
- the transformed value.
AAxisTransformation.untransform(double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |