eu.esdihumboldt.hale.ui.util.graph.shapes
Class AbstractPolygonPainter
java.lang.Object
eu.esdihumboldt.hale.ui.util.graph.shapes.AbstractPolygonPainter
- All Implemented Interfaces:
- CustomShapeFigure.ShapePainter
- Direct Known Subclasses:
- FingerPost, StretchedHexagon, TransformationNodeShape
public abstract class AbstractPolygonPainter
- extends Object
- implements CustomShapeFigure.ShapePainter
Abstract polygon shape painter.
- Author:
- Simon Templer
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPolygonPainter
public AbstractPolygonPainter()
getPoints
protected abstract int[] getPoints(org.eclipse.draw2d.geometry.Rectangle bounds,
int lineWidth)
- Get the figure's outline points
- Parameters:
bounds
- the figure boundslineWidth
- the line width of the border
- Returns:
- the figure's outline
fillShape
public void fillShape(org.eclipse.draw2d.Graphics graphics,
org.eclipse.draw2d.geometry.Rectangle bounds)
- Description copied from interface:
CustomShapeFigure.ShapePainter
- Fills the interior of the shape.
- Specified by:
fillShape
in interface CustomShapeFigure.ShapePainter
- Parameters:
graphics
- the graphics objectbounds
- the figure bounds, may not be modified
outlineShape
public void outlineShape(org.eclipse.draw2d.Graphics graphics,
org.eclipse.draw2d.geometry.Rectangle bounds)
- Description copied from interface:
CustomShapeFigure.ShapePainter
- Outlines the shape.
- Specified by:
outlineShape
in interface CustomShapeFigure.ShapePainter
- Parameters:
graphics
- the graphics objectbounds
- the figure bounds, may not be modified
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d