Revision 9 trunk/libraries/libCq CMS for java.old/src/org/cresques/px/Extent.java
Extent.java | ||
---|---|---|
1 | 1 |
package org.cresques.px; |
2 | 2 |
|
3 |
import java.lang.Math; |
|
4 | 3 |
import java.awt.geom.Point2D; |
4 |
import java.awt.geom.Rectangle2D; |
|
5 | 5 |
|
6 | 6 |
import java.text.DecimalFormat; |
7 | 7 |
|
... | ... | |
77 | 77 |
scale[1] = ((float) height)/height(); |
78 | 78 |
return scale; |
79 | 79 |
} |
80 |
|
|
81 |
public Rectangle2D toRectangle2D() { |
|
82 |
return new Rectangle2D.Double(minX(), maxY(), width(), height()); |
|
83 |
} |
|
80 | 84 |
public String toString() { |
81 | 85 |
DecimalFormat format = new DecimalFormat("####.000"); |
82 | 86 |
|
Also available in: Unified diff