|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.organic.OutputRestriction
public abstract class OutputRestriction
Implementations of this class can be set via a setOutputRestriction(OutputRestriction)
method, e.g.
SmartOrganicLayouter.setOutputRestriction(OutputRestriction)
in SmartOrganicLayouter
to restrict the output area and shape of the layout.
Instances of this class can only be retrieved from the factory methods or from the static field.
NONE
,
createAspectRatioRestriction(double)
,
createCircularCageRestriction(double,double,double)
,
createEllipticalCageRestriction(double,double,double,double)
,
createRectangularCageRestriction(double,double,double,double)
Field Summary | |
---|---|
static OutputRestriction |
NONE
This restriction actually does not restrict the output. |
Method Summary | |
---|---|
static OutputRestriction |
createAspectRatioRestriction(double ratio)
This factory method creates a restriction object that can be used to restrict the result of a layout run of SmartOrganicLayouter so
that the bounding box roughly has the given aspect ratio. |
static OutputRestriction |
createCircularCageRestriction(double x,
double y,
double radius)
This factory method creates a restriction object that can be used to restrict the result of a layout run of SmartOrganicLayouter so
that the nodes lie within a circle. |
static OutputRestriction |
createEllipticalCageRestriction(double x,
double y,
double w,
double h)
This factory method creates a restriction object that can be used to restrict the result of a layout run of SmartOrganicLayouter so
that the nodes lie within an ellipse whose main axes are parallel to the coordinate axes. |
static OutputRestriction |
createRectangularCageRestriction(double x,
double y,
double w,
double h)
This factory method creates a restriction object that can be used to restrict the result of a layout run of SmartOrganicLayouter so
that the nodes lie within the given rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OutputRestriction NONE
SmartOrganicLayouter.setOutputRestriction(OutputRestriction)
Method Detail |
---|
public static OutputRestriction createRectangularCageRestriction(double x, double y, double w, double h)
SmartOrganicLayouter
so
that the nodes lie within the given rectangle.
x
- x coordinate of the upper-left corner of the restriction rectangley
- y coordinate of the upper-left corner of the restriction rectanglew
- width of the restriction rectangleh
- height of the restriction rectangle
SmartOrganicLayouter.setOutputRestriction(OutputRestriction)
public static OutputRestriction createCircularCageRestriction(double x, double y, double radius)
SmartOrganicLayouter
so
that the nodes lie within a circle.
x
- x coordinate of the center of the restriction circley
- y coordinate of the center of the restriction circleradius
- the radius of the restriction circle
SmartOrganicLayouter.setOutputRestriction(OutputRestriction)
public static OutputRestriction createEllipticalCageRestriction(double x, double y, double w, double h)
SmartOrganicLayouter
so
that the nodes lie within an ellipse whose main axes are parallel to the coordinate axes.
x
- x coordinate of the upper left cornery
- y coordinate of the upper left cornerw
- width of the bounding box of the ellipseh
- the height of the bounding box of the ellipse
SmartOrganicLayouter.setOutputRestriction(OutputRestriction)
public static OutputRestriction createAspectRatioRestriction(double ratio)
SmartOrganicLayouter
so
that the bounding box roughly has the given aspect ratio.
ratio
- the preferred aspect ratio (width/height) of the output
SmartOrganicLayouter.setOutputRestriction(OutputRestriction)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |