public class CGraphNode extends GraphNode
graph, HIGHLIGHT_NONE, HIGHLIGHT_ON, highlighted, internalNode, nodeFigure, parent, size
CONNECTION, CONTAINER, GRAPH, NODE
Constructor and Description |
---|
CGraphNode(IContainer graphModel,
int style,
IFigure figure) |
Modifier and Type | Method and Description |
---|---|
protected IFigure |
createFigureForModel() |
Color |
getBackgroundColor()
Get the background colour for this node.
|
IFigure |
getFigure() |
Font |
getFont() |
Color |
getForegroundColor()
Get the foreground colour for this node
|
void |
setBackgroundColor(Color c)
Permanently sets the background color (unhighlighted).
|
void |
setFont(Font font) |
protected void |
updateFigureForModel(IFigure currentFigure) |
cacheLabel, dispose, fishEye, getBorderColor, getBorderHighlightColor, getBorderWidth, getGraphModel, getHighlightColor, getItemType, getLayoutEntity, getLocation, getNodeFigure, getNodeStyle, getSize, getSourceConnections, getStyle, getTargetConnections, getTooltip, highlight, initFigure, initModel, isDisposed, isSelected, isSizeFixed, isVisible, refreshLocation, setBorderColor, setBorderHighlightColor, setBorderWidth, setCacheLabel, 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 CGraphNode(IContainer graphModel, int style, IFigure figure)
public IFigure getFigure()
protected IFigure createFigureForModel()
createFigureForModel
in class GraphNode
public void setBackgroundColor(Color c)
GraphNode
setBackgroundColor
in class GraphNode
public Color getBackgroundColor()
GraphNode
getBackgroundColor
in class GraphNode
public Color getForegroundColor()
GraphNode
getForegroundColor
in class GraphNode
protected void updateFigureForModel(IFigure currentFigure)
updateFigureForModel
in class GraphNode
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.