Class CGraphNode


public class CGraphNode extends GraphNode
A Custom Graph Node
  • Constructor Details

  • Method Details

    • getFigure

      public IFigure getFigure()
    • createFigureForModel

      protected IFigure createFigureForModel()
      Overrides:
      createFigureForModel in class GraphNode
    • setBackgroundColor

      public void setBackgroundColor(Color c)
      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 class GraphNode
      Parameters:
      c -
    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class GraphNode
    • getBackgroundColor

      public Color 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 class GraphNode
    • getFont

      public Font getFont()
      Overrides:
      getFont in class GraphNode
    • getForegroundColor

      public Color getForegroundColor()
      Description copied from class: GraphNode
      Get the foreground colour for this node
      Overrides:
      getForegroundColor in class GraphNode
    • updateFigureForModel

      protected void updateFigureForModel(IFigure currentFigure)
      Overrides:
      updateFigureForModel in class GraphNode