|
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)
SemanticZoomView
What 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 SemanticZoomView
edu.berkeley.guir.lib.satin.view.SemanticZoomView
fadeIn
- 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)
SemanticZoomView
SemanticZoomView.setDisplayRange(double, double, double, double)
, setting
the fade-in value to be startScale, and fadeOut to be endScale.setDisplayRange
in interface SemanticZoomView
public double getFadeIn()
SemanticZoomView
getFadeIn
in interface SemanticZoomView
edu.berkeley.guir.lib.satin.view.SemanticZoomView
public double getStartScale()
SemanticZoomView
getStartScale
in interface SemanticZoomView
edu.berkeley.guir.lib.satin.view.SemanticZoomView
public double getEndScale()
SemanticZoomView
getEndScale
in interface SemanticZoomView
edu.berkeley.guir.lib.satin.view.SemanticZoomView
public double getFadeOut()
SemanticZoomView
getFadeOut
in interface SemanticZoomView
edu.berkeley.guir.lib.satin.view.SemanticZoomView
protected double getScaleFactor()
public float getViewDisplayValue()
View
getViewDisplayValue
in interface View
edu.berkeley.guir.lib.satin.view.View
public String toString()
toString
in class ViewWrapper
public void render(SatinGraphics g)
View
render
in interface View
public Object clone()
View
clone
in interface View
clone
in class ViewImpl
protected SemanticZoomViewWrapper clone(SemanticZoomViewWrapper vw)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |