|
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.objects.ViewHandler
Handles the view portions of GraphicalObjects.
Everything in here is in local coordinates. That is, (0,0) is defined to be the top-left corner of the GraphicalObject, without any transforms applied anywhere.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Oct 06 1998, 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 |
| Constructor Summary | |
ViewHandler(GraphicalObjectImpl gob)
Set the GraphicalObject that this view is attached to. |
|
ViewHandler(ViewHandler viewHandler)
Copy constructor. |
|
| Method Summary | |
AffineTransform |
applyNormalizingTransform(AffineTransform newTx)
Apply a new transform to the normalizing transform, the one that specifies how to normalize the coordinates to (0,0). |
void |
clearNormalizingTransform()
Set the normalizing transform to the identity if it is not already. |
Object |
clone()
|
AffineTransform |
getNormalizingTransform()
Get the transform that would normalize this view to (0,0). |
Style |
getStyle()
|
Style |
getStyleRef()
|
View |
getView()
|
Polygon2D |
getViewBoundingPoints2D()
Get the view bounding points. |
Polygon2D |
getViewBoundingPoints2DRef()
Get a reference to the view bounding points. |
boolean |
hasClosedBoundingPoints()
Check whether the view has closed bounding points or not. |
boolean |
isNormalized()
See if the view's bounding points are already normalized or not. |
boolean |
isVisible()
|
void |
normalizeBoundingPoints()
Normalize the view's bounding points, such that its top-left bounds are at (0,0), keeping the transform correct. |
void |
render(SatinGraphics g)
|
GraphicalObject |
setAttachedGraphicalObject(GraphicalObjectImpl gob)
Set the GraphicalObject this ViewHandler is attached to. |
boolean |
setHasClosedBoundingPoints(boolean flag)
Set whether the view has closed bounding points or not. |
AffineTransform |
setNormalizingTransform(AffineTransform newTx)
Set the transform that would normalize this view to (0,0). |
Style |
setStyle(Style newStyle)
|
void |
setView(View v)
|
void |
setViewBoundingPoints2D(Polygon2D newPoly)
Set the shape of the view (local coordinates). |
void |
setViewBoundingPoints2D(Shape s)
Set the shape of this view (local coordinates). |
void |
setViewBoundingPoints2DRef(Polygon2D newPoly)
Set a reference to the shape of the view (local coordinates). |
void |
setVisible(boolean flag)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ViewHandler(GraphicalObjectImpl gob)
public ViewHandler(ViewHandler viewHandler)
viewHandler - is the ViewHandler to copy.| Method Detail |
public GraphicalObject setAttachedGraphicalObject(GraphicalObjectImpl gob)
public void setView(View v)
public View getView()
public void setVisible(boolean flag)
public boolean isVisible()
public Style setStyle(Style newStyle)
public Style getStyle()
public Style getStyleRef()
public boolean isNormalized()
public void normalizeBoundingPoints()
public AffineTransform getNormalizingTransform()
public AffineTransform applyNormalizingTransform(AffineTransform newTx)
public AffineTransform setNormalizingTransform(AffineTransform newTx)
public void clearNormalizingTransform()
public void setViewBoundingPoints2D(Shape s)
s - is the shape to set to.public void setViewBoundingPoints2D(Polygon2D newPoly)
newPoly - will be copied.public void setViewBoundingPoints2DRef(Polygon2D newPoly)
newPoly - is the polygon to set the reference to.public Polygon2D getViewBoundingPoints2D()
public Polygon2D getViewBoundingPoints2DRef()
public boolean setHasClosedBoundingPoints(boolean flag)
public boolean hasClosedBoundingPoints()
public void render(SatinGraphics g)
public String toString()
toString in class Objectpublic Object clone()
clone in class Object
|
Copyright Information | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||