|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.fissuresUtil.display.UnitRangeMapper
public class UnitRangeMapper
Constructor Summary | |
---|---|
UnitRangeMapper(int totalPixels,
int hintPixels,
boolean ascending)
|
Method Summary | |
---|---|
protected void |
calculateTicks()
|
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. |
edu.iris.Fissures.model.UnitImpl |
getUnit()
|
boolean |
isLabelTick(int i)
|
boolean |
isMajorTick(int i)
True if the ith tick is a major tick. |
void |
setTotalPixels(int p)
|
void |
setUnitRange(edu.iris.Fissures.model.UnitRangeImpl r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitRangeMapper(int totalPixels, int hintPixels, boolean ascending)
Method Detail |
---|
public int getPixelLocation(int i)
ScaleMapper
getPixelLocation
in interface ScaleMapper
i
- The number of the tick of interest.public java.lang.String getLabel(int i)
ScaleMapper
getLabel
in interface ScaleMapper
public java.lang.String getAxisLabel()
getAxisLabel
in interface ScaleMapper
public edu.iris.Fissures.model.UnitImpl getUnit()
public int getNumTicks()
ScaleMapper
getNumTicks
in interface ScaleMapper
public boolean isMajorTick(int i)
ScaleMapper
isMajorTick
in interface ScaleMapper
i
- The number of the tick of interest.public boolean isLabelTick(int i)
protected void calculateTicks()
public void setTotalPixels(int p)
public int getTotalPixels()
ScaleMapper
getTotalPixels
in interface ScaleMapper
public void setUnitRange(edu.iris.Fissures.model.UnitRangeImpl r)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |