Package org.eclipse.zest.core.widgets
Class CGraphNode
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.zest.core.widgets.GraphItem
org.eclipse.zest.core.widgets.GraphNode
org.eclipse.zest.core.widgets.CGraphNode
A Custom Graph Node
-
Field Summary
Fields inherited from class org.eclipse.zest.core.widgets.GraphNode
graph, HIGHLIGHT_NONE, HIGHLIGHT_ON, highlighted, internalNode, nodeFigure, parent, size
Fields inherited from class org.eclipse.zest.core.widgets.GraphItem
CONNECTION, CONTAINER, GRAPH, NODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IFigure
Get the background colour for this node.getFont()
Get the foreground colour for this nodevoid
Permanently sets the background color (unhighlighted).void
protected void
updateFigureForModel
(IFigure currentFigure) Methods inherited from class org.eclipse.zest.core.widgets.GraphNode
cacheLabel, dispose, fishEye, getBorderColor, getBorderHighlightColor, getBorderWidth, getGraphModel, getHideContainerBounds, getHideNodeHelper, getHighlightColor, getItemType, getLayout, getLayoutEntity, getLocation, getModelFigure, getNodeFigure, getNodeStyle, getSize, getSourceConnections, getStyle, getTargetConnections, getTooltip, highlight, initFigure, initModel, isDisposed, isHighlighted, isSelected, isSizeFixed, isVisible, refreshLocation, setBorderColor, setBorderHighlightColor, setBorderWidth, setCacheLabel, setForegroundColor, setHideNodeHelper, setHighlightColor, setImage, setLocation, setModelFigure, setNodeStyle, setSize, setText, setTooltip, setVisible, toString, unhighlight
Methods inherited from class org.eclipse.zest.core.widgets.GraphItem
checkStyle
Methods inherited from class org.eclipse.swt.widgets.Item
checkSubclass, getImage, getText
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, addTypedListener, checkWidget, getData, getData, getDisplay, getListeners, getTypedListeners, isAutoDirection, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setData
-
Constructor Details
-
CGraphNode
-
-
Method Details
-
getFigure
-
createFigureForModel
- Overrides:
createFigureForModel
in classGraphNode
-
setBackgroundColor
Description copied from class:GraphNode
Permanently sets the background color (unhighlighted). This color has no effect if a custom figure has been set.- Overrides:
setBackgroundColor
in classGraphNode
- Parameters:
c
-
-
setFont
-
getBackgroundColor
Description copied from class:GraphNode
Get the background colour for this node. This is the color the node will be if it is not currently highlighted. This color is meaningless if a custom figure has been set.- Overrides:
getBackgroundColor
in classGraphNode
-
getFont
-
getForegroundColor
Description copied from class:GraphNode
Get the foreground colour for this node- Overrides:
getForegroundColor
in classGraphNode
-
updateFigureForModel
- Overrides:
updateFigureForModel
in classGraphNode
-