public class RectangleElt extends Element
anchorSize, EmptyRectangle| Constructor and Description |
|---|
RectangleElt(java.awt.Rectangle rect) |
| Modifier and Type | Method and Description |
|---|---|
RectangleElt |
clone()
Covariant overriding of
Element.clone() method to return RectangleElt element. |
boolean |
contains(java.awt.Point p)
Does this element contain the given point.
|
void |
drawElement(java.awt.Graphics g)
Draw self into the given graphics context.
|
accept, draw, getAnchors, getBoundingBox, getParent, getStyle, hasParent, isSelected, outermostGroup, removeParent, resetAnchors, setBoundingBox, setParent, setSelected, setStylepublic void drawElement(java.awt.Graphics g)
ElementdrawElement in class Elementg - Graphics object into which to drawpublic boolean contains(java.awt.Point p)
Elementpublic RectangleElt clone()
Element.clone() method to return RectangleElt element.
Modified in draw.5 to fix defect with styles