DESY ACOP Beans Home

com.cosylab.gui.components.range2
Interface TickCalculator

All Known Implementing Classes:
LinearTickCalculator, LogarithmicTickCalculator, ManualTickCalculator

public interface TickCalculator

TickCalculator calculates ticks for the displayer. The returned Ticks should be ready to be drawn on the displayer.

Version:
$Id: TickCalculator.java,v 1.3 2008-04-22 12:28:40 jbobnar Exp $
Author:
Jaka Bobnar

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.
 

Method Detail

calculateTicks

Tick[] calculateTicks(int length,
                      Range range,
                      RangedValue rangedValue)
Calculates ticks using some default TickParameters.

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

Tick[] calculateTicks(int length,
                      TickParameters measurer,
                      Range range,
                      RangedValue rangedValue)
Calculates ticks using the given TickParameters.

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.