|
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)
ViewsetBoundingPoints2DRef in interface Viewedu.berkeley.guir.lib.satin.view.Viewp - is the polygon bounds. Assumes the bounds are already in
local coordinates.public GraphicalObject setAttachedGraphicalObject(GraphicalObject newGob)
ViewsetAttachedGraphicalObject in interface Viewedu.berkeley.guir.lib.satin.view.Viewgob - is the GraphicalObject this View is attached to.public String setName(String strName)
ViewsetName in interface Viewedu.berkeley.guir.lib.satin.view.ViewstrName - is the name of this View.public void setVisible(boolean flag)
ViewsetVisible in interface Viewpublic Polygon2D getBoundingPoints2DRef()
ViewgetBoundingPoints2DRef in interface Viewedu.berkeley.guir.lib.satin.view.Viewpublic GraphicalObject getAttachedGraphicalObject()
ViewgetAttachedGraphicalObject in interface Viewedu.berkeley.guir.lib.satin.view.Viewpublic String getName()
ViewgetName in interface Viewedu.berkeley.guir.lib.satin.view.Viewpublic boolean isVisible()
ViewView.setVisible(boolean))
and if the view display value is greater than 0.isVisible in interface Viewedu.berkeley.guir.lib.satin.view.Viewpublic String toString()
toString in class Objectpublic abstract Object clone()
clone in interface Viewclone in class Objectprotected ViewImpl clone(ViewImpl v)
|
Copyright Information | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||