|
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
This class 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 Grid instance. |
Method Summary | |
---|---|
double |
getOriginX()
Returns the x-coordinate of the origin. |
double |
getOriginY()
Returns the y-coordinate of the origin. |
double |
getSpacing()
Returns the spacing between the horizontal and vertical grid lines. |
java.lang.String |
toString()
Returns a string representation of the Grid object. |
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)
Grid
instance.
The spacing between the grid lines must be at least 1
. If the given spacing is smaller,
value 1
is assumed.
originX
- the x-coordinate of the origin of the gridoriginY
- the y-coordinate of the origin of the gridspacing
- the spacing between the grid linesMethod Detail |
---|
public double getOriginX()
public double getOriginY()
public double getSpacing()
public java.lang.String toString()
Grid
object.
toString
in class java.lang.Object
Grid
object.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |