public class GraphContainer extends GraphNode implements IContainer
| Modifier and Type | Field and Description |
|---|---|
org.eclipse.zest.core.widgets.internal.ZestRootLayer |
zestLayer |
graph, HIGHLIGHT_NONE, HIGHLIGHT_ON, highlighted, internalNode, nodeFigure, parent, sizeCONNECTION, CONTAINER, GRAPH, NODE| Constructor and Description |
|---|
GraphContainer(IContainer graph,
int style)
Creates a new GraphContainer.
|
GraphContainer(IContainer graph,
int style,
java.lang.String text) |
GraphContainer(IContainer graph,
int style,
java.lang.String text,
Image image) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyLayout()
Re-applies the current layout algorithm
|
void |
close(boolean animate)
Close this node.
|
Graph |
getGraph()
Gets the graph that this container has been added to.
|
int |
getItemType()
Gets the graph item type.
|
IFigure |
getNodeFigure() |
java.util.List |
getNodes() |
double |
getScale()
Get the scale for this container.
|
protected void |
initFigure()
NON API MEMBERS
|
void |
open(boolean animate)
Open the container.
|
protected void |
refreshLocation() |
void |
setCustomFigure(IFigure nodeFigure)
Custom figures cannot be set on a GraphContainer.
|
void |
setLayoutAlgorithm(LayoutAlgorithm algorithm,
boolean applyLayout)
Sets the LayoutAlgorithm for this container and optionally applies it.
|
void |
setScale(double scale)
Set the scale for this container.
|
protected void |
updateFigureForModel(IFigure currentFigure) |
cacheLabel, createFigureForModel, dispose, fishEye, getBackgroundColor, getBorderColor, getBorderHighlightColor, getBorderWidth, getFont, getForegroundColor, getGraphModel, getHighlightColor, getLayoutEntity, getLocation, getNodeStyle, getSize, getSourceConnections, getStyle, getTargetConnections, getTooltip, highlight, initModel, isDisposed, isSelected, isSizeFixed, isVisible, setBackgroundColor, setBorderColor, setBorderHighlightColor, setBorderWidth, setCacheLabel, setFont, setForegroundColor, setHighlightColor, setImage, setLocation, setNodeStyle, setSize, setText, setTooltip, setVisible, toString, unhighlightcheckStylecheckSubclass, getImage, getTextaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setDatapublic GraphContainer(IContainer graph, int style)
graph - The graph that the container is being added tostyle - public GraphContainer(IContainer graph, int style, java.lang.String text)
public GraphContainer(IContainer graph, int style, java.lang.String text, Image image)
public void setCustomFigure(IFigure nodeFigure)
public IFigure getNodeFigure()
getNodeFigure in class GraphNodepublic void close(boolean animate)
animate - public void open(boolean animate)
public Graph getGraph()
getGraph in interface IContainerpublic int getItemType()
GraphItemgetItemType in interface IContainergetItemType in class GraphNodepublic void setLayoutAlgorithm(LayoutAlgorithm algorithm, boolean applyLayout)
IContainersetLayoutAlgorithm in interface IContaineralgorithm - The layout algorithm to setpublic void applyLayout()
IContainerapplyLayout in interface IContainerpublic double getScale()
public void setScale(double scale)
scale - protected void initFigure()
initFigure in class GraphNodeprotected void updateFigureForModel(IFigure currentFigure)
updateFigureForModel in class GraphNodeprotected void refreshLocation()
refreshLocation in class GraphNodepublic java.util.List getNodes()
getNodes in interface IContainerCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.