|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure
org.eclipse.gmf.runtime.diagram.ui.figures.BorderedNodeFigure
Wrapper figure that contains the main figure and the border item figures. This is required to allow the main figure's layout manager to ignore the border items. The border item container applies a delegating layout manager to allow border item children to lay themselves out.
| 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 |
| Fields inherited from class org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure |
szAnchor |
| 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 | |
BorderedNodeFigure(IFigure mainFigure)
Creates a new BorderedNodeFigure figure. |
|
| Method Summary | |
boolean |
containsPoint(int x,
int y)
We need to override this for smooth painting of border items. |
void |
erase()
|
IFigure |
findFigureAt(int x,
int y,
TreeSearch search)
|
IFigure |
findMouseEventTargetAt(int x,
int y)
|
IFigure |
getBorderItemContainer()
Gets the border item container figure to which border item figures can be added with a IBorderItemLocator as the constraint and then later
removed. |
Rectangle |
getClientArea(Rectangle rect)
|
ConnectionAnchor |
getConnectionAnchor(java.lang.String terminal)
Given a string identifier, return the associated anchor for that identifier |
java.lang.String |
getConnectionAnchorTerminal(ConnectionAnchor c)
Dynamically allocates a new anchor if needed. |
Rectangle |
getExtendedBounds()
|
Rectangle |
getHandleBounds()
gets the handle bounds of the main figure |
IFigure |
getMainFigure()
Gets the main figure of this bordered figure. |
Dimension |
getMinimumSize(int wHint,
int hHint)
|
static IFigure |
getParentFigure(IFigure target)
This method provides a generic way to get a target figure's parent's main figure where if the target figure is a border item figure, then its parent is considered the figure on which it borders.It is not possible to get a target figure's parent using IFigure#getParent() if
the target figure is a border item figure, since this would return the
border item container figure. |
Dimension |
getPreferredSize(int wHint,
int hHint)
|
ConnectionAnchor |
getSourceConnectionAnchorAt(Point p)
Gets the source connection anchor at a given point on the figure. |
ConnectionAnchor |
getTargetConnectionAnchorAt(Point p)
Gets the target connection anchor at a given point on the figure. |
IFigure |
getToolTip()
|
boolean |
intersects(Rectangle rect)
|
protected void |
layout()
Give the main figure the entire bounds of the wrapper. |
protected void |
primTranslate(int dx,
int dy)
|
void |
repaint()
Refresh adornments |
void |
setToolTip(IFigure f)
|
| Methods inherited from class org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure |
createAnchor, createConnectionAnchor, createDefaultAnchor, getConnectionAnchors, getDefaultAnchorID, getSlidableAnchorArea, isDefaultAnchorArea, paintFigure |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BorderedNodeFigure(IFigure mainFigure)
mainFigure - the figure to use with this figure| Method Detail |
public IFigure getBorderItemContainer()
IBorderItemLocator as the constraint and then later
removed.
public IFigure getMainFigure()
public Rectangle getClientArea(Rectangle rect)
getClientArea in interface IFigurepublic Rectangle getHandleBounds()
getHandleBounds in interface HandleBoundsgetHandleBounds in class NodeFigureprotected void layout()
public boolean containsPoint(int x,
int y)
containsPoint in interface IFigure
protected void primTranslate(int dx,
int dy)
public void erase()
erase in interface IFigurepublic void repaint()
repaint in interface IFigure
public IFigure findFigureAt(int x,
int y,
TreeSearch search)
findFigureAt in interface IFigure
public IFigure findMouseEventTargetAt(int x,
int y)
findMouseEventTargetAt in interface IFigurepublic boolean intersects(Rectangle rect)
intersects in interface IFigure
public Dimension getMinimumSize(int wHint,
int hHint)
getMinimumSize in interface IFigure
public Dimension getPreferredSize(int wHint,
int hHint)
getPreferredSize in interface IFigurepublic IFigure getToolTip()
getToolTip in interface IFigurepublic void setToolTip(IFigure f)
setToolTip in interface IFigurepublic ConnectionAnchor getSourceConnectionAnchorAt(Point p)
IAnchorableFigure
getSourceConnectionAnchorAt in interface IAnchorableFiguregetSourceConnectionAnchorAt in class NodeFigurepublic ConnectionAnchor getTargetConnectionAnchorAt(Point p)
IAnchorableFigure
getTargetConnectionAnchorAt in interface IAnchorableFiguregetTargetConnectionAnchorAt in class NodeFigurepublic ConnectionAnchor getConnectionAnchor(java.lang.String terminal)
IAnchorableFigure
getConnectionAnchor in interface IAnchorableFiguregetConnectionAnchor in class NodeFigurepublic java.lang.String getConnectionAnchorTerminal(ConnectionAnchor c)
IAnchorableFigure
getConnectionAnchorTerminal in interface IAnchorableFiguregetConnectionAnchorTerminal in class NodeFigurepublic static IFigure getParentFigure(IFigure target)
IFigure#getParent() if
the target figure is a border item figure, since this would return the
border item container figure.
target - the target figure, may or may not be acting as a border item
figure
public Rectangle getExtendedBounds()
getExtendedBounds in interface org.eclipse.gmf.runtime.diagram.ui.internal.figures.IExpandableFigure
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.