|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.model.MapViewFrame
public class MapViewFrame
The various numbers needed to describe the location, size, scale, and orientation of a view of the map. This represents a rectangle of renderable map, possible rotated, at a certain scale and position.
| Field Summary | |
|---|---|
double |
centerX
The x-coordinate of the center of the map view, in map coordinates. |
double |
centerY
The y-coordinate of the center of the map view, in map coordinates. |
java.awt.geom.AffineTransform |
inverseTransform
|
int |
lod
May be removed at some point - the level-of-detail for the given frame. |
int |
pixelHeight
Height of the map view, in pixels. |
int |
pixelWidth
Width of the map view, in pixels. |
double |
rotation
Rotation of the map view, in cartesian degrees. |
double |
scale
Scale of the map view, in map coordinates per pixel. |
java.awt.geom.AffineTransform |
transform
|
| Constructor Summary | |
|---|---|
MapViewFrame()
|
|
MapViewFrame(int pixelWidth,
int pixelHeight)
Creates an orthogonal frame that matches pixel space (but not inverted; i.e. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
contains(double x,
double y)
|
MapViewFrame |
copy()
|
boolean |
equals(java.lang.Object nother)
|
boolean |
firmlyContains(double x,
double y)
Returns true if point is inside the view, but not less than 10% near the edges. |
double |
getCenterX()
Gets the value of centerX |
double |
getCenterY()
Gets the value of centerY |
double |
getHeight()
|
Point |
getNECorner()
|
Point |
getNWCorner()
|
int |
getPixelHeight()
|
int |
getPixelWidth()
|
double |
getRotation()
Gets the value of rotation |
double |
getScale()
Gets the value of scale |
Point |
getSECorner()
|
Point |
getSWCorner()
|
double |
getWidth()
|
void |
pixelsToPoints(DoubleBuffer coords)
|
Point |
pixelToPoint(int pixelX,
int pixelY)
|
void |
placeCoordAtPixel(double locusX,
double locusY,
int locusPixelX,
int locusPixelY)
Kind of weird. |
void |
pointsToPixels(DoubleBuffer coords)
|
Point |
pointToPixel(double x,
double y)
|
Point |
pointToPixel(double x,
double y,
int offsetX,
int offsetY)
|
void |
resetTransform()
|
boolean |
samePixelSize(MapViewFrame nother)
|
boolean |
sameScaleAndSize(MapViewFrame nother)
|
boolean |
sameSize(MapViewFrame nother)
|
void |
setCenterX(double argCenterX)
Sets the value of centerX |
void |
setCenterY(double argCenterY)
Sets the value of centerY |
void |
setRotation(double argRotation)
Sets the value of rotation |
void |
setScale(double argScale)
Sets the value of scale |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double centerX
public double centerY
public double scale
public int pixelWidth
public int pixelHeight
public double rotation
public int lod
public transient java.awt.geom.AffineTransform transform
public transient java.awt.geom.AffineTransform inverseTransform
| Constructor Detail |
|---|
public MapViewFrame()
public MapViewFrame(int pixelWidth,
int pixelHeight)
| Method Detail |
|---|
public Point pixelToPoint(int pixelX,
int pixelY)
public Point pointToPixel(double x,
double y)
public Point pointToPixel(double x,
double y,
int offsetX,
int offsetY)
public void pointsToPixels(DoubleBuffer coords)
public void pixelsToPoints(DoubleBuffer coords)
public Point getSWCorner()
public Point getNECorner()
public Point getSECorner()
public Point getNWCorner()
public boolean contains(double x,
double y)
public boolean firmlyContains(double x,
double y)
public void resetTransform()
public java.lang.Object clone()
clone in class java.lang.Objectpublic MapViewFrame copy()
public boolean equals(java.lang.Object nother)
equals in class java.lang.Objectpublic boolean sameSize(MapViewFrame nother)
public boolean samePixelSize(MapViewFrame nother)
public boolean sameScaleAndSize(MapViewFrame nother)
public int getPixelWidth()
public int getPixelHeight()
public double getWidth()
public double getHeight()
public java.lang.String toString()
toString in class java.lang.Object
public void placeCoordAtPixel(double locusX,
double locusY,
int locusPixelX,
int locusPixelY)
public double getCenterX()
public void setCenterX(double argCenterX)
argCenterX - Value to assign to this.centerXpublic double getCenterY()
public void setCenterY(double argCenterY)
argCenterY - Value to assign to this.centerYpublic double getScale()
public void setScale(double argScale)
argScale - Value to assign to this.scalepublic double getRotation()
public void setRotation(double argRotation)
argRotation - Value to assign to this.rotation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||