|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.berkeley.guir.lib.satin.view.ViewImpl
|
+--edu.berkeley.guir.lib.satin.view.ViewWrapper
|
+--edu.berkeley.guir.lib.satin.view.SemanticZoomViewWrapper
Wraps normal views into a semantic-zoom view. A semantic zoom view is only displayed at certain programmer-specified zoom levels.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Aug 11 1999, JH
Created class
- SATIN-v2.1-1.0.0, Aug 11 2000, JH
Touched for SATIN release
| Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
| Fields inherited from class edu.berkeley.guir.lib.satin.view.ViewImpl |
gob, poly |
| Constructor Summary | |
SemanticZoomViewWrapper()
Empty constructor, does nothing. |
|
SemanticZoomViewWrapper(View v)
Wrap a view into a semantic-zoom wrapper. |
|
SemanticZoomViewWrapper(View v,
double start,
double end)
Create a new semantic zoom view with the specified range. |
|
SemanticZoomViewWrapper(View v,
double fIn,
double s,
double e,
double fOut)
Create a new semantic zoom view with the specified range. |
|
| Method Summary | |
Object |
clone()
Implementation of the Sorceror's Apprentice algorithm. |
protected SemanticZoomViewWrapper |
clone(SemanticZoomViewWrapper vw)
|
double |
getEndScale()
Get the end of the scale range in which the view will stop being displayed fully. |
double |
getFadeIn()
Get the beginning of the scale range in which the view will begin to fade in. |
double |
getFadeOut()
Get the beginning of the scale range in which the view will begin to fade out. |
protected double |
getScaleFactor()
Get the absolute scale factor. |
double |
getStartScale()
Get the beginning of the scale range in which the view will begin being displayed fully. |
float |
getViewDisplayValue()
Check whether or not this view is valid, ie can and should be displayed. |
void |
render(SatinGraphics g)
Render this view. |
void |
setDisplayRange(double startScale,
double endScale)
Calls setDisplayRange(double, double, double, double), setting
the fade-in value to be startScale, and fadeOut to be endScale. |
void |
setDisplayRange(double fadeIn,
double startScale,
double endScale,
double fadeOut)
Set the range of values. |
String |
toString()
|
| Methods inherited from class edu.berkeley.guir.lib.satin.view.ViewWrapper |
clone, getBoundingPoints2DRef, getName, getView, setAttachedGraphicalObject, setBoundingPoints2DRef, setView |
| Methods inherited from class edu.berkeley.guir.lib.satin.view.ViewImpl |
clone, getAttachedGraphicalObject, isVisible, setName, setVisible |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.berkeley.guir.lib.satin.view.View |
getAttachedGraphicalObject, getBoundingPoints2DRef, getName, isVisible, setAttachedGraphicalObject, setBoundingPoints2DRef, setName, setVisible |
| Constructor Detail |
public SemanticZoomViewWrapper()
public SemanticZoomViewWrapper(View v)
public SemanticZoomViewWrapper(View v,
double start,
double end)
setDisplayRange(double, double)
public SemanticZoomViewWrapper(View v,
double fIn,
double s,
double e,
double fOut)
fIn - is the fade-in value.s - is the start display value.e - is the end display value.fOut - is the fade-out value.setDisplayRange(double, double, double, double)| Method Detail |
public void setDisplayRange(double fadeIn,
double startScale,
double endScale,
double fadeOut)
SemanticZoomViewWhat happens during zooming can be thought of as a trapezoid (see below). Starting from the left, the object appears at fadeIn, becomes more solid until it reaches startScale, remains solid until it reaches endScale, and starts becoming translucent again as it moves towards fadeOut.
______________________
/| |\
/ | | \
/ | | \
/ | | \
/ | | \
fadeIn startScale endScale fadeOut
setDisplayRange in interface SemanticZoomViewedu.berkeley.guir.lib.satin.view.SemanticZoomViewfadeIn - is the scale value (absolute zoom) to start fading in.startScale - is the scale value (absolute zoom) to start displaying
without any fade.endScale - is the scale value (absolute zoom) to stop displaying.fadeOut - is the scale value (absolute zoom) to start fading out.
public void setDisplayRange(double startScale,
double endScale)
SemanticZoomViewSemanticZoomView.setDisplayRange(double, double, double, double), setting
the fade-in value to be startScale, and fadeOut to be endScale.setDisplayRange in interface SemanticZoomViewpublic double getFadeIn()
SemanticZoomViewgetFadeIn in interface SemanticZoomViewedu.berkeley.guir.lib.satin.view.SemanticZoomViewpublic double getStartScale()
SemanticZoomViewgetStartScale in interface SemanticZoomViewedu.berkeley.guir.lib.satin.view.SemanticZoomViewpublic double getEndScale()
SemanticZoomViewgetEndScale in interface SemanticZoomViewedu.berkeley.guir.lib.satin.view.SemanticZoomViewpublic double getFadeOut()
SemanticZoomViewgetFadeOut in interface SemanticZoomViewedu.berkeley.guir.lib.satin.view.SemanticZoomViewprotected double getScaleFactor()
public float getViewDisplayValue()
ViewgetViewDisplayValue in interface Viewedu.berkeley.guir.lib.satin.view.Viewpublic String toString()
toString in class ViewWrapperpublic void render(SatinGraphics g)
Viewrender in interface Viewpublic Object clone()
Viewclone in interface Viewclone in class ViewImplprotected SemanticZoomViewWrapper clone(SemanticZoomViewWrapper vw)
|
Copyright Information | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||