public class FLayoutFunctions extends java.lang.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 java.lang.String |
getLastMessage(java.lang.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(java.awt.Point p1,
java.awt.Point p2)
Pan sobre la vista del FFrameView.
|
static java.awt.geom.Point2D.Double |
toMapPoint(java.awt.geom.Point2D pScreen,
java.awt.geom.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(java.awt.Point p1, java.awt.Point p2)
p1
- Punto inicial del desplazamiento.p2
- Punto final del desplazamiento.public void setScale(long scale)
public void addLayer()
public static java.awt.geom.Point2D.Double toMapPoint(java.awt.geom.Point2D pScreen, java.awt.geom.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)public static java.lang.String getLastMessage(java.lang.Throwable ex)