edu.sc.seis.fissuresUtil.display
Interface ScaleMapper

All Known Implementing Classes:
AbsTimeScaleMapper, AmpScaleMapper, DistanceScaleMapper, TimeScaleCalc, TimeScaleMapper, UnitRangeMapper

public interface ScaleMapper

Simple interface for scale mappers, which decide how many and which values should be used as ticks in scale bars, which should be labeled etc. Separating this from the actual plotting widget increases flexibility and reuse. Created: Mon Oct 18 16:22:13 1999


Method Summary
 java.lang.String getAxisLabel()
           
 java.lang.String getLabel(int i)
          Gets the label if there is one for the ith tick.
 int getNumTicks()
          Gets the total number of ticks.
 int getPixelLocation(int i)
          Gets the pixel location for the ith tick.
 int getTotalPixels()
          returns the total pixels used to calculate map.
 boolean isMajorTick(int i)
          True if the ith tick is a major tick.
 

Method Detail

getPixelLocation

int getPixelLocation(int i)
Gets the pixel location for the ith tick.

Parameters:
i - The number of the tick of interest.

getLabel

java.lang.String getLabel(int i)
Gets the label if there is one for the ith tick. If there is no label then a empty string should be returned instead of a null.


getNumTicks

int getNumTicks()
Gets the total number of ticks.


isMajorTick

boolean isMajorTick(int i)
True if the ith tick is a major tick. This could be used by the plotting component to draw major tick longer or thicker.

Parameters:
i - The number of the tick of interest.

getAxisLabel

java.lang.String getAxisLabel()

getTotalPixels

int getTotalPixels()
returns the total pixels used to calculate map. SBH

Returns: