|
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.gef.ui.figures.WrapperNodeFigure
public class WrapperNodeFigure
Wrapper NodeFigure figure to contain other figures, which may have different borders.
| 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.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 | |
|---|---|
WrapperNodeFigure(IFigure subFigure)
Composite pattern for wrapping a template list compartment around any potential figure. |
|
| Method Summary | |
|---|---|
boolean |
containsPoint(int x,
int y)
|
Border |
getBorder()
This will return null since we have override the setBorder(Border) api. |
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 |
getHandleBounds()
|
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. |
protected void |
paintFigure(Graphics graphics)
|
void |
setBorder(Border border)
Sets the subfigure border. |
| Methods inherited from class org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure |
|---|
createAnchor, createConnectionAnchor, createDefaultAnchor, getConnectionAnchors, getDefaultAnchorID, getSlidableAnchorArea, isDefaultAnchorArea |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperNodeFigure(IFigure subFigure)
subFigure - the IFigure that is being wrapped.| Method Detail |
|---|
public boolean containsPoint(int x,
int y)
containsPoint in interface IFigurecontainsPoint in class Figurepublic Rectangle getHandleBounds()
getHandleBounds in interface HandleBoundsgetHandleBounds in class NodeFigureprotected void paintFigure(Graphics graphics)
paintFigure in class NodeFigurepublic Border getBorder()
getBorder in interface IFiguregetBorder in class Figurepublic void setBorder(Border border)
setBorder in interface IFiguresetBorder in class Figurepublic ConnectionAnchor getSourceConnectionAnchorAt(Point p)
IAnchorableFigure
getSourceConnectionAnchorAt in interface IAnchorableFiguregetSourceConnectionAnchorAt in class NodeFigurep - Point on the figure that gives a hint which anchor to return.
ConnectionAnchor reference to an anchor associated with the given
point on the figure.public ConnectionAnchor getTargetConnectionAnchorAt(Point p)
IAnchorableFigure
getTargetConnectionAnchorAt in interface IAnchorableFiguregetTargetConnectionAnchorAt in class NodeFigurep - Point on the figure that gives a hint which anchor to return.
ConnectionAnchor reference to an anchor associated with the
given point on the figure.public ConnectionAnchor getConnectionAnchor(java.lang.String terminal)
IAnchorableFigure
getConnectionAnchor in interface IAnchorableFiguregetConnectionAnchor in class NodeFigureterminal - String identifier associated with the anchor
ConnectionAnchor that is associated with the given string.public java.lang.String getConnectionAnchorTerminal(ConnectionAnchor c)
IAnchorableFigure
getConnectionAnchorTerminal in interface IAnchorableFiguregetConnectionAnchorTerminal in class NodeFigurec - the ConnectionAnchor reference to an anchor associated with the
given point on the figure
String that represents the anchor identifier.
|
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.