|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.layout.controller.LayoutController
com.tensegrity.graph.layout.controller.OrgChartLayoutController
The OrgChartLayoutController is a concrete
LayoutController class
used to layout an organizational chart. In such a chart, visual nodes are
distributed below or to the side of a parent node in equal measure.
The class encapsulates details that are necessary to properly use the
necessary OrgChartLayout instance and provides a set of methods
that are helpful for developing organizational chart applications.
| Field Summary | |
static int |
BALANCE_CENTER
Node arrangement specifier. |
static int |
BALANCE_LEFT
Node arrangement specifier. |
static int |
BALANCE_RIGHT
Node arrangement specifier. |
static int |
LIST_DOUBLE
Node arrangement specifier. |
static int |
LIST_LEFT
Node arrangement specifier. |
static int |
LIST_RIGHT
Node arrangement specifier. |
static int |
STAFF
Node arrangement specifier. |
| Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
TREE_SUBSET_POSTFIX |
| Constructor Summary | |
OrgChartLayoutController()
Constructs a new OrgChartLayoutController instance. |
|
| Method Summary | |
LayoutController |
deepCopy(VisualGraphObjectContainer visualgraphobject)
Creates a new independent layout-controller associated with the given VisualGraphObjectContainer. |
int |
getNodeArrangement(Layoutable node)
Gets the arrangement style of the specified node. |
boolean |
getNodePinned(LayoutableNode node)
Indicates whether the specified node is a pinned. |
protected void |
init()
This method must be overwritten by derived LayoutControllers. |
boolean |
isConnector(LayoutableEdge edge)
Indicates whether the specified edge is a connector or a association link. association links have any effect on arrangement of the node which are connected by them. |
protected void |
onBeginLayout()
Override this method with code that should be performed when the layout is about to begin. |
void |
setConnector(LayoutableEdge edge,
boolean connector)
Determines the type of specified edge. |
void |
setNodeArrangement(Layoutable node,
int arrangement)
Sets the arrangement style of the specified node. |
void |
setNodePinned(LayoutableNode node,
boolean pinned)
Sets the specified node to be pinned or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int BALANCE_CENTER
public static final int BALANCE_LEFT
public static final int BALANCE_RIGHT
public static final int LIST_LEFT
public static final int LIST_RIGHT
public static final int LIST_DOUBLE
public static final int STAFF
| Constructor Detail |
public OrgChartLayoutController()
OrgChartLayoutController instance.
| Method Detail |
protected void init()
LayoutControllerLayout and
define the according layout-contexts.
init in class LayoutControllerprotected void onBeginLayout()
LayoutController
onBeginLayout in class LayoutControllerpublic int getNodeArrangement(Layoutable node)
node - LayoutableNode which arrangement is requested
BALANCE_CENTER,
BALANCE_LEFT,
BALANCE_RIGHT,
LIST_LEFT,
LIST_RIGHT,
LIST_DOUBLE or
STAFF;
public void setNodeArrangement(Layoutable node,
int arrangement)
BALANCE_CENTER,
BALANCE_LEFT,
BALANCE_RIGHT,
LIST_LEFT,
LIST_RIGHT,
LIST_DOUBLE and
STAFF;
node - LayoutableNode which arrangement is to set.arrangement - the arrangement that is to use.public boolean isConnector(LayoutableEdge edge)
edge - an LayoutableEdge object which taye is requested
true if the edge is a connector, otherwise returns false.
public void setConnector(LayoutableEdge edge,
boolean connector)
edge - an LayoutableEdge which type is to changed.connector - true if the edge has behave as a connector, false if
the edge has behave as an association link. association links have any
effect on arrangement of the organization chart.
public void setNodePinned(LayoutableNode node,
boolean pinned)
node - LayoutableNode which should be pinnedpinned - determines whether node should pinned or not.public boolean getNodePinned(LayoutableNode node)
node - LayoutableNode which state is requested.
true if the node is pinned, otherwise false.public LayoutController deepCopy(VisualGraphObjectContainer visualgraphobject)
VisualGraphObjectContainer.
deepCopy in class LayoutControllervisualgraphobject - the VisualGraphObjectContainer the copy is to be
associated with.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||