|
Draw2d 3.9.0.201308190730 |
|||||||||
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.AbstractPointListShape
org.eclipse.draw2d.Polyline
org.eclipse.draw2d.PolylineDecoration
public class PolylineDecoration
A decorative Figure intended to be placed on a Polyline
. It has the
default shape of right-pointing triangle.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure |
---|
Figure.FigureIterator, Figure.IdentitySearch |
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure |
---|
IFigure.NoInsets |
Field Summary | |
---|---|
static PointList |
TRIANGLE_TIP
A triangle template |
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 | |
---|---|
PolylineDecoration()
Constructs a PolylineDecoration. |
Method Summary | |
---|---|
PointList |
getPoints()
Returns the points in this figure by reference. |
void |
setLocation(Point p)
Sets the location of this IFigure. |
void |
setReferencePoint(Point ref)
Sets the reference point used to determine the rotation angle. |
void |
setRotation(double angle)
Sets the angle by which rotation is to be done on the PolylineDecoration. |
void |
setScale(double x,
double y)
Sets the amount of scaling to be done along X and Y axes on the PolylineDecoration's template. |
void |
setTemplate(PointList pl)
Sets the PolylineDecoration's point template. |
Methods inherited from class org.eclipse.draw2d.Polyline |
---|
containsPoint, fillShape, getBounds, isOpaque, outlineShape, primTranslate, removeAllPoints, repaint, setLineWidth, setPoints, setTolerance, shapeContainsPoint |
Methods inherited from class org.eclipse.draw2d.AbstractPointListShape |
---|
addPoint, childrenContainsPoint, getEnd, getStart, insertPoint, removePoint, setEnd, setEndpoints, setPoint, setStart |
Methods inherited from class org.eclipse.draw2d.Shape |
---|
getAlpha, getAntialias, getLineAttributes, getLineCap, getLineDash, getLineDashOffset, getLineJoin, getLineMiterLimit, getLineStyle, getLineWidth, getLineWidthFloat, paintFigure, setAlpha, setAlpha, setAntialias, setAntialias, setFill, setFillXOR, setLineAttributes, setLineCap, setLineDash, setLineDashOffset, setLineJoin, setLineMiterLimit, setLineStyle, setLineWidthFloat, 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
Constructor Detail |
---|
public PolylineDecoration()
Method Detail |
---|
public PointList getPoints()
AbstractPointListShape
AbstractPointListShape.setPoints(PointList)
. Failure to do so will result in layout and
paint problems.
getPoints
in class AbstractPointListShape
AbstractPointListShape.getPoints()
public void setLocation(Point p)
IFigure
setLocation
in interface IFigure
setLocation
in interface RotatableDecoration
setLocation
in class Figure
p
- The new locationIFigure.setLocation(Point)
public void setTemplate(PointList pl)
pl
- the templatepublic void setScale(double x, double y)
x
- the x scaley
- the y scalepublic void setReferencePoint(Point ref)
RotatableDecoration
setReferencePoint
in interface RotatableDecoration
ref
- The reference pointRotatableDecoration.setReferencePoint(Point)
public void setRotation(double angle)
angle
- the angle of rotation
|
Draw2d 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |