|
||||||||||
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
de.cau.cs.kieler.synccharts.custom.OpenRectangleFigure
public class OpenRectangleFigure
A rectangle figure that can be configured to draw only specific outline sides, e.g. omit drawing one or multiple lines.
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 |
---|
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 | |
---|---|
OpenRectangleFigure()
|
Method Summary | |
---|---|
protected void |
fillShape(Graphics graphics)
|
protected Rectangle |
getPreBounds()
Returns the preBounds. |
protected Rectangle |
getPreParentBounds()
Returns the preParentBounds. |
protected boolean |
isEast()
Returns the east. |
protected boolean |
isNorth()
Returns the north. |
protected boolean |
isSouth()
Returns the south. |
protected boolean |
isWest()
Returns the west. |
protected void |
outlineShape(Graphics graphics)
Draws the outline of the shape, i.e. |
void |
realRepaint()
Really repaint the Figure, i.e. |
void |
setDrawSides(boolean thenorth,
boolean theeast,
boolean thesouth,
boolean thewest)
Set which sides of the rectangle shall be drawn. |
protected void |
setEast(boolean theeast)
Sets the east. |
protected void |
setNorth(boolean thenorth)
Sets the north. |
protected void |
setPreBounds(Rectangle thepreBounds)
Sets the preBounds. |
protected void |
setPreParentBounds(Rectangle thepreParentBounds)
Sets the preParentBounds. |
protected void |
setSouth(boolean thesouth)
Sets the south. |
protected void |
setWest(boolean thewest)
Sets the west. |
boolean |
shouldRepaint()
Test whether the realRepaint should be called or not. |
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, setLineWidth, setLineWidthFloat, setOutline, setOutlineXOR, setXOR |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenRectangleFigure()
Method Detail |
---|
public void setDrawSides(boolean thenorth, boolean theeast, boolean thesouth, boolean thewest)
thenorth
- north sidetheeast
- east sidethesouth
- south sidethewest
- west sideprotected void fillShape(Graphics graphics)
fillShape
in class Shape
public void realRepaint()
public boolean shouldRepaint()
protected void outlineShape(Graphics graphics)
outlineShape
in class Shape
graphics
- the graphics objectprotected void setNorth(boolean thenorth)
thenorth
- the north to setprotected boolean isNorth()
protected void setSouth(boolean thesouth)
thesouth
- the south to setprotected boolean isSouth()
protected void setWest(boolean thewest)
thewest
- the west to setprotected boolean isWest()
protected void setEast(boolean theeast)
theeast
- the east to setprotected boolean isEast()
protected void setPreBounds(Rectangle thepreBounds)
thepreBounds
- the preBounds to setprotected Rectangle getPreBounds()
protected void setPreParentBounds(Rectangle thepreParentBounds)
thepreParentBounds
- the preParentBounds to setprotected Rectangle getPreParentBounds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |