eu.esdihumboldt.hale.ui.util.graph.shapes
Class FingerPost
java.lang.Object
eu.esdihumboldt.hale.ui.util.graph.shapes.AbstractPolygonPainter
eu.esdihumboldt.hale.ui.util.graph.shapes.FingerPost
- All Implemented Interfaces:
- CustomShapeFigure.ShapePainter
public class FingerPost
- extends AbstractPolygonPainter
A fingerpost shape painter.
- Author:
- Simon Templer
Constructor Summary |
FingerPost(int tipSize,
int style)
Create a fingerpost shape painter. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FingerPost
public FingerPost(int tipSize,
int style)
- Create a fingerpost shape painter.
- Parameters:
tipSize
- the finger tip sizestyle
- the shape style, either pointing SWT.LEFT
or
SWT.RIGHT
getInsets
public org.eclipse.draw2d.geometry.Insets getInsets()
- Description copied from interface:
CustomShapeFigure.ShapePainter
- Get the shape insets.
- Returns:
- the shape insets
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 boundslineWidth
- the line width of the border
- Returns:
- the figure's outline
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d