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.


Constructor Index

 o RelRect()
Creates a RelRect of zero area placed at the origo.
 o RelRect(double, double, double, double)
 o RelRect(RelRect)

Method Index

 o checkOrder()
Checks if the bounds are in correct order and corrects them if not so.
 o equals(RelRect)
 o toString()

Constructors

 o RelRect
 public RelRect()
Creates a RelRect of zero area placed at the origo.

 o RelRect
 public RelRect(RelRect src)
 o RelRect
 public RelRect(double nx1,
                double ny1,
                double nx2,
                double ny2)

Methods

 o equals
 public boolean equals(RelRect cmp)
 o toString
 public String toString()
Overrides:
toString in class Object
 o 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