Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.graph.shapes
Class AbstractPolygonPainter

java.lang.Object
  extended by 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

Constructor Summary
AbstractPolygonPainter()
           
 
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
 
Methods inherited from interface eu.esdihumboldt.hale.ui.util.graph.CustomShapeFigure.ShapePainter
getInsets
 

Constructor Detail

AbstractPolygonPainter

public AbstractPolygonPainter()
Method Detail

getPoints

protected abstract int[] getPoints(org.eclipse.draw2d.geometry.Rectangle bounds,
                                   int lineWidth)
Get the figure's outline points

Parameters:
bounds - the figure bounds
lineWidth - 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 object
bounds - 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 object
bounds - the figure bounds, may not be modified

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d