public abstract class AbstractPolygonPainter extends Object implements CustomShapeFigure.ShapePainter
Constructor and Description |
---|
AbstractPolygonPainter() |
Modifier and Type | Method and Description |
---|---|
void |
fillShape(org.eclipse.draw2d.Graphics graphics,
org.eclipse.draw2d.geometry.Rectangle bounds)
Fills the interior of the shape.
|
protected abstract int[] |
getPoints(org.eclipse.draw2d.geometry.Rectangle bounds,
int lineWidth)
Get the figure's outline points
|
void |
outlineShape(org.eclipse.draw2d.Graphics graphics,
org.eclipse.draw2d.geometry.Rectangle bounds)
Outlines the shape.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInsets
protected abstract int[] getPoints(org.eclipse.draw2d.geometry.Rectangle bounds, int lineWidth)
bounds
- the figure boundslineWidth
- the line width of the borderpublic void fillShape(org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Rectangle bounds)
CustomShapeFigure.ShapePainter
fillShape
in interface CustomShapeFigure.ShapePainter
graphics
- the graphics objectbounds
- the figure bounds, may not be modifiedpublic void outlineShape(org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Rectangle bounds)
CustomShapeFigure.ShapePainter
outlineShape
in interface CustomShapeFigure.ShapePainter
graphics
- the graphics objectbounds
- the figure bounds, may not be modifiedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a