|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.layout.classdiag.internalmodel.LayoutHelper
LayoutHelper is a utility class which mainly returns various types of routing polygons for different kind of connection lines between two nodes. Specific layouters might use these methods to reuse certain kinds of diagram lines.
Field Summary | |
static int |
EAST
A constant bitmask for a direction. |
static int |
NORTH
A constant bitmask for a direction. |
static int |
NORTHEAST
A constant bitmask for a direction. |
static int |
NORTHWEST
A constant bitmask for a direction. |
static int |
SOUTH
A constant bitmask for a direction. |
static int |
SOUTHEAST
A constant bitmask for a direction. |
static int |
SOUTHWEST
A constant bitmask for a direction. |
static int |
WEST
A constant bitmask for a direction. |
Constructor Summary | |
LayoutHelper()
|
Method Summary | |
static java.awt.Point |
getPointOnPerimeter(java.awt.Rectangle rect,
int direction)
|
static java.awt.Point |
getPointOnPerimeter(java.awt.Rectangle rect,
int direction,
double xOff,
double yOff)
|
static java.awt.Polygon |
getRoutingPolygonStraightLine(java.awt.Point start,
java.awt.Point end)
Get a routing polygon for a straightline between two points. |
static java.awt.Polygon |
getRoutingPolygonStraightLineWithOffset(java.awt.Point start,
java.awt.Point end,
int offset)
Get a routing polygon with a horizontal offset from the two points. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NORTH
public static final int NORTHEAST
public static final int EAST
public static final int SOUTHEAST
public static final int SOUTH
public static final int SOUTHWEST
public static final int WEST
public static final int NORTHWEST
Constructor Detail |
public LayoutHelper()
Method Detail |
public static java.awt.Point getPointOnPerimeter(java.awt.Rectangle rect, int direction)
rect
- the rectangledirection
- the direction
public static java.awt.Point getPointOnPerimeter(java.awt.Rectangle rect, int direction, double xOff, double yOff)
rect
- the rectangledirection
- the directionxOff
- the x offsetyOff
- the y offset
public static java.awt.Polygon getRoutingPolygonStraightLine(java.awt.Point start, java.awt.Point end)
start
- start of the lineend
- end of the line
public static java.awt.Polygon getRoutingPolygonStraightLineWithOffset(java.awt.Point start, java.awt.Point end, int offset)
start
- start of the lineend
- end of the lineoffset
- the given offset
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |