|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.monitorenter.gui.chart.axis.AAxis<T> info.monitorenter.gui.chart.axis.AAxisTransformation<T> info.monitorenter.gui.chart.axis.AxisLogE<T>
T
- Used to enforce that this instance only accepts
AxisScalePolicyTransformation
and subtypes.public class AxisLogE<T extends AxisScalePolicyTransformation>
An AAxis
with log 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 |
Nested classes/interfaces inherited from interface info.monitorenter.gui.chart.IAxis |
---|
IAxis.AxisTitle |
Field Summary |
---|
Fields inherited from class info.monitorenter.gui.chart.axis.AAxisTransformation |
---|
m_outputErrorTstamp |
Fields inherited from class info.monitorenter.gui.chart.axis.AAxis |
---|
DEBUG, m_accessor, m_formatter, m_majorTickSpacing, m_max, m_min, m_minorTickSpacing, m_needsFullRescale, m_rangePolicy |
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 | |
---|---|
AxisLogE()
Creates an instance that uses a LabelFormatterSimple for formatting
numbers and a AxisScalePolicyAutomaticBestFit for controlling the scale. |
|
AxisLogE(IAxisLabelFormatter formatter,
T scalePolicy)
Creates an instance that will the given label formatter for formatting labels. |
Method Summary | |
---|---|
double |
transform(double in)
Performs Math.log10(double) with a check for reaching infinity. |
double |
untransform(double in)
Template method for performing the reverse axis transformation. |
Methods inherited from class info.monitorenter.gui.chart.axis.AAxisTransformation |
---|
createAccessor, getMaxTransformed, getMinTransformed, getScaledValue, scaleTrace, translateMousePosition, translatePxToValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisLogE()
LabelFormatterSimple
for formatting
numbers and a AxisScalePolicyAutomaticBestFit
for controlling the scale.
public AxisLogE(IAxisLabelFormatter formatter, T scalePolicy)
formatter
- needed for formatting labels of this axis. Prefer using simple
implementations like LabelFormatterSimple
, a log axis is
complicated enough to understand.scalePolicy
- controls the ticks/labels and their distance.Method Detail |
---|
public 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<T extends AxisScalePolicyTransformation>
in
- the value to compute the log base 10 of.
public double untransform(double in)
AAxisTransformation
This is the counterpart to AAxisTransformation.transform(double)
.
untransform
in class AAxisTransformation<T extends AxisScalePolicyTransformation>
in
- the transformed value.
AAxisTransformation.untransform(double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |