|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.MapBean.RotationHelper
protected class MapBean.RotationHelper
Method Summary | ||
---|---|---|
void |
dispose()
|
|
java.awt.Graphics |
getGraphics()
|
|
java.awt.geom.AffineTransform |
getInverseRotationTransform()
|
|
Projection |
getProjection()
|
|
|
inverse(double x,
double y,
T ret)
Performs a projection.inverse operation that also takes into account rotation. |
|
java.awt.geom.Point2D |
inverseTransform(java.awt.geom.Point2D src,
java.awt.geom.Point2D dst)
Returns dst, the unrotated pixel location of the map. |
|
java.awt.Shape |
inverseTransform(java.awt.Shape shape)
Returns a transformed version of the Shape, unrotated into the projected pixel space of the layer OMGraphics. |
|
boolean |
isStillNeeded(double az)
|
|
void |
paintChildren(java.awt.Graphics g,
java.awt.Rectangle clip)
|
|
void |
paintPainters(java.awt.Graphics g)
|
|
void |
updateAngle(double angle)
|
|
protected boolean |
updateForBufferDimensions(Projection proj)
We're going to try to do buffering with a image that will cover all of the corners when the map is rotated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected boolean updateForBufferDimensions(Projection proj)
proj
- the projection to use to create the current image buffer
public void updateAngle(double angle)
public boolean isStillNeeded(double az)
az
- angle to test against
public Projection getProjection()
public void paintChildren(java.awt.Graphics g, java.awt.Rectangle clip)
public void paintPainters(java.awt.Graphics g)
public java.awt.Graphics getGraphics()
public <T extends java.awt.geom.Point2D> T inverse(double x, double y, T ret)
x
- pixel xy
- pixel yret
- T in the coordinate space of projection.
public java.awt.geom.Point2D inverseTransform(java.awt.geom.Point2D src, java.awt.geom.Point2D dst)
src
- the pixel pointdst
-
public java.awt.Shape inverseTransform(java.awt.Shape shape)
shape
- to transform
public java.awt.geom.AffineTransform getInverseRotationTransform()
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |