|
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()
GraphicalObjectThis 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 GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.enableDamage(),
GraphicalObject.hasDamageEnabled()public void enableDamage()
GraphicalObjectenableDamage in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.disableDamage(),
GraphicalObject.hasDamageEnabled()public boolean hasDamageEnabled()
GraphicalObjecthasDamageEnabled in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.disableDamage(),
GraphicalObject.enableDamage()public void damage(int sync)
GraphicalObjectWatchable.hasNotifyEnabled(), mark this
GraphicalObject as damaged and repaint.damage in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectsync - is either SatinConstants.DAMAGE_NOW or
SatinConstants.DAMAGE_LATERSatinConstants.DAMAGE_NOW,
SatinConstants.DAMAGE_LATER
public void damage(int sync,
GraphicalObject gob)
GraphicalObjectWatchable.hasNotifyEnabled(), mark the specified
GraphicalObject as damaged and repaint.damage in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectsync - is either SatinConstants.DAMAGE_NOW or
SatinConstants.DAMAGE_LATERgob - is the GraphicalObject to repaint.SatinConstants.DAMAGE_NOW,
SatinConstants.DAMAGE_LATER
public void damage(int sync,
Rectangle2D rect)
GraphicalObjectWatchable.hasNotifyEnabled(), mark the specified
region as damaged and repaint.damage in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectsync - is either SatinConstants.DAMAGE_NOW or
SatinConstants.DAMAGE_LATERrect - is the rectangle to damage (absolute coordinates).SatinConstants.DAMAGE_NOW,
SatinConstants.DAMAGE_LATER
public void damage(int sync,
Rectangle2D oldRect,
Rectangle2D newRect)
GraphicalObjectWatchable.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 GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectsync - is either SatinConstants.DAMAGE_NOW or
SatinConstants.DAMAGE_LATERoldRect - 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)
WatcheronNotify in class GraphicalObjectGroupImpledu.berkeley.guir.lib.satin.watch.Watcherw - 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)
GraphicalObjectGroupImplonUpdate in class GraphicalObjectGroupImpledu.berkeley.guir.lib.satin.watch.Watcherw - 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)
GraphicalObjectGroupImplonUpdate in class GraphicalObjectGroupImpledu.berkeley.guir.lib.satin.watch.Watcherw - 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)
WatcheronDelete in class GraphicalObjectGroupImpledu.berkeley.guir.lib.satin.watch.Watcherw - is the Watchable object to be deleted.Watchable.notifyWatchersDelete()public void preProcessNewStroke(NewStrokeEvent evt)
preProcessNewStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superPreProcessNewStroke(NewStrokeEvent evt)
public void redispatchNewStroke(NewStrokeEvent evt)
redispatchNewStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superRedispatchNewStroke(NewStrokeEvent evt)
public void postProcessNewStroke(NewStrokeEvent evt)
postProcessNewStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superPostProcessNewStroke(NewStrokeEvent evt)
public void handleNewStroke(NewStrokeEvent evt)
StrokeListenerSatinEvent.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 GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superHandleNewStroke(NewStrokeEvent evt)
public void preProcessUpdateStroke(UpdateStrokeEvent evt)
preProcessUpdateStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superPreProcessUpdateStroke(UpdateStrokeEvent evt)
public void redispatchUpdateStroke(UpdateStrokeEvent evt)
redispatchUpdateStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superRedispatchUpdateStroke(UpdateStrokeEvent evt)
public void postProcessUpdateStroke(UpdateStrokeEvent evt)
postProcessUpdateStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superPostProcessUpdateStroke(UpdateStrokeEvent evt)
public void handleUpdateStroke(UpdateStrokeEvent evt)
handleUpdateStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superHandleUpdateStroke(UpdateStrokeEvent evt)
public void preProcessSingleStroke(SingleStrokeEvent evt)
preProcessSingleStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superPreProcessSingleStroke(SingleStrokeEvent evt)
public void redispatchSingleStroke(SingleStrokeEvent evt)
redispatchSingleStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superRedispatchSingleStroke(SingleStrokeEvent evt)
public void postProcessSingleStroke(SingleStrokeEvent evt)
postProcessSingleStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superPostProcessSingleStroke(SingleStrokeEvent evt)
public void handleSingleStroke(SingleStrokeEvent evt)
handleSingleStroke in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectGraphicalObject.onNewStroke(NewStrokeEvent)public void superHandleSingleStroke(SingleStrokeEvent evt)
public Sheet getSheet()
GraphicalObjectgetSheet in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObject
public void setBoundingPoints2D(int cdsys,
Shape s)
GraphicalObjectNotifies Watchers of an update when called.
setBoundingPoints2D in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - is the coordinate system to use.s - is the shape that describes our bounds.GraphicalObject.getView(),
SatinConstants.COORD_LOCAL,
SatinConstants.COORD_REL,
SatinConstants.COORD_ABSpublic Rectangle2D getCollectionBounds2D(int cdsys)
GraphicalObjectCollectiongetCollectionBounds2D in class GraphicalObjectGroupImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectCollectioncdsys - is the coordinate system to use.
public Rectangle2D getCollectionBounds2D(int cdsys,
Rectangle2D rect)
GraphicalObjectCollectiongetCollectionBounds2D in class GraphicalObjectGroupImplprotected void updateBoundingPoints()
GraphicalObjectImplupdateBoundingPoints in class GraphicalObjectImplpublic Polygon2D getBoundingPoints2D(int cdsys)
getBoundingPoints2D in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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 GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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_ABSpublic Rectangle2D getBounds2D(int cdsys)
getBounds2D in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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)
GraphicalObjectgetBounds2D in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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_ABSpublic boolean shapeContains(GraphicalObject gob)
GraphicalObject
Don't confuse this method with
GraphicalObjectCollection.contains(GraphicalObject).
shapeContains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectgob - 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)
GraphicalObjectshapeContains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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)
GraphicalObjectshapeContains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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)
GraphicalObjectshapeContains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - is the coordinate system of the point.s - is the shape to check.SatinConstants.COORD_LOCAL,
SatinConstants.COORD_REL,
SatinConstants.COORD_ABSpublic boolean shapeIntersects(GraphicalObject gob)
GraphicalObjectshapeIntersects in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectgob - 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)
GraphicalObjectshapeIntersects in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectcdsys - 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 GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplx - 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)
GraphicalObjectImplIn most cases should not override this method.
contains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplx - 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)
GraphicalObjectImplIn most cases should not override this method.
contains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplp - 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)
GraphicalObjectImplIn most cases should not override this method.
contains in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplr - is the rectangle to check (in this GraphicalObject's
coordinate space, ie relative).for overriding.public Rectangle2D getBounds2D()
GraphicalObjectImplgetBounds2D in class GraphicalObjectImplpublic PathIterator getPathIterator(AffineTransform at)
GraphicalObjectImplIn most cases should not override this method.
getPathIterator in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplfor overriding.
public PathIterator getPathIterator(AffineTransform at,
double flatness)
getPathIterator in class GraphicalObjectImpl
public boolean intersects(double x,
double y,
double w,
double h)
GraphicalObjectImplIn most cases should not override this method.
intersects in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplfor overriding.,
for an example of converting coordinate
systems correctly.public boolean intersects(Rectangle2D r)
GraphicalObjectImplIn most cases should not override this method.
intersects in class GraphicalObjectImpledu.berkeley.guir.lib.satin.objects.GraphicalObjectImplfor overriding.
|
Copyright Information | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||