|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.draw2d.Shape
org.eclipse.draw2d.Polyline
org.eclipse.draw2d.Polygon
org.eclipse.draw2d.PolygonDecoration
A rotatable, polygon shaped decoration most commonly used for decorating the ends of
polylines.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator, Figure.IdentitySearch |
| Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
| Field Summary | |
static PointList |
INVERTED_TRIANGLE_TIP
Template for a triangle that points to the left when the rotation angle is 0 |
static PointList |
TRIANGLE_TIP
Template for a triangle that points to the right when the rotation angle is 0 |
| Fields inherited from class org.eclipse.draw2d.Shape |
lineStyle, lineWidth |
| Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
| Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
| Constructor Summary | |
PolygonDecoration()
Constructs a PolygonDecoration. |
|
| Method Summary | |
Color |
getLocalBackgroundColor()
Returns the background Color of this Figure. |
PointList |
getPoints()
Returns the points in the PolygonDecoration as a PointList. |
void |
setLocation(Point p)
Sets the location of this PolygonDecoration. |
void |
setReferencePoint(Point ref)
Sets the rotation of this decoration so that the decoration points toward the given reference point. |
void |
setRotation(double angle)
Sets the angle by which rotation is to be done on the PolygonDecoration. |
void |
setScale(double x,
double y)
Sets the amount of scaling to be done along X and Y axes on the PolygonDecoration's template. |
void |
setTemplate(PointList pl)
Sets the PolygonDecorations point template to the passed PointList. |
| Methods inherited from class org.eclipse.draw2d.Polygon |
containsPoint, fillShape, outlineShape |
| Methods inherited from class org.eclipse.draw2d.Polyline |
addPoint, getBounds, getEnd, getStart, insertPoint, isOpaque, primTranslate, removeAllPoints, removePoint, setEnd, setEndpoints, setLineWidth, setPoint, setPoints, setStart, useLocalCoordinates |
| Methods inherited from class org.eclipse.draw2d.Shape |
getLineStyle, getLineWidth, paintFigure, setFill, setFillXOR, setLineStyle, setOutline, setOutlineXOR, setXOR |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final PointList TRIANGLE_TIP
public static final PointList INVERTED_TRIANGLE_TIP
| Constructor Detail |
public PolygonDecoration()
| Method Detail |
public Color getLocalBackgroundColor()
IFigure
getLocalBackgroundColor in interface IFiguregetLocalBackgroundColor in class FigureIFigure.getBackgroundColor()public PointList getPoints()
getPoints in class Polylinepublic void setLocation(Point p)
setLocation in interface RotatableDecorationsetLocation in class Figurep - the new locationIFigure.setLocation(Point)public void setTemplate(PointList pl)
pl - the PointList outline to use as the PolygonDecoration's region
public void setScale(double x,
double y)
x - X scalingy - Y scalingpublic void setReferencePoint(Point ref)
setReferencePoint in interface RotatableDecorationref - the reference pointpublic void setRotation(double angle)
angle - Angle of rotation
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||