public abstract class CompoundShape extends SelectableShape
Modifier and Type | Field and Description |
---|---|
private java.awt.geom.GeneralPath |
path |
Constructor and Description |
---|
CompoundShape() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(java.awt.Shape s) |
boolean |
contains(java.awt.geom.Point2D aPoint)
Tests whether this item contains a given point.
|
void |
draw(java.awt.Graphics2D g2)
Draws this item.
|
void |
translate(int dx,
int dy)
Translates this item by a given amount.
|
drawSelection, isSelected, setSelected
private java.awt.geom.GeneralPath path
public CompoundShape()
protected void add(java.awt.Shape s)
public boolean contains(java.awt.geom.Point2D aPoint)
SceneShape
aPoint
- a pointpublic void translate(int dx, int dy)
SceneShape
dx
- the amount to translate in x-directiondy
- the amount to translate in y-directionpublic void draw(java.awt.Graphics2D g2)
SceneShape
g2
- the graphics context