|
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
A sample implementation of View, designed to be subclassed. Be sure to implement clone() correctly!
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 |
Field Summary | |
protected GraphicalObject |
gob
|
protected Polygon2D |
poly
|
Constructor Summary | |
ViewImpl()
|
Method Summary | |
abstract Object |
clone()
Deep clone. |
protected ViewImpl |
clone(ViewImpl v)
Make the passed view the same as us. |
GraphicalObject |
getAttachedGraphicalObject()
Get the GraphicalObject this View is attached to. |
Polygon2D |
getBoundingPoints2DRef()
Get the reference for the bounding points for this view. |
String |
getName()
Get the name of this View. |
boolean |
isVisible()
Check whether this view is visible or not. |
GraphicalObject |
setAttachedGraphicalObject(GraphicalObject newGob)
Used to set the GraphicalObject this View is attached to. |
void |
setBoundingPoints2DRef(Polygon2D p)
Set the reference for the bounding points for this view. |
String |
setName(String strName)
Set the name of this View. |
void |
setVisible(boolean flag)
Set whether this view is visible or not. |
String |
toString()
|
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 |
getViewDisplayValue, render |
Field Detail |
protected GraphicalObject gob
protected Polygon2D poly
Constructor Detail |
public ViewImpl()
Method Detail |
public void setBoundingPoints2DRef(Polygon2D p)
View
setBoundingPoints2DRef
in interface View
edu.berkeley.guir.lib.satin.view.View
p
- is the polygon bounds. Assumes the bounds are already in
local coordinates.public GraphicalObject setAttachedGraphicalObject(GraphicalObject newGob)
View
setAttachedGraphicalObject
in interface View
edu.berkeley.guir.lib.satin.view.View
gob
- is the GraphicalObject this View is attached to.public String setName(String strName)
View
setName
in interface View
edu.berkeley.guir.lib.satin.view.View
strName
- is the name of this View.public void setVisible(boolean flag)
View
setVisible
in interface View
public Polygon2D getBoundingPoints2DRef()
View
getBoundingPoints2DRef
in interface View
edu.berkeley.guir.lib.satin.view.View
public GraphicalObject getAttachedGraphicalObject()
View
getAttachedGraphicalObject
in interface View
edu.berkeley.guir.lib.satin.view.View
public String getName()
View
getName
in interface View
edu.berkeley.guir.lib.satin.view.View
public boolean isVisible()
View
View.setVisible(boolean)
)
and if the view display value is greater than 0.isVisible
in interface View
edu.berkeley.guir.lib.satin.view.View
public String toString()
toString
in class Object
public abstract Object clone()
clone
in interface View
clone
in class Object
protected ViewImpl clone(ViewImpl v)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |