All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.figures.RectangleFigure
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.figures.AttributeFigure
|
+----CH.ifa.draw.figures.RectangleFigure
- public class RectangleFigure
- extends AttributeFigure
A rectangle figure.
-
RectangleFigure()
-
-
RectangleFigure(Point, Point)
-
-
basicDisplayBox(Point, Point)
- Sets the display box of a figure.
-
basicMoveBy(int, int)
- Moves the figure.
-
displayBox()
- Gets the display box of a figure.
-
drawBackground(Graphics)
- Draws the background of the figure.
-
drawFrame(Graphics)
- Draws the frame of the figure.
-
handles()
- Returns the handles of a Figure that can be used
to manipulate some of its attributes.
-
read(StorableInput)
- Reads the Figure from a StorableInput.
-
write(StorableOutput)
- Stores the Figure to a StorableOutput.
RectangleFigure
public RectangleFigure()
RectangleFigure
public RectangleFigure(Point origin,
Point corner)
basicDisplayBox
public void basicDisplayBox(Point origin,
Point corner)
- Sets the display box of a figure.
- Overrides:
- basicDisplayBox in class AbstractFigure
handles
public Vector handles()
- Returns the handles of a Figure that can be used
to manipulate some of its attributes.
- Overrides:
- handles in class AbstractFigure
displayBox
public Rectangle displayBox()
- Gets the display box of a figure.
- Overrides:
- displayBox in class AbstractFigure
basicMoveBy
protected void basicMoveBy(int x,
int y)
- Moves the figure.
- Overrides:
- basicMoveBy in class AbstractFigure
drawBackground
public void drawBackground(Graphics g)
- Draws the background of the figure.
- Overrides:
- drawBackground in class AttributeFigure
drawFrame
public void drawFrame(Graphics g)
- Draws the frame of the figure.
- Overrides:
- drawFrame in class AttributeFigure
write
public void write(StorableOutput dw)
- Stores the Figure to a StorableOutput.
- Overrides:
- write in class AttributeFigure
read
public void read(StorableInput dr) throws IOException
- Reads the Figure from a StorableInput.
- Overrides:
- read in class AttributeFigure
All Packages Class Hierarchy This Package Previous Next Index