|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
int getPixelLocation(int i)
i
- The number of the tick of interest.java.lang.String getLabel(int i)
int getNumTicks()
boolean isMajorTick(int i)
i
- The number of the tick of interest.java.lang.String getAxisLabel()
int getTotalPixels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |