All Packages Class Hierarchy This Package Previous Next Index
Class fi.helsinki.cs.MapDrawer.RelRect
java.lang.Object
|
+----fi.helsinki.cs.MapDrawer.RelRect
- public class RelRect
- extends Object
- implements Serializable
MapDrawer's relative rectangle class -
This class is needed because MapDrawer doesn't use integer coordinates.
Moreover, RelRects can be used as very simple point scaler contexts.
-
RelRect()
- Creates a RelRect of zero area placed at the origo.
-
RelRect(double, double, double, double)
-
-
RelRect(RelRect)
-
-
checkOrder()
-
Checks if the bounds are in correct order and corrects them if
not so.
-
equals(RelRect)
-
-
toString()
-
RelRect
public RelRect()
- Creates a RelRect of zero area placed at the origo.
RelRect
public RelRect(RelRect src)
RelRect
public RelRect(double nx1,
double ny1,
double nx2,
double ny2)
equals
public boolean equals(RelRect cmp)
toString
public String toString()
- Overrides:
- toString in class Object
checkOrder
public void checkOrder()
- Checks if the bounds are in correct order and corrects them if
not so. That is, left edge should not have bigger value than
right edge, and the same holds for upper and lower edges,
correspondingly.
All Packages Class Hierarchy This Package Previous Next Index