edu.sc.seis.fissuresUtil.display
Class AmpScaleMapper

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.display.UnitRangeMapper
      extended by edu.sc.seis.fissuresUtil.display.AmpScaleMapper
All Implemented Interfaces:
AmpListener, ScaleMapper, java.util.EventListener

public class AmpScaleMapper
extends UnitRangeMapper
implements AmpListener

AmpScaleMapper.java Created: Fri Oct 22 14:47:39 1999


Constructor Summary
AmpScaleMapper(int totalPixels, int hintPixels)
          this constructor assumes that some outside entity is going to set the range on this scalemapper
AmpScaleMapper(int totalPixels, int hintPixels, AmpConfig ac)
          this constructor uses the passed in amp config to determine the value for the scale mapper
 
Method Summary
 java.lang.String getAxisLabel()
           
 void setAmpConfig(AmpConfig ac)
           
 void updateAmp(AmpEvent event)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.UnitRangeMapper
calculateTicks, getLabel, getNumTicks, getPixelLocation, getTotalPixels, getUnit, isLabelTick, isMajorTick, setTotalPixels, setUnitRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmpScaleMapper

public AmpScaleMapper(int totalPixels,
                      int hintPixels)
this constructor assumes that some outside entity is going to set the range on this scalemapper


AmpScaleMapper

public AmpScaleMapper(int totalPixels,
                      int hintPixels,
                      AmpConfig ac)
this constructor uses the passed in amp config to determine the value for the scale mapper

Method Detail

updateAmp

public void updateAmp(AmpEvent event)
Specified by:
updateAmp in interface AmpListener

setAmpConfig

public void setAmpConfig(AmpConfig ac)

getAxisLabel

public java.lang.String getAxisLabel()
Specified by:
getAxisLabel in interface ScaleMapper
Overrides:
getAxisLabel in class UnitRangeMapper