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, size
CONNECTION, 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, unhighlight
checkStyle
checkSubclass, getImage, getText
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
public 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 GraphNode
public void close(boolean animate)
animate
- public void open(boolean animate)
public Graph getGraph()
getGraph
in interface IContainer
public int getItemType()
GraphItem
getItemType
in interface IContainer
getItemType
in class GraphNode
public void setLayoutAlgorithm(LayoutAlgorithm algorithm, boolean applyLayout)
IContainer
setLayoutAlgorithm
in interface IContainer
algorithm
- The layout algorithm to setpublic void applyLayout()
IContainer
applyLayout
in interface IContainer
public double getScale()
public void setScale(double scale)
scale
- protected void initFigure()
initFigure
in class GraphNode
protected void updateFigureForModel(IFigure currentFigure)
updateFigureForModel
in class GraphNode
protected void refreshLocation()
refreshLocation
in class GraphNode
public java.util.List getNodes()
getNodes
in interface IContainer
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.