public class AmpScaleMapper extends UnitRangeMapper implements AmpListener
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAxisLabel() |
void |
setAmpConfig(AmpConfig ac) |
void |
updateAmp(AmpEvent event) |
calculateTicks, getLabel, getNumTicks, getPixelLocation, getTotalPixels, getUnit, isLabelTick, isMajorTick, setTotalPixels, setUnitRange
public AmpScaleMapper(int totalPixels, int hintPixels)
public AmpScaleMapper(int totalPixels, int hintPixels, AmpConfig ac)
public void updateAmp(AmpEvent event)
updateAmp
in interface AmpListener
public void setAmpConfig(AmpConfig ac)
public java.lang.String getAxisLabel()
getAxisLabel
in interface ScaleMapper
getAxisLabel
in class UnitRangeMapper