|
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.GraphicalObjectWrapper | +--edu.berkeley.guir.lib.satin.objects.StickyGraphicalObjectWrapper
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v2.1-1.0.0, Aug 24 2000, JH Created
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 | |
static Debug |
debug
|
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject |
GESTUREINTRP_CLPROPERTY, INKINTRP_CLPROPERTY, STYLE_CLPROPERTY, VIEW_CLPROPERTY |
Constructor Summary | |
StickyGraphicalObjectWrapper()
Create an empty proxy. |
|
StickyGraphicalObjectWrapper(GraphicalObject gob)
Create a proxy pointing to the specified Graphical Object. |
Method Summary | |
void |
applyTransform(AffineTransform newTx)
Apply an affine Transform to this Graphical Object. |
protected StickyGraphicalObjectWrapper |
clone(StickyGraphicalObjectWrapper c)
Done on proxy, not on proxied object. |
protected StickyGraphicalObjectWrapper |
deepClone(StickyGraphicalObjectWrapper c)
Done on proxy, not on proxied object. |
Polygon2D |
getBoundingPoints2D(int cdsys)
Get the sticky bounding points. |
Polygon2D |
getBoundingPoints2D(int cdsys,
AffineTransform tx,
Polygon2D poly)
Get the sticky bounding points. |
Rectangle2D |
getBounds2D(int cdsys)
Get the sticky bounds. |
Rectangle2D |
getBounds2D(int cdsys,
AffineTransform tx,
Rectangle2D rect)
Get the sticky bounds. |
float |
getHeight2D(int cdsys)
Get the sticky height. |
AffineTransform |
getInverseTransform(int cdsys)
Concatenates the sticky and the proxied transforms. |
AffineTransform |
getInverseTransform(int cdsys,
AffineTransform outTx)
Concatenates the sticky and the proxied transforms. |
Point2D |
getLocation2D(int cdsys)
Get the sticky location. |
Point2D |
getLocation2D(int cdsys,
AffineTransform tx,
Point2D pt)
Get the sticky location. |
protected abstract AffineTransform |
getStickyTransform(AffineTransform tx)
Get the transform that makes us sticky. |
AffineTransform |
getTransform(int cdsys)
Concatenates the sticky and the proxied transforms. |
AffineTransform |
getTransform(int cdsys,
AffineTransform outTx)
Concatenates the sticky and the proxied transforms. |
AffineTransform |
getTransformRef()
Does not return a reference, b/c it doesn't make sense in the sticky case. |
protected AffineTransform |
getUnstickyTransform(int cdsys,
AffineTransform tx)
Get the transform as if this object weren't around. |
float |
getWidth2D(int cdsys)
Get the sticky width. |
void |
moveBy(int cdsys,
double dx,
double dy)
Moves by the specified (x,y) offset in the sticky space. |
void |
moveBy(int cdsys,
Point2D pt)
Moves by the specified (x,y) offset in the sticky space. |
void |
moveTo(int cdsys,
double x,
double y)
Moves to the specified (x,y) location in the sticky space. |
void |
moveTo(int cdsys,
Point2D pt)
Moves to the specified (x,y) location in the sticky space. |
void |
render(SatinGraphics g)
Render the Graphical Object after applying the sticky transform, as determined by getStickyTransform. |
void |
setBoundingPoints2D(int cdsys,
Shape s)
Sets to the specified shape in the sticky space. |
void |
setTransform(AffineTransform newTx)
Set and apply a copy of the specified AffineTransform to this GraphicalObject. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Debug debug
Constructor Detail |
public StickyGraphicalObjectWrapper()
public StickyGraphicalObjectWrapper(GraphicalObject gob)
Method Detail |
public void applyTransform(AffineTransform newTx)
GraphicalObject
Notifies Watchers of an update when called.
applyTransform
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
newTx
- is a Transform to apply. No modifications are made to newTx.public void setTransform(AffineTransform newTx)
GraphicalObject
Notifies Watchers of an update when called.
setTransform
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
newTx
- is a Transform to apply. Removes the old one completely.
No modifications are made to newTx.public AffineTransform getTransformRef()
getTransformRef
in class GraphicalObjectWrapper
public AffineTransform getTransform(int cdsys)
getTransform
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public AffineTransform getTransform(int cdsys, AffineTransform outTx)
getTransform
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system.outTx
- is the storage space.outTx
.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public AffineTransform getInverseTransform(int cdsys)
getInverseTransform
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public AffineTransform getInverseTransform(int cdsys, AffineTransform outTx)
getInverseTransform
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.outTx
- is the output storage. Use null to create a new object.outTx
SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public Point2D getLocation2D(int cdsys)
getLocation2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.GraphicalObject.getLocation2D(int, AffineTransform, Point2D)
,
SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public Point2D getLocation2D(int cdsys, AffineTransform tx, Point2D pt)
getLocation2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.tx
- is the transform to apply after the location is
retrieved. Use null for none.pt
- is where to store the output. Use null to create a
new point. Use for optimization purposes.pt
.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public Rectangle2D getBounds2D(int cdsys)
getBounds2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.GraphicalObject.getBounds2D(int)
,
SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public Rectangle2D getBounds2D(int cdsys, AffineTransform tx, Rectangle2D rect)
getBounds2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.tx
- is the transform to apply after the location is
retrieved. Use null for none.rect
- is the Rectangle to put the results in. Use null to create
a new Rectangle. Use for optimization purposes.rect
.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public Polygon2D getBoundingPoints2D(int cdsys)
getBoundingPoints2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public Polygon2D getBoundingPoints2D(int cdsys, AffineTransform tx, Polygon2D poly)
getBoundingPoints2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.tx
- is the transform to apply after the location is
retrieved. Use null for none.poly
- is the Polygon to put the results in. Use null to
create a new Polygon. Use for optimization purposes.poly
.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public float getWidth2D(int cdsys)
getWidth2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public float getHeight2D(int cdsys)
getHeight2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public void moveTo(int cdsys, double x, double y)
moveTo
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.x
- is the x-coordinate to move to.y
- is the y-coordinate to move to.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public void moveTo(int cdsys, Point2D pt)
moveTo
in class GraphicalObjectWrapper
public void moveBy(int cdsys, double dx, double dy)
moveBy
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.dx
- is the change in x-coordinate to move.dy
- is the change in y-coordinate to move.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public void moveBy(int cdsys, Point2D pt)
moveBy
in class GraphicalObjectWrapper
public void setBoundingPoints2D(int cdsys, Shape s)
setBoundingPoints2D
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system to use.s
- is the shape that describes our bounds.GraphicalObject.getView()
,
SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public void render(SatinGraphics g)
render
in class GraphicalObjectWrapper
edu.berkeley.guir.lib.satin.objects.GraphicalObject
g
- is the Graphics context to draw in.protected abstract AffineTransform getStickyTransform(AffineTransform tx)
tx
- is the storage space.protected AffineTransform getUnstickyTransform(int cdsys, AffineTransform tx)
protected StickyGraphicalObjectWrapper clone(StickyGraphicalObjectWrapper c)
protected StickyGraphicalObjectWrapper deepClone(StickyGraphicalObjectWrapper c)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |