|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 |
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 |
BOTTOM, CENTER, EAST, EAST_WEST, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, 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()
Causes this IFigure to layout itself, as well as its children. |
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 Shape
g
- the graphics objectShape.fillShape(Graphics)
protected void outlineShape(Graphics g)
Shape
outlineShape
in class Shape
g
- the graphics objectShape.outlineShape(Graphics)
public void primTranslate(int dx, int dy)
Figure
primTranslate
in class Figure
dx
- The amount to translate horizontallydy
- The amount to translate verticallyFigure.primTranslate(int, int)
public void setDirection(int value)
Orientable
PositionConstants
.
setDirection
in interface Orientable
value
- The directionOrientable.setDirection(int)
public void setOrientation(int value)
Orientable
Orientable.HORIZONTAL
or Orientable.VERTICAL
.
setOrientation
in interface Orientable
value
- The orientationOrientable.setOrientation(int)
public void validate()
IFigure
validate
in interface IFigure
validate
in class Figure
IFigure.validate()
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |