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, sizeFields inherited from class org.eclipse.zest.core.widgets.GraphItem
CONNECTION, CONTAINER, GRAPH, NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IFigureGet the background colour for this node.getFont()Get the foreground colour for this nodevoidPermanently sets the background color (unhighlighted).voidprotected voidupdateFigureForModel(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, unhighlightMethods inherited from class org.eclipse.zest.core.widgets.GraphItem
checkStyleMethods inherited from class org.eclipse.swt.widgets.Item
checkSubclass, getImage, getTextMethods 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:
createFigureForModelin classGraphNode
-
setBackgroundColor
Description copied from class:GraphNodePermanently sets the background color (unhighlighted). This color has no effect if a custom figure has been set.- Overrides:
setBackgroundColorin classGraphNode- Parameters:
c-
-
setFont
-
getBackgroundColor
Description copied from class:GraphNodeGet 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:
getBackgroundColorin classGraphNode
-
getFont
-
getForegroundColor
Description copied from class:GraphNodeGet the foreground colour for this node- Overrides:
getForegroundColorin classGraphNode
-
updateFigureForModel
- Overrides:
updateFigureForModelin classGraphNode
-