lt.monarch.chart.mapper
Class LogAxisScale.SubScale

java.lang.Object
  extended by lt.monarch.chart.mapper.AnalogAxisScale
      extended by lt.monarch.chart.mapper.LogAxisScale
          extended by lt.monarch.chart.mapper.LogAxisScale.SubScale
All Implemented Interfaces:
java.io.Serializable, AxisScale
Enclosing class:
LogAxisScale

public class LogAxisScale.SubScale
extends LogAxisScale

The sub-scale of LogAxisScale. The scale hasn't sub-scale and labels.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.mapper.LogAxisScale
LogAxisScale.ExponentFormat, LogAxisScale.SubScale
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.mapper.LogAxisScale
range
 
Fields inherited from class lt.monarch.chart.mapper.AnalogAxisScale
subscaleTickCount
 
Constructor Summary
Constructor and Description
LogAxisScale.SubScale(LogMathRange r, LogAxisScale parent)
          Constructs a new LogAxisScale.
 
Method Summary
Modifier and Type Method and Description
 int findNearestMark(double d)
          Finds an index of scale mark nearest to the specified position on axis.
 java.lang.String getLabelAt(int i)
          Returns null.
 java.lang.String getLabelAt(int i, java.util.Locale locale)
          Returns null.
 int getMarkCount()
          Gets a number of marks in the scale.
 AxisScale getSubScale()
          Returns null.
 double mapMark(int i)
          Returns a position on axis of the specified scale mark.
 
Methods inherited from class lt.monarch.chart.mapper.LogAxisScale
createSubScale, getCustomNumberFormat, getFormats, getNumberFormat, isDrawSubScale, mapMarkTicks, setCustomNumberFormat, setDrawSubScale, setNumberFormat, setPrecisionPlaces
 
Methods inherited from class lt.monarch.chart.mapper.AnalogAxisScale
getSubscaleTickCount, setSubscaleTickCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogAxisScale.SubScale

public LogAxisScale.SubScale(LogMathRange r,
                             LogAxisScale parent)
Constructs a new LogAxisScale. SubScale with the specified range and parent scale.

Parameters:
r - the logarithmic range
parent - the parent scale
Method Detail

getMarkCount

public int getMarkCount()
Gets a number of marks in the scale.

Specified by:
getMarkCount in interface AxisScale
Overrides:
getMarkCount in class LogAxisScale
Returns:
number of marks in the scale

findNearestMark

public int findNearestMark(double d)
Finds an index of scale mark nearest to the specified position on axis.

Specified by:
findNearestMark in interface AxisScale
Overrides:
findNearestMark in class LogAxisScale
Parameters:
d - position on axis; should be in range [0;1]
Returns:
index of nearest mark

mapMark

public double mapMark(int i)
Returns a position on axis of the specified scale mark.

Specified by:
mapMark in interface AxisScale
Overrides:
mapMark in class LogAxisScale
Parameters:
i - scale mark index
Returns:
position of the mark on axis

getSubScale

public AxisScale getSubScale()
Returns null.

Specified by:
getSubScale in interface AxisScale
Overrides:
getSubScale in class LogAxisScale
Returns:
null

getLabelAt

public java.lang.String getLabelAt(int i)
Returns null.

Specified by:
getLabelAt in interface AxisScale
Overrides:
getLabelAt in class LogAxisScale
Parameters:
i - label index
Returns:
null

getLabelAt

public java.lang.String getLabelAt(int i,
                                   java.util.Locale locale)
Returns null.

Specified by:
getLabelAt in interface AxisScale
Overrides:
getLabelAt in class LogAxisScale
Parameters:
i - label index
locale - the locale
Returns:
null