|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.ScalingScheme
public class ScalingScheme
An object which manages the scaling policy for a map set. For example, most of our sets use prerendered base images, and therefore only have discrete scales to choose from. Others may be continuously scalable.
| Constructor Summary | |
|---|---|
ScalingScheme()
Creates a simple continuous ScalingScheme. |
|
ScalingScheme(java.util.ArrayList scales,
Scale detailScale)
Creates a discrete ScalingScheme for the given ArrayList of Scales. |
|
| Method Summary | |
|---|---|
Scale |
getDetailScale()
|
java.util.ArrayList |
getScales()
|
int |
indexOf(Scale scale)
Returns the index of the given scale. |
boolean |
isBottom(Scale scaley)
Returns true if the scale is the "bottommost" (least coarse) scale available; i.e. |
boolean |
isContinuous()
|
boolean |
isDetail(Scale scaley)
Returns true if the scale is at or below the "detail" scale. |
boolean |
isTop(Scale scaley)
Returns true if the scale is the "topmost" (most coarse) scale available; i.e. |
void |
mergeScheme(ScalingScheme nother)
Merges the given ScalingScheme into this one. |
Scale |
scaleAt(int index)
Returns the scale at the given index. |
void |
setDetailScale(Scale newScale)
|
void |
setScales(java.util.ArrayList newScales)
|
Scale |
zoomIn(Scale scaley)
Returns the next scale "lower" (finer) than the one given. |
Scale |
zoomOut(Scale scaley)
Returns the next scale "higher" (coarser) than the one given. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScalingScheme()
public ScalingScheme(java.util.ArrayList scales,
Scale detailScale)
| Method Detail |
|---|
public boolean isTop(Scale scaley)
public boolean isBottom(Scale scaley)
public boolean isDetail(Scale scaley)
public Scale zoomOut(Scale scaley)
public Scale zoomIn(Scale scaley)
public Scale scaleAt(int index)
public int indexOf(Scale scale)
public void mergeScheme(ScalingScheme nother)
public boolean isContinuous()
public java.util.ArrayList getScales()
public void setScales(java.util.ArrayList newScales)
public Scale getDetailScale()
public void setDetailScale(Scale newScale)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||