|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.Grid
public final class Grid
Provides support for routing edges on equidistant grid lines.
The grid is defined by its origin and the spacing between the equidistant grid lines.
Constructor Summary | |
---|---|
Grid(double originX,
double originY,
double spacing)
Creates a new instance. |
Method Summary | |
---|---|
double |
getOriginX()
Returns the horizontal coordinate of the origin. |
double |
getOriginY()
Returns the vertical coordinate of the origin. |
double |
getSpacing()
Returns the spacing between the horizontal and vertical grid lines. |
String |
toString()
Returns a String representation of Grid . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Grid(double originX, double originY, double spacing)
1
. If spacing is smaller,
1 is assumed.
originX
- The horizontal coordinate of the origin.originY
- The vertical coordinate of the origin.spacing
- The spacing between the grid lines. Must be at least 1
.Method Detail |
---|
public double getOriginX()
public double getOriginY()
public double getSpacing()
public String toString()
String
representation of Grid
.
toString
in class Object
String
representation of Grid
.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |