|
|||||||||
| 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. |
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(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 ScaleMapperi - The number of the tick of interest.public java.lang.String getLabel(int i)
ScaleMapper
getLabel in interface ScaleMapperpublic java.lang.String getAxisLabel()
getAxisLabel in interface ScaleMapperpublic UnitImpl getUnit()
public int getNumTicks()
ScaleMapper
getNumTicks in interface ScaleMapperpublic boolean isMajorTick(int i)
ScaleMapper
isMajorTick in interface ScaleMapperi - 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 ScaleMapperpublic void setUnitRange(UnitRangeImpl r)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||