|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the standard interface for any node which should be arranged
by a NodeLayout.
It specifies a contract with the NodeLayout interface
by providing methods that deal with node location, dimension, bounding box
as well as port location and its angular interval for valid incoming edges.
| Field Summary | |
static int |
BBOXMASK_INCLUDE_ALL
BBOXMASK_INCLUDE_ALL: Constant for
getBoundingBox(int) to include all externals of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_ALL
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on all sides
of the node boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_BACK
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the back
(z-direction) side of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_BOTTOM
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the bottom side
of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_FRONT
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the front
(z-direction) side of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_LEFT
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the left side
of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_RIGHT
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the right side
of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_EXTERNALS_TOP
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the top side
of the LayoutableNode boundaries |
static int |
BBOXMASK_INCLUDE_MARKER
BBOXMASK_INCLUDE_MARKER: |
static int |
BBOXMASK_INCLUDE_SHADOW
BBOXMASK_INCLUDE_MARKER: |
static int |
BBOXMASK_INCLUDE_STROKE
BBOXMASK_INCLUDE_STROKE: |
| Method Summary | |
Boundary |
getBoundingBox()
Returns the boundary of the node. |
BoundingBox |
getBoundingBox(int calculationFlags)
Returns the bounding box of this composite. |
Coordinate |
getLocation()
Returns the current location of this node object. |
Coordinate |
getPortCoordinate(long portID)
Gets the Coordinate of the port specified by portID. |
double[] |
getPortDirection(long portID)
Returns the angular interval which the identified port accepts for any valid incoming LayoutableEdge. |
long[] |
getPorts()
Returns the list of the provided ports by this node. |
Size |
getSize()
Gets the Size of the node. |
void |
layout(int left,
int top,
int right,
int bottom)
Sets the bounding box of the node |
void |
setLocation(Coordinate coordinate)
Set the location of the node object. |
| Methods inherited from interface com.tensegrity.graph.layout.Layoutable |
getEdgeLayoutContext, getLayoutAttributeSet, getLayoutContext, getNodeLayoutContext, getUniqueID, setEdgeLayoutContext, setLayoutAttributes, setLayoutContext, setNodeLayoutContext |
| Field Detail |
public static final int BBOXMASK_INCLUDE_EXTERNALS_LEFT
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the left side
of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_EXTERNALS_TOP
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the top side
of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_EXTERNALS_RIGHT
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the right side
of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_EXTERNALS_BOTTOM
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the bottom side
of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_EXTERNALS_FRONT
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the front
(z-direction) side of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_EXTERNALS_BACK
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on the back
(z-direction) side of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_STROKE
BBOXMASK_INCLUDE_STROKE:
public static final int BBOXMASK_INCLUDE_MARKER
BBOXMASK_INCLUDE_MARKER:
public static final int BBOXMASK_INCLUDE_SHADOW
BBOXMASK_INCLUDE_MARKER:
public static final int BBOXMASK_INCLUDE_ALL
BBOXMASK_INCLUDE_ALL: Constant for
getBoundingBox(int) to include all externals of the LayoutableNode boundaries
public static final int BBOXMASK_INCLUDE_EXTERNALS_ALL
BBOXMASK_INCLUDE_EXTERNALS_LEFT: Constant for
getBoundingBox(int) to include externals on all sides
of the node boundaries
| Method Detail |
public Coordinate getLocation()
Coordinate of the node.public void setLocation(Coordinate coordinate)
coordinate - the new top/left Coordinate for the node.public Size getSize()
Size of the node.
Size of the node.public Boundary getBoundingBox()
public BoundingBox getBoundingBox(int calculationFlags)
LayoutableNode interface.
calculationFlags - The flags to control the calculation
public void layout(int left,
int top,
int right,
int bottom)
left - position of the bounding boxtop - position of the bounding boxright - position of the bounding boxbottom - position of the bounding boxpublic long[] getPorts()
public double[] getPortDirection(long portID)
LayoutableEdge.
portID - the identifier of a port
public Coordinate getPortCoordinate(long portID)
Coordinate of the port specified by portID.
portID - the identifier of the port of which the position is requested.
Coordinate of specified port.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||