DESY ACOP Beans Home

com.cosylab.gui.components.range2
Class LogarithmicTickCalculator

java.lang.Object
  extended by com.cosylab.gui.components.range2.LogarithmicTickCalculator
All Implemented Interfaces:
TickCalculator

public class LogarithmicTickCalculator
extends java.lang.Object
implements TickCalculator

Uses Range to find optimal tick distribution for LogarithmicRange.

Version:
$id$
Author:
Nejc Kosnik

Constructor Summary
LogarithmicTickCalculator(int tickSpacing, boolean boundTicksVisible)
          Creates a new TickCollector object.
 
Method Summary
 Tick[] calculateTicks(int length, Range range, RangedValue rangedValue)
          Calculates ticks using some default TickParameters.
 Tick[] calculateTicks(int length, TickParameters measurer, Range range, RangedValue rangedValue)
          Calculates ticks using the given TickParameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogarithmicTickCalculator

public LogarithmicTickCalculator(int tickSpacing,
                                 boolean boundTicksVisible)
Creates a new TickCollector object.

Parameters:
range - Definition of range.
tickSpacing - Minimum space between minor ticks.
length - Available space in pixels.
Method Detail

calculateTicks

public Tick[] calculateTicks(int length,
                             Range range,
                             RangedValue rangedValue)
Description copied from interface: TickCalculator
Calculates ticks using some default TickParameters.

Specified by:
calculateTicks in interface TickCalculator
Parameters:
length - the available space for ticks in the displayer
range - range which provides transformation to absolute/relative values
rangedValue - the value bounds
Returns:

calculateTicks

public Tick[] calculateTicks(int length,
                             TickParameters measurer,
                             Range range,
                             RangedValue rangedValue)
Description copied from interface: TickCalculator
Calculates ticks using the given TickParameters.

Specified by:
calculateTicks in interface TickCalculator
Parameters:
length - the available space for ticks in the displayer
measurer - TickParameters used to measure ticks
range - range which provides transformation to absolute/relative values
rangedValue - the value bounds
Returns:


Copyright © 2010. All Rights Reserved.