|
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.GraphicalObjectImpl | +--edu.berkeley.guir.lib.satin.objects.GraphicalObjectGroupImpl | +--edu.berkeley.guir.lib.satin.Sheet.SheetGraphicalObjectGroup
This class handles the Graphical Objects in the sheet. This also handles the repainting.
The real reason this class is here is because I really need multiple inheritance, since Sheet is both a JComponent and a GraphicalObjectGroup. Since I don't want to rewrite a lot of the code already in GraphicalObjectGroupImpl, I just delegated a lot of its functions here.
Subclassing the GraphicalObjectGroupImpl as an inner class is actually a really clean solution, giving us the benefits of delegation and inheritance.
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 interface edu.berkeley.guir.lib.satin.objects.GraphicalObjectGroup |
DEFAULT_POS_POLICY, KEEP_ABS_POS, KEEP_REL_POS |
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject |
GESTUREINTRP_CLPROPERTY, INKINTRP_CLPROPERTY, STYLE_CLPROPERTY, VIEW_CLPROPERTY |
Constructor Summary | |
Sheet.SheetGraphicalObjectGroup()
|
Method Summary | |
boolean |
contains(double x,
double y)
See if this GraphicalObject contains the specified point. |
boolean |
contains(double x,
double y,
double w,
double h)
See if this GraphicalObject contains the specified rectangle. |
boolean |
contains(Point2D p)
See if this GraphicalObject contains the specified point. |
boolean |
contains(Rectangle2D r)
See if this GraphicalObject contains the specified rectangle. |
void |
damage(int sync)
If this GraphicalObject Sheet.hasNotifyEnabled() , mark this
GraphicalObject as damaged and repaint. |
void |
damage(int sync,
GraphicalObject gob)
If this GraphicalObject Sheet.hasNotifyEnabled() , mark the specified
GraphicalObject as damaged and repaint. |
void |
damage(int sync,
Rectangle2D rect)
If this GraphicalObject Sheet.hasNotifyEnabled() , mark the specified
region as damaged and repaint. |
void |
damage(int sync,
Rectangle2D oldRect,
Rectangle2D newRect)
If this GraphicalObject Sheet.hasNotifyEnabled() , mark the specified
regions as damaged and repaint. |
void |
disableDamage()
Turn off damage mechanism temporarily. |
void |
enableDamage()
Re-enable damage mechanism. |
Polygon2D |
getBoundingPoints2D(int cdsys)
Our bounds is always the size of the Sheet. |
Polygon2D |
getBoundingPoints2D(int cdsys,
AffineTransform tx,
Polygon2D poly)
Our bounds is always the size of the Sheet. |
Rectangle2D |
getBounds2D()
Get the relative bounds. |
Rectangle2D |
getBounds2D(int cdsys)
Our bounds is the coordinate system. |
Rectangle2D |
getBounds2D(int cdsys,
AffineTransform tx,
Rectangle2D rect)
Get the bounds of all of the visible views of this GraphicalObject. |
Rectangle2D |
getCollectionBounds2D(int cdsys)
Get the union of the bounds of the GraphicalObjects contained in this collection. |
Rectangle2D |
getCollectionBounds2D(int cdsys,
Rectangle2D rect)
Get the bounds, put them in the specified Rectangle. |
PathIterator |
getPathIterator(AffineTransform at)
Get the path iterator, relative coordinates. |
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
|
Sheet |
getSheet()
Get the sheet that this Graphical object is in. |
void |
handleNewStroke(NewStrokeEvent evt)
This callback is called when the stroke should be handled by this object. |
void |
handleSingleStroke(SingleStrokeEvent evt)
|
void |
handleUpdateStroke(UpdateStrokeEvent evt)
|
boolean |
hasDamageEnabled()
See if damage is enabled or not. |
boolean |
intersects(double x,
double y,
double w,
double h)
Check if the specified rectangle intersects this GraphicalObject (relative coordinates). |
boolean |
intersects(Rectangle2D r)
Check if the specified rectangle intersects this GraphicalObject (relative coordinates). |
void |
onDelete(Watchable w)
Callback method for notifications of deletions, that is this Graphical Object has been deleted and you should remove it. |
void |
onNotify(Watchable w,
Object arg)
Callback method for generic notifications. |
void |
onUpdate(Watchable w,
Object arg)
Recalculate the bounding points. |
void |
onUpdate(Watchable w,
String strProperty,
Object oldVal,
Object newVal)
Recalculate the bounding points. |
void |
postProcessNewStroke(NewStrokeEvent evt)
|
void |
postProcessSingleStroke(SingleStrokeEvent evt)
|
void |
postProcessUpdateStroke(UpdateStrokeEvent evt)
|
void |
preProcessNewStroke(NewStrokeEvent evt)
|
void |
preProcessSingleStroke(SingleStrokeEvent evt)
|
void |
preProcessUpdateStroke(UpdateStrokeEvent evt)
|
void |
redispatchNewStroke(NewStrokeEvent evt)
|
void |
redispatchSingleStroke(SingleStrokeEvent evt)
|
void |
redispatchUpdateStroke(UpdateStrokeEvent evt)
|
void |
setBoundingPoints2D(int cdsys,
Shape s)
Set the bounding points for our default view. |
boolean |
shapeContains(GraphicalObject gob)
See if the specified GraphicalObject fits entirely within our bounds. |
boolean |
shapeContains(int cdsys,
double x,
double y)
See if we contain the specified point. |
boolean |
shapeContains(int cdsys,
Point2D pt)
See if we contain the specified point. |
boolean |
shapeContains(int cdsys,
Shape s)
See if we contain the specified rectangle. |
boolean |
shapeIntersects(GraphicalObject gob)
See if the specified GraphicalObject intersects the this GraphicalObject. |
boolean |
shapeIntersects(int cdsys,
Shape s)
See if we intersect the specified shape. |
void |
superDelete(Watchable w)
This is here so that the Sheet can call the original version of this method. |
void |
superHandleNewStroke(NewStrokeEvent evt)
|
void |
superHandleSingleStroke(SingleStrokeEvent evt)
|
void |
superHandleUpdateStroke(UpdateStrokeEvent evt)
|
void |
superNotify(Watchable w,
Object arg)
This is here so that the Sheet can call the original version of this method. |
void |
superPostProcessNewStroke(NewStrokeEvent evt)
|
void |
superPostProcessSingleStroke(SingleStrokeEvent evt)
|
void |
superPostProcessUpdateStroke(UpdateStrokeEvent evt)
|
void |
superPreProcessNewStroke(NewStrokeEvent evt)
|
void |
superPreProcessSingleStroke(SingleStrokeEvent evt)
|
void |
superPreProcessUpdateStroke(UpdateStrokeEvent evt)
|
void |
superRedispatchNewStroke(NewStrokeEvent evt)
|
void |
superRedispatchSingleStroke(SingleStrokeEvent evt)
|
void |
superRedispatchUpdateStroke(UpdateStrokeEvent evt)
|
void |
superUpdate(Watchable w,
Object arg)
This is here so that the Sheet can call the original version of this method. |
void |
superUpdate(Watchable w,
String strProperty,
Object oldVal,
Object newVal)
This is here so that the Sheet can call the original version of this method. |
protected void |
updateBoundingPoints()
Update cached copies of our bounds. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.berkeley.guir.lib.satin.watch.Watchable |
addWatcher, clearWatchers, countWatchers, disableNotify, enableNotify, hasNotifyEnabled, notifyWatchers, notifyWatchers, notifyWatchersUpdate, notifyWatchersUpdate, removeWatcher |
Methods inherited from interface java.awt.Shape |
getBounds |
Constructor Detail |
public Sheet.SheetGraphicalObjectGroup()
Method Detail |
public void disableDamage()
GraphicalObject
This method is useful if you are doing multiple operations to the same GraphicalObject all at once, but don't want to damage the GraphicalObject until all the operations are done.
disableDamage
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.enableDamage()
,
GraphicalObject.hasDamageEnabled()
public void enableDamage()
GraphicalObject
enableDamage
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.disableDamage()
,
GraphicalObject.hasDamageEnabled()
public boolean hasDamageEnabled()
GraphicalObject
hasDamageEnabled
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.disableDamage()
,
GraphicalObject.enableDamage()
public void damage(int sync)
GraphicalObject
Watchable.hasNotifyEnabled()
, mark this
GraphicalObject as damaged and repaint.damage
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
sync
- is either SatinConstants.DAMAGE_NOW
or
SatinConstants.DAMAGE_LATER
SatinConstants.DAMAGE_NOW
,
SatinConstants.DAMAGE_LATER
public void damage(int sync, GraphicalObject gob)
GraphicalObject
Watchable.hasNotifyEnabled()
, mark the specified
GraphicalObject as damaged and repaint.damage
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
sync
- is either SatinConstants.DAMAGE_NOW
or
SatinConstants.DAMAGE_LATER
gob
- is the GraphicalObject to repaint.SatinConstants.DAMAGE_NOW
,
SatinConstants.DAMAGE_LATER
public void damage(int sync, Rectangle2D rect)
GraphicalObject
Watchable.hasNotifyEnabled()
, mark the specified
region as damaged and repaint.damage
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
sync
- is either SatinConstants.DAMAGE_NOW
or
SatinConstants.DAMAGE_LATER
rect
- is the rectangle to damage (absolute coordinates).SatinConstants.DAMAGE_NOW
,
SatinConstants.DAMAGE_LATER
public void damage(int sync, Rectangle2D oldRect, Rectangle2D newRect)
GraphicalObject
Watchable.hasNotifyEnabled()
, mark the specified
regions as damaged and repaint. This method is typically used when
transforms are applied, when the GraphicalObject was in one place
and is now in another.damage
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
sync
- is either SatinConstants.DAMAGE_NOW
or
SatinConstants.DAMAGE_LATER
oldRect
- is the rectangle to damage (absolute coordinates).newRect
- is the rectangle to damage (absolute coordinates).SatinConstants.DAMAGE_NOW
,
SatinConstants.DAMAGE_LATER
public void superNotify(Watchable w, Object arg)
public void superUpdate(Watchable w, Object arg)
public void superUpdate(Watchable w, String strProperty, Object oldVal, Object newVal)
public void superDelete(Watchable w)
public void onNotify(Watchable w, Object arg)
Watcher
onNotify
in class GraphicalObjectGroupImpl
edu.berkeley.guir.lib.satin.watch.Watcher
w
- is the Watchable object notifying you.arg
- is some agreed upon argument.Watchable.notifyWatchers()
,
Watchable.notifyWatchers(java.lang.Object)
public void onUpdate(Watchable w, Object arg)
GraphicalObjectGroupImpl
onUpdate
in class GraphicalObjectGroupImpl
edu.berkeley.guir.lib.satin.watch.Watcher
w
- is the Watchable object that has been updated.arg
- is some agreed upon argument.Watchable.notifyWatchersUpdate(Object)
public void onUpdate(Watchable w, String strProperty, Object oldVal, Object newVal)
GraphicalObjectGroupImpl
onUpdate
in class GraphicalObjectGroupImpl
edu.berkeley.guir.lib.satin.watch.Watcher
w
- is the Watchable object that has been updated.strProperty
- is the name of the property to update.oldVal
- is the old value of the property. This should usually
be a clone of the old value, so that modifying this
value should have no effect. Whether this is a copy or
a reference should be defined in the SatinConstants
file.newVal
- is the new value of the property. This should usually
be a clone of the old value, so that modifying this
value should have no effect. However, don't clone
if it is prohibitively expensive to do so. Whether
this is a copy or a reference should be defined in the
SatinConstants file.SatinConstants
,
Watchable.notifyWatchersUpdate(String, Object, Object)
public void onDelete(Watchable w)
Watcher
onDelete
in class GraphicalObjectGroupImpl
edu.berkeley.guir.lib.satin.watch.Watcher
w
- is the Watchable object to be deleted.Watchable.notifyWatchersDelete()
public void preProcessNewStroke(NewStrokeEvent evt)
preProcessNewStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superPreProcessNewStroke(NewStrokeEvent evt)
public void redispatchNewStroke(NewStrokeEvent evt)
redispatchNewStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superRedispatchNewStroke(NewStrokeEvent evt)
public void postProcessNewStroke(NewStrokeEvent evt)
postProcessNewStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superPostProcessNewStroke(NewStrokeEvent evt)
public void handleNewStroke(NewStrokeEvent evt)
StrokeListener
SatinEvent.setConsumed()
with true to signify that it is
consumed and no one else should handle it. Furthermore, if you don't
want the stroke to be rendered, then call
SatinEvent.setShouldRender(boolean)
with false. By default, the
stroke will be rendered.handleNewStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superHandleNewStroke(NewStrokeEvent evt)
public void preProcessUpdateStroke(UpdateStrokeEvent evt)
preProcessUpdateStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superPreProcessUpdateStroke(UpdateStrokeEvent evt)
public void redispatchUpdateStroke(UpdateStrokeEvent evt)
redispatchUpdateStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superRedispatchUpdateStroke(UpdateStrokeEvent evt)
public void postProcessUpdateStroke(UpdateStrokeEvent evt)
postProcessUpdateStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superPostProcessUpdateStroke(UpdateStrokeEvent evt)
public void handleUpdateStroke(UpdateStrokeEvent evt)
handleUpdateStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superHandleUpdateStroke(UpdateStrokeEvent evt)
public void preProcessSingleStroke(SingleStrokeEvent evt)
preProcessSingleStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superPreProcessSingleStroke(SingleStrokeEvent evt)
public void redispatchSingleStroke(SingleStrokeEvent evt)
redispatchSingleStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superRedispatchSingleStroke(SingleStrokeEvent evt)
public void postProcessSingleStroke(SingleStrokeEvent evt)
postProcessSingleStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superPostProcessSingleStroke(SingleStrokeEvent evt)
public void handleSingleStroke(SingleStrokeEvent evt)
handleSingleStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void superHandleSingleStroke(SingleStrokeEvent evt)
public Sheet getSheet()
GraphicalObject
getSheet
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
public void setBoundingPoints2D(int cdsys, Shape s)
GraphicalObject
Notifies Watchers of an update when called.
setBoundingPoints2D
in class GraphicalObjectImpl
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 Rectangle2D getCollectionBounds2D(int cdsys)
GraphicalObjectCollection
getCollectionBounds2D
in class GraphicalObjectGroupImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectCollection
cdsys
- is the coordinate system to use.public Rectangle2D getCollectionBounds2D(int cdsys, Rectangle2D rect)
GraphicalObjectCollection
getCollectionBounds2D
in class GraphicalObjectGroupImpl
protected void updateBoundingPoints()
GraphicalObjectImpl
updateBoundingPoints
in class GraphicalObjectImpl
public Polygon2D getBoundingPoints2D(int cdsys)
getBoundingPoints2D
in class GraphicalObjectImpl
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 GraphicalObjectImpl
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 Rectangle2D getBounds2D(int cdsys)
getBounds2D
in class GraphicalObjectImpl
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)
GraphicalObject
getBounds2D
in class GraphicalObjectImpl
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 boolean shapeContains(GraphicalObject gob)
GraphicalObject
Don't confuse this method with
GraphicalObjectCollection.contains(GraphicalObject)
.
shapeContains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
gob
- is the GraphicalObject to check. It doesn't matter what
coordinate space gob is in, it will be moved to the correct
space.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public boolean shapeContains(int cdsys, Point2D pt)
GraphicalObject
shapeContains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system of the point.pt
- is the point.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public boolean shapeContains(int cdsys, double x, double y)
GraphicalObject
shapeContains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system of the point.x
- is the x-coordinate.y
- is the y-coordinate.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public boolean shapeContains(int cdsys, Shape s)
GraphicalObject
shapeContains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system of the point.s
- is the shape to check.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public boolean shapeIntersects(GraphicalObject gob)
GraphicalObject
shapeIntersects
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
gob
- is checked to see if it intersects this GraphicalObject.
It doesn't matter what coordinate space gob is in, it will be
moved to the correct space.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public boolean shapeIntersects(int cdsys, Shape s)
GraphicalObject
shapeIntersects
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
cdsys
- is the coordinate system of the point.s
- is the shape to check.SatinConstants.COORD_LOCAL
,
SatinConstants.COORD_REL
,
SatinConstants.COORD_ABS
public boolean contains(double x, double y)
GraphicalObjectImpl
Use GraphicalObjectLib.toLocalCoordinates(GraphicalObject,
Point2D, GraphicalObject)
or
GraphicalObjectLib.toLocalCoordinates(GraphicalObject, Point2D,
GraphicalObject, Point2D)
to convert the point. Since you want the
coordinates in relative coordinates (ie our parent's coordinates),
you would do something like:
dst.contains(
GraphicalObjectLib.toLocalCoordinates(src, pt, dst.getParentGroup())
);
In most cases should not override this method.
contains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
x
- is the x-coordinate of the point (relative coords).y
- is the y-coordinate of the point (relative coords).for overriding.
public boolean contains(double x, double y, double w, double h)
GraphicalObjectImpl
In most cases should not override this method.
contains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
x
- is the top-left of the rectangle (in this GraphicalObject's
coordinate space, ie relative).y
- is the top-left of the rectangle (in this GraphicalObject's
coordinate space, ie relative).w
- is the width of the rectangle.h
- is the height of the rectangle.for overriding.
,
for an example of converting coordinate
systems correctly.
public boolean contains(Point2D p)
GraphicalObjectImpl
In most cases should not override this method.
contains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
p
- is the point to check (in this GraphicalObject's
coordinate space, ie relative).for overriding.
,
for an example of converting coordinate
systems correctly.
public boolean contains(Rectangle2D r)
GraphicalObjectImpl
In most cases should not override this method.
contains
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
r
- is the rectangle to check (in this GraphicalObject's
coordinate space, ie relative).for overriding.
public Rectangle2D getBounds2D()
GraphicalObjectImpl
getBounds2D
in class GraphicalObjectImpl
public PathIterator getPathIterator(AffineTransform at)
GraphicalObjectImpl
In most cases should not override this method.
getPathIterator
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
for overriding.
public PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator
in class GraphicalObjectImpl
public boolean intersects(double x, double y, double w, double h)
GraphicalObjectImpl
In most cases should not override this method.
intersects
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
for overriding.
,
for an example of converting coordinate
systems correctly.
public boolean intersects(Rectangle2D r)
GraphicalObjectImpl
In most cases should not override this method.
intersects
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
for overriding.
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |