Package org.eclipse.zest.core.widgets
Class DefaultSubgraph.TriangleSubgraphFactory
java.lang.Object
org.eclipse.zest.core.widgets.DefaultSubgraph.TriangleSubgraphFactory
- All Implemented Interfaces:
- SubgraphFactory
- Enclosing class:
- DefaultSubgraph
public static class DefaultSubgraph.TriangleSubgraphFactory
extends Object
implements SubgraphFactory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateSubgraph(NodeLayout[] nodes, LayoutContext context) getColor()intdoubledoublevoidChanges the default color for newly created subgraphs.voidsetDirection(int direction) Changes the default direction for newly cretaed subgraphs.voidsetReferenceBase(double referenceBase) Sets the maximum base length for the triangle visualizing this subgraph.voidsetReferenceHeight(double referenceHeight) Sets the maximum height for the triangle visualizing this subgraph.
- 
Constructor Details- 
TriangleSubgraphFactorypublic TriangleSubgraphFactory()
 
- 
- 
Method Details- 
createSubgraph- Specified by:
- createSubgraphin interface- SubgraphFactory
 
- 
getColor- Returns:
- initial color of triangles created with this factory
 
- 
setColorChanges the default color for newly created subgraphs.- Parameters:
- color- color to use
 
- 
getDirectionpublic int getDirection()- Returns:
- initial direction of triangles created with this factory
 
- 
setDirectionpublic void setDirection(int direction) Changes the default direction for newly cretaed subgraphs.- Parameters:
- direction- direction to use, can be- SubgraphLayout.TOP_DOWN,- SubgraphLayout.BOTTOM_UP,- SubgraphLayout.LEFT_RIGHT, or- SubgraphLayout.RIGHT_LEFT
 
- 
getReferenceHeightpublic double getReferenceHeight()- Returns:
- maximum height of triangles created with this factory
 
- 
setReferenceHeightpublic void setReferenceHeight(double referenceHeight) Sets the maximum height for the triangle visualizing this subgraph.- Parameters:
- referenceHeight- height to use
 
- 
getReferenceBasepublic double getReferenceBase()- Returns:
- maximum base length of triangles created with this factory
 
- 
setReferenceBasepublic void setReferenceBase(double referenceBase) Sets the maximum base length for the triangle visualizing this subgraph.- Parameters:
- referenceBase- base length to use
 
 
-