|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectendrov.windowLineage.HierarchicalPainter.Camera
public static class HierarchicalPainter.Camera
Location of camera and current zoom
Field Summary | |
---|---|
double |
cameraX
|
double |
cameraY
|
double |
zoomX
|
double |
zoomY
|
Constructor Summary | |
---|---|
HierarchicalPainter.Camera()
|
Method Summary | |
---|---|
void |
panCorrespondenceX(double screenX,
double worldX)
Make screen coordinate correspond to world coordinate by moving camera |
void |
panCorrespondenceY(double screenY,
double worldY)
Make screen coordinate correspond to world coordinate by moving camera |
double |
scaleScreenDistX(double x)
How much to add to screenX given distance in screen space |
double |
scaleScreenDistY(double y)
|
double |
scaleWorldDistX(double x)
How much to add to screenX given distance in world space |
double |
scaleWorldDistY(double y)
|
void |
showArea(HierarchicalPainter.BoundingBox bb,
int width,
int height)
Set camera so that it covers given area |
int |
toScreenX(double x)
|
int |
toScreenY(double y)
|
java.lang.String |
toString()
|
double |
toWorldX(double x)
|
double |
toWorldY(double y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double cameraX
public double cameraY
public double zoomX
public double zoomY
Constructor Detail |
---|
public HierarchicalPainter.Camera()
Method Detail |
---|
public int toScreenX(double x)
public int toScreenY(double y)
public double toWorldX(double x)
public double toWorldY(double y)
public double scaleScreenDistX(double x)
public double scaleScreenDistY(double y)
public double scaleWorldDistX(double x)
public double scaleWorldDistY(double y)
public java.lang.String toString()
toString
in class java.lang.Object
public void showArea(HierarchicalPainter.BoundingBox bb, int width, int height)
public void panCorrespondenceX(double screenX, double worldX)
public void panCorrespondenceY(double screenY, double worldY)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |