public interface Figure extends VisibleComponent, UserObjectContainer
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Point2D p)
Test whether this figure contains the point given.
|
Rectangle2D |
getBounds()
Get the bounding box of this figure.
|
Interactor |
getInteractor()
Return the interactor of this figure.
|
CanvasLayer |
getLayer()
Get the most immediate layer containing this figure.
|
Point2D |
getOrigin()
Return the origin of the figure in the enclosing transform
context.
|
CanvasComponent |
getParent()
Return the parent of this figure.
|
Shape |
getShape()
Get the outline shape of this figure.
|
String |
getToolTipText()
Return the tooltip string for this figure, or null if the figure
does not have a tooltip.
|
boolean |
hit(Rectangle2D r)
Test if this figure is "hit" by the given rectangle.
|
boolean |
intersects(Rectangle2D r)
Test if this figure intersects the given rectangle.
|
void |
setInteractor(Interactor interactor)
Set the interactor of this figure.
|
void |
setParent(CanvasComponent fc)
Set the parent of this figure.
|
void |
setToolTipText(String s)
Set the tooltip string for this figure.
|
void |
transform(AffineTransform at)
Transform the figure with the supplied transform.
|
void |
translate(double x,
double y)
Move the figure the indicated distance.
|
isVisible, paint, paint, setVisible
getTransformContext, repaint, repaint
getUserObject, setUserObject
boolean contains(Point2D p)
Rectangle2D getBounds()
Interactor getInteractor()
CanvasLayer getLayer()
Point2D getOrigin()
CanvasComponent getParent()
getParent
in interface CanvasComponent
Shape getShape()
String getToolTipText()
boolean hit(Rectangle2D r)
(This method would be better named hits, but the name hit is consistent with java.awt.Graphics2D.)
boolean intersects(Rectangle2D r)
void setInteractor(Interactor interactor)
void setParent(CanvasComponent fc)
void setToolTipText(String s)
void transform(AffineTransform at)
void translate(double x, double y)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.