y.view
Class OrthogonalMoveBendsMode.MinMax

java.lang.Object
  extended by y.view.OrthogonalMoveBendsMode.MinMax
Enclosing class:
OrthogonalMoveBendsMode

public static class OrthogonalMoveBendsMode.MinMax
extends Object

Utility class that holds a valid coordinate range and properly crops coordinates.

 

Constructor Summary
OrthogonalMoveBendsMode.MinMax()
           
OrthogonalMoveBendsMode.MinMax(double minX, double maxX, double minY, double maxY)
           
 
Method Summary
 void adjust(Point2D point)
          Adjusts the given point so that it satisfies the minimal and maximal coordinate ranges.
 double getMaxX()
           
 double getMaxY()
           
 double getMinX()
           
 double getMinY()
           
 void setMaxX(double maxX)
           
 void setMaxY(double maxY)
           
 void setMinX(double minX)
           
 void setMinY(double minY)
           
 void setX(double x)
           
 void setY(double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrthogonalMoveBendsMode.MinMax

public OrthogonalMoveBendsMode.MinMax()

OrthogonalMoveBendsMode.MinMax

public OrthogonalMoveBendsMode.MinMax(double minX,
                                      double maxX,
                                      double minY,
                                      double maxY)
Method Detail

getMinX

public double getMinX()

setMinX

public void setMinX(double minX)

getMaxX

public double getMaxX()

setMaxX

public void setMaxX(double maxX)

getMinY

public double getMinY()

setMinY

public void setMinY(double minY)

getMaxY

public double getMaxY()

setMaxY

public void setMaxY(double maxY)

adjust

public void adjust(Point2D point)
Adjusts the given point so that it satisfies the minimal and maximal coordinate ranges.


setY

public void setY(double y)

setX

public void setX(double x)

© Copyright 2000-2008,
yWorks GmbH.
All rights reserved.