Class LabelSubgraph

All Implemented Interfaces:
EntityLayout, SubgraphLayout

public class LabelSubgraph extends FigureSubgraph
A subgraph layout that displays a label showing number of items pruned within it.
Since:
1.14
  • Constructor Details

  • Method Details

    • setForegroundColor

      public void setForegroundColor(Color color)
      Sets the foreground color of this subgraph (that is color of the text on the label).
      Parameters:
      color - color to set
    • setBackgroundColor

      public void setBackgroundColor(Color color)
      Sets the background color of this subgraph's label.
      Parameters:
      color - color to set
    • createFigure

      protected void createFigure()
      Description copied from class: FigureSubgraph
      Creates a figure for this subgraph and stores it in FigureSubgraph.figure. This method may not be called right after creation of the subgraph but later when the figure is actually needed (lazy initialization).
      Specified by:
      createFigure in class FigureSubgraph
    • updateFigure

      protected void updateFigure()
      Description copied from class: FigureSubgraph
      Updates the figure stored in FigureSubgraph.figure depending on current nodes contained in this subgraph. If this method creates a new instance of IFigure, it should remember to add a FigureSubgraph.SubgraphFigrueListener to it.
      Specified by:
      updateFigure in class FigureSubgraph