Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.common.graph.figures
Class TransformationNodeShape

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.util.graph.shapes.AbstractPolygonPainter
      extended by eu.esdihumboldt.hale.ui.common.graph.figures.TransformationNodeShape
All Implemented Interfaces:
CustomShapeFigure.ShapePainter

public class TransformationNodeShape
extends AbstractPolygonPainter

Transformation node shape

Author:
Simon Templer

Constructor Summary
TransformationNodeShape(int extWidth, int style)
           
 
Method Summary
 org.eclipse.draw2d.geometry.Insets getInsets()
          Get the shape insets.
protected  int[] getPoints(org.eclipse.draw2d.geometry.Rectangle bounds, int lineWidth)
          Get the figure's outline points
 
Methods inherited from class eu.esdihumboldt.hale.ui.util.graph.shapes.AbstractPolygonPainter
fillShape, outlineShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationNodeShape

public TransformationNodeShape(int extWidth,
                               int style)
Parameters:
extWidth - the extension width
style - the shape style, i.e. where the extension is added, SWT.LEFT, SWT.RIGHT or SWT.NONE
Method Detail

getInsets

public org.eclipse.draw2d.geometry.Insets getInsets()
Description copied from interface: CustomShapeFigure.ShapePainter
Get the shape insets.

Returns:
the shape insets
See Also:
CustomShapeFigure.ShapePainter.getInsets()

getPoints

protected int[] getPoints(org.eclipse.draw2d.geometry.Rectangle bounds,
                          int lineWidth)
Description copied from class: AbstractPolygonPainter
Get the figure's outline points

Specified by:
getPoints in class AbstractPolygonPainter
Parameters:
bounds - the figure bounds
lineWidth - the line width of the border
Returns:
the figure's outline
See Also:
AbstractPolygonPainter.getPoints(Rectangle, int)

Humboldt Alignment Editor 2.5.0

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