|
Eclipse Draw2d 3.2 |
||||||||||
| 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.Triangle
A triangular graphical figure.
| 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 | |
protected int |
direction
The direction this triangle will face. |
protected int |
orientation
The orientation of this triangle. |
protected PointList |
triangle
The points of the triangle. |
| 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.Orientable |
HORIZONTAL, VERTICAL |
| Fields inherited from interface org.eclipse.draw2d.PositionConstants |
ALWAYS_LEFT, ALWAYS_RIGHT, BOTTOM, CENTER, EAST, EAST_WEST, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, NSEW, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, WEST |
| Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
| Constructor Summary | |
Triangle()
|
|
| Method Summary | |
protected void |
fillShape(Graphics g)
Fills the interior of the shape with the background color. |
protected void |
outlineShape(Graphics g)
Outlines this shape using the foreground color. |
void |
primTranslate(int dx,
int dy)
Translates this Figure's bounds, without firing a move. |
void |
setDirection(int value)
Sets the direction the orientable figure will face. |
void |
setOrientation(int value)
Sets the orientation. |
void |
validate()
Indicates that this figure should make itself valid. |
| Methods inherited from class org.eclipse.draw2d.Shape |
getLineStyle, getLineWidth, isOpaque, paintFigure, setFill, setFillXOR, setLineStyle, setLineWidth, setOutline, setOutlineXOR, setXOR |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int direction
PositionConstants.NORTH, PositionConstants.SOUTH,
PositionConstants.EAST and PositionConstants.WEST.
protected int orientation
Orientable.VERTICAL
and Orientable.HORIZONTAL.
protected PointList triangle
| Constructor Detail |
public Triangle()
| Method Detail |
protected void fillShape(Graphics g)
Shape
fillShape in class Shapeg - the graphics objectShape.fillShape(Graphics)protected void outlineShape(Graphics g)
Shape
outlineShape in class Shapeg - the graphics objectShape.outlineShape(Graphics)
public void primTranslate(int dx,
int dy)
Figure
primTranslate in class Figuredx - The amount to translate horizontallydy - The amount to translate verticallyFigure.primTranslate(int, int)public void setDirection(int value)
OrientablePositionConstants.
setDirection in interface Orientablevalue - The directionOrientable.setDirection(int)public void setOrientation(int value)
OrientableOrientable.HORIZONTAL or Orientable.VERTICAL.
setOrientation in interface Orientablevalue - The orientationOrientable.setOrientation(int)public void validate()
IFigure
validate in interface IFigurevalidate in class FigureIFigure.validate()
|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||