Class LabelSubgraph
java.lang.Object
org.eclipse.zest.core.widgets.DefaultSubgraph
org.eclipse.zest.core.widgets.FigureSubgraph
org.eclipse.zest.core.widgets.custom.LabelSubgraph
- All Implemented Interfaces:
- EntityLayout,- SubgraphLayout
A subgraph layout that displays a label showing number of items pruned within
 it.
- Since:
- 1.14
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.zest.core.widgets.FigureSubgraphFigureSubgraph.SubgraphFigrueListenerNested classes/interfaces inherited from class org.eclipse.zest.core.widgets.DefaultSubgraphDefaultSubgraph.DefaultSubgraphFactory, DefaultSubgraph.LabelSubgraphFactory, DefaultSubgraph.PrunedSuccessorsSubgraphFactory, DefaultSubgraph.TriangleSubgraphFactory
- 
Field SummaryFields inherited from class org.eclipse.zest.core.widgets.FigureSubgraphfigureFields inherited from class org.eclipse.zest.core.widgets.DefaultSubgraphcontext, disposed, nodesFields inherited from interface org.eclipse.zest.layouts.interfaces.SubgraphLayoutBOTTOM_UP, LEFT_RIGHT, RIGHT_LEFT, TOP_DOWN
- 
Constructor SummaryConstructorsConstructorDescriptionLabelSubgraph(NodeLayout[] nodes, LayoutContext context, Color foregroundColor, Color backgroundColor) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCreates a figure for this subgraph and stores it inFigureSubgraph.figure.voidsetBackgroundColor(Color color) Sets the background color of this subgraph's label.voidsetForegroundColor(Color color) Sets the foreground color of this subgraph (that is color of the text on the label).protected voidUpdates the figure stored inFigureSubgraph.figuredepending on current nodes contained in this subgraph.Methods inherited from class org.eclipse.zest.core.widgets.FigureSubgraphaddNodes, applyLayoutChanges, dispose, getFigure, getLocation, getPredecessingEntities, getSize, getSuccessingEntities, isGraphEntity, isMovable, refreshLocation, removeNodes, setLocationMethods inherited from class org.eclipse.zest.core.widgets.DefaultSubgraphcountNodes, getItems, getNodes, getPreferredAspectRatio, isDirectionDependant, isResizable, refreshConnectionsVisibility, refreshSize, removeDisposedNodes, setDirection, setSize
- 
Constructor Details- 
LabelSubgraphpublic LabelSubgraph(NodeLayout[] nodes, LayoutContext context, Color foregroundColor, Color backgroundColor) 
 
- 
- 
Method Details- 
setForegroundColorSets the foreground color of this subgraph (that is color of the text on the label).- Parameters:
- color- color to set
 
- 
setBackgroundColorSets the background color of this subgraph's label.- Parameters:
- color- color to set
 
- 
createFigureprotected void createFigure()Description copied from class:FigureSubgraphCreates a figure for this subgraph and stores it inFigureSubgraph.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:
- createFigurein class- FigureSubgraph
 
- 
updateFigureprotected void updateFigure()Description copied from class:FigureSubgraphUpdates the figure stored inFigureSubgraph.figuredepending on current nodes contained in this subgraph. If this method creates a new instance of IFigure, it should remember to add aFigureSubgraph.SubgraphFigrueListenerto it.- Specified by:
- updateFigurein class- FigureSubgraph
 
 
-