public class FLayoutFunctions extends Object implements Observable
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
Constructor and Description |
---|
FLayoutFunctions(LayoutPanel layoutPanel)
Crea un nuevo FLayoutFunctions.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayer() |
void |
addObserver(Observer o) |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
static String |
getLastMessage(Throwable ex) |
static double |
screenPixelToViewPortPixelRatio(LayoutPanel lyt_panel,
double frame_height_cm,
int frame_vp_img_height)
Gets the proportion between the number of pixels used
on the screen (physical pixels) and the "logical" pixels
used in the viewport of a frame (imageHeight, etc).
|
void |
setScale(long scale) |
void |
setSelect()
Gestiona la herramienta de selección sobre el Mapa.
|
void |
setViewPan(Point p1,
Point p2)
Pan sobre la vista del FFrameView.
|
static Point2D.Double |
toMapPoint(Point2D pScreen,
AffineTransform at1)
Devuelve un punto real a partir de un punto en pixels sobre la vista.
|
public FLayoutFunctions(LayoutPanel layoutPanel)
l
- Referencia al Layout.public void setSelect()
public void setViewPan(Point p1, Point p2)
p1
- Punto inicial del desplazamiento.p2
- Punto final del desplazamiento.public void setScale(long scale)
public void addLayer()
public static Point2D.Double toMapPoint(Point2D pScreen, AffineTransform at1)
pScreen
- Punto en pixels.at1
- Matriz de transformación.public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public static double screenPixelToViewPortPixelRatio(LayoutPanel lyt_panel, double frame_height_cm, int frame_vp_img_height)
lyt_panel
- frame_height_cm
- frame height in cmframe_vp_img_height
- frame viewport image height (pixels)