|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.tree.GenericTreeLayouter.SubtreeShape
public static final class GenericTreeLayouter.SubtreeShape
Instances of this class are used to represent the shape of subtrees during the layout.
| Field Summary | |
|---|---|
static int |
BORDERLINE_EAST
Side constant used by getBorderLine(int). |
static int |
BORDERLINE_NORTH
Side constant used by getBorderLine(int). |
static int |
BORDERLINE_SOUTH
Side constant used by getBorderLine(int). |
static int |
BORDERLINE_WEST
Side constant used by getBorderLine(int). |
static byte |
DIRECTION_EAST
Direction constant used by getConnectorDirection(). |
static byte |
DIRECTION_NORTH
Direction constant used by getConnectorDirection(). |
static byte |
DIRECTION_SOUTH
Direction constant used by getConnectorDirection(). |
static byte |
DIRECTION_WEST
Direction constant used by getConnectorDirection(). |
| Method Summary | |
|---|---|
void |
addBoundsToShape(double x,
double y,
double width,
double height)
Adds a rectangular shape to the current shape. |
void |
addEdgeSegments(LayoutGraph lg,
Edge e)
Helper method that takes all edge segments of the given Edge instance and updates the shape bounds with that information. |
void |
addLineSegment(double x1,
double y1,
double x2,
double y2)
Convenience method that updates the shape to respect the given line segment. |
void |
addTargetPoint(double x,
double y)
Adds another point to the connecting edge (away from the target node). |
void |
appendTargetPoints(EdgeLayout el)
Appends all target points that have previously been added to this shape to the given EdgeLayout instance. |
void |
assignValuesTo(GenericTreeLayouter.SubtreeShape toShape,
AbstractRotatableNodePlacer.Matrix modificationMatrix)
Copies this instance to another shape, applying a modification matrix. |
GenericTreeLayouter.SubtreeShape |
createCopy(AbstractRotatableNodePlacer.Matrix matrix)
Creates a clone of this instance, modifying it using the provided matrix. |
BorderLine |
getBorderLine(int index)
Returns the BorderLine instance for the given direction. |
Rectangle2D |
getBounds()
Returns the current bounds of this SubtreeShape |
byte |
getConnectorDirection()
Returns the direction byte constant as defined in this class, that indicates the direction of the last connecting edge segment. |
double |
getConnectorX()
Returns the current x coordinate of the connection point where the layout algorithm should connect the ingoing edge to. |
double |
getConnectorY()
Returns the current y coordinate of the connection point where the layout algorithm should connect the ingoing edge to. |
Rectangle2D.Double |
getCoreBounds()
Yields the bounds of the NodeLayout of the root node. |
double |
getMaxX()
Returns the current maximum x coordinate of this shape. |
double |
getMaxY()
Returns the current maximum y coordinate of this shape. |
double |
getMinX()
Returns the current minimal x coordinate of this shape. |
double |
getMinY()
Returns the current minimal y coordinate of this shape. |
double |
getOriginX()
Returns the current x coordinate of the origin of this shape. |
double |
getOriginY()
Returns the current y coordinate of the origin of this shape. |
void |
mergeWith(GenericTreeLayouter.SubtreeShape other)
Merges the given SubtreeShape with this shape's bounds. |
void |
move(double dx,
double dy)
Moves this shape and its connector by the given offsets. |
String |
toString()
|
void |
updateConnectorShape()
Adds the line segments of the connector shape to the bounds and borderlines of this SubTreeShape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte DIRECTION_NORTH
getConnectorDirection().
public static final byte DIRECTION_EAST
getConnectorDirection().
public static final byte DIRECTION_SOUTH
getConnectorDirection().
public static final byte DIRECTION_WEST
getConnectorDirection().
public static final int BORDERLINE_NORTH
getBorderLine(int).
public static final int BORDERLINE_EAST
getBorderLine(int).
public static final int BORDERLINE_SOUTH
getBorderLine(int).
public static final int BORDERLINE_WEST
getBorderLine(int).
| Method Detail |
|---|
public Rectangle2D.Double getCoreBounds()
NodeLayout of the root node.
public Rectangle2D getBounds()
public double getConnectorX()
public double getConnectorY()
public void updateConnectorShape()
public void addTargetPoint(double x,
double y)
x - the current x coordinate of the pointy - the current x coordinate of the point
public void addEdgeSegments(LayoutGraph lg,
Edge e)
lg - the LayoutGraph that contains the edgee - the edge whose path will be used to update the shapepublic void appendTargetPoints(EdgeLayout el)
el - the EdgeLayout that will be modifiedpublic byte getConnectorDirection()
DIRECTION_NORTH DIRECTION_EAST DIRECTION_SOUTH DIRECTION_WEST
public void addLineSegment(double x1,
double y1,
double x2,
double y2)
public void addBoundsToShape(double x,
double y,
double width,
double height)
public void mergeWith(GenericTreeLayouter.SubtreeShape other)
other - the shape to be merged with this shapepublic double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public BorderLine getBorderLine(int index)
index - the direction index where
BORDERLINE_NORTH is north,
BORDERLINE_EAST is east,
BORDERLINE_SOUTH is south, and
BORDERLINE_WEST is west.
BorderLine instance
public void move(double dx,
double dy)
dx - the delta x offset this shape will be moved bydy - the delta y offset this shape will be moved bypublic double getOriginX()
public double getOriginY()
public GenericTreeLayouter.SubtreeShape createCopy(AbstractRotatableNodePlacer.Matrix matrix)
public void assignValuesTo(GenericTreeLayouter.SubtreeShape toShape,
AbstractRotatableNodePlacer.Matrix modificationMatrix)
public String toString()
toString in class Object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||