public static class DefaultSubgraph.TriangleSubgraphFactory extends java.lang.Object implements SubgraphFactory
Constructor and Description |
---|
DefaultSubgraph.TriangleSubgraphFactory() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.gef4.layout.interfaces.SubgraphLayout |
createSubgraph(org.eclipse.gef4.layout.interfaces.NodeLayout[] nodes,
org.eclipse.gef4.layout.interfaces.LayoutContext context) |
Color |
getColor() |
int |
getDirection() |
double |
getReferenceBase() |
double |
getReferenceHeight() |
void |
setColor(Color color)
Changes the default color for newly created subgraphs.
|
void |
setDirection(int direction)
Changes the default direction for newly cretaed subgraphs.
|
void |
setReferenceBase(double referenceBase)
Sets the maximum base length for the triangle visualizing this
subgraph.
|
void |
setReferenceHeight(double referenceHeight)
Sets the maximum height for the triangle visualizing this subgraph.
|
public DefaultSubgraph.TriangleSubgraphFactory()
public org.eclipse.gef4.layout.interfaces.SubgraphLayout createSubgraph(org.eclipse.gef4.layout.interfaces.NodeLayout[] nodes, org.eclipse.gef4.layout.interfaces.LayoutContext context)
createSubgraph
in interface SubgraphFactory
public Color getColor()
public void setColor(Color color)
color
- color to usepublic int getDirection()
public void setDirection(int direction)
direction
- direction to use, can be SubgraphLayout.TOP_DOWN
,
SubgraphLayout.BOTTOM_UP
,
SubgraphLayout.LEFT_RIGHT
, or
SubgraphLayout.RIGHT_LEFT
public double getReferenceHeight()
public void setReferenceHeight(double referenceHeight)
referenceHeight
- height to usepublic double getReferenceBase()
public void setReferenceBase(double referenceBase)
referenceBase
- base length to useCopyright (c) 2014 itemis AG and others. All rights reserved.