|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdevisor2.grid.options.GridControl
This is the convenience class for easier access to transformation options and everything that affects working with the domain. For easy access, there is a reference to the most recent instance of this class in the ControlCenter, which you can access as usual.
Field Summary | |
int |
eps
the global eps used in various methods |
GridToolkit |
gtk
|
java.awt.geom.AffineTransform |
invtrf
|
MainFrame |
mf
reference to the MainFrame of the application |
boolean |
snapon
|
java.awt.geom.AffineTransform |
trf
The grid transformation matrix and its inverse |
int |
vsnapoffx
|
int |
vsnapoffy
|
int |
vsnapx
snap variables |
int |
vsnapy
snap variables |
Boundary |
workingBoundary
The number of the selected boundary, default is the first boundary, created during domain creation |
Constructor Summary | |
GridControl(MainFrame uf,
ControlCenter uc)
|
Method Summary | |
java.awt.Rectangle |
boxFromScreenToWorld(java.awt.Rectangle box)
|
int[] |
fromScreenToWorld(int x,
int y)
|
int |
fromUserToWorld(double x)
|
int[] |
fromWorldToScreen(int x,
int y)
|
double |
fromWorldToUser(int x)
|
double |
getScaleX()
|
double |
getScaleY()
|
double |
runden(double d)
|
void |
setMainFrame(MainFrame uf,
ControlCenter uc)
|
void |
setTransformation()
|
int |
SingleFromScreenToWorld(int value)
a single value representing some length or some distance is transformed into world space |
int |
SingleFromWorldToScreen(int value)
a single value representing some length or some distance is transformed from world space |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public GridToolkit gtk
public Boundary workingBoundary
public MainFrame mf
public java.awt.geom.AffineTransform trf
public java.awt.geom.AffineTransform invtrf
public int vsnapx
public int vsnapy
public int vsnapoffx
public int vsnapoffy
public boolean snapon
public int eps
Constructor Detail |
public GridControl(MainFrame uf, ControlCenter uc)
Method Detail |
public void setMainFrame(MainFrame uf, ControlCenter uc)
public double runden(double d)
public void setTransformation()
public java.awt.Rectangle boxFromScreenToWorld(java.awt.Rectangle box)
public double fromWorldToUser(int x)
public int fromUserToWorld(double x)
public int[] fromScreenToWorld(int x, int y)
public int[] fromWorldToScreen(int x, int y)
public double getScaleX()
public double getScaleY()
public int SingleFromScreenToWorld(int value)
public int SingleFromWorldToScreen(int value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |