|
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.SemanticZoomViewImpl
A sample implementation of View, which has a trapezoidally-shaped range
of display values. This view is especially useful when used in conjunction
with SemanticZoomMultiViewImpl
, which can fade-in and fade-out
the various views an object may have.
Be sure to implement ViewImpl.clone()
correctly in your
implementation, as copy and paste depend on it.
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 | |
SemanticZoomViewImpl()
Does nothing. |
|
SemanticZoomViewImpl(double start,
double end)
Create a new semantic zoom view with the specified range. |
|
SemanticZoomViewImpl(double fIn,
double s,
double e,
double fOut)
Create a new semantic zoom view with the specified range. |
Method Summary | |
protected SemanticZoomViewImpl |
clone(SemanticZoomViewImpl v)
|
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. |
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 |
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.ViewImpl |
clone, clone, getAttachedGraphicalObject, getBoundingPoints2DRef, getName, isVisible, setAttachedGraphicalObject, setBoundingPoints2DRef, 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 |
clone, getAttachedGraphicalObject, getBoundingPoints2DRef, getName, isVisible, render, setAttachedGraphicalObject, setBoundingPoints2DRef, setName, setVisible |
Constructor Detail |
public SemanticZoomViewImpl()
public SemanticZoomViewImpl(double start, double end)
setDisplayRange(double, double)
public SemanticZoomViewImpl(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
public float getViewDisplayValue()
View
getViewDisplayValue
in interface View
edu.berkeley.guir.lib.satin.view.View
protected SemanticZoomViewImpl clone(SemanticZoomViewImpl v)
public String toString()
toString
in class ViewImpl
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |