All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.contrib.DiamondFigure
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.figures.AttributeFigure
|
+----CH.ifa.draw.figures.RectangleFigure
|
+----CH.ifa.draw.contrib.DiamondFigure
- public class DiamondFigure
- extends RectangleFigure
A diamond with vertices at the midpoints of its enclosing rectangle
-
DiamondFigure()
-
-
DiamondFigure(Point, Point)
-
-
connectionInsets()
- Returns the connection inset.
-
containsPoint(int, int)
- Checks if a point is inside the figure.
-
draw(Graphics)
- Draws the figure in the given graphics.
-
polygon()
- Return the polygon describing the diamond
DiamondFigure
public DiamondFigure()
DiamondFigure
public DiamondFigure(Point origin,
Point corner)
polygon
protected Polygon polygon()
- Return the polygon describing the diamond
draw
public void draw(Graphics g)
- Draws the figure in the given graphics.
- Overrides:
- draw in class AttributeFigure
connectionInsets
public Insets connectionInsets()
- Returns the connection inset.
- Overrides:
- connectionInsets in class AbstractFigure
containsPoint
public boolean containsPoint(int x,
int y)
- Checks if a point is inside the figure.
- Overrides:
- containsPoint in class AbstractFigure
All Packages Class Hierarchy This Package Previous Next Index