Class FLayoutFunctions
java.lang.Object
org.gvsig.app.project.documents.layout.FLayoutFunctions
- All Implemented Interfaces:
org.gvsig.tools.observer.Observable
Funciones utilizadas desde el Layout.
- Author:
- Vicente Caballero Navarro
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer()voidaddObserver(org.gvsig.tools.observer.Observer o) voiddeleteObserver(org.gvsig.tools.observer.Observer o) voidstatic Stringstatic doublescreenPixelToViewPortPixelRatio(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).voidsetScale(long scale) voidGestiona la herramienta de selección sobre el Mapa.voidsetViewPan(Point p1, Point p2) Pan sobre la vista del FFrameView.static Point2D.DoubletoMapPoint(Point2D pScreen, AffineTransform at1) Devuelve un punto real a partir de un punto en pixels sobre la vista.
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
FLayoutFunctions
Crea un nuevo FLayoutFunctions.- Parameters:
l- Referencia al Layout.
-
-
Method Details
-
setSelect
public void setSelect()Gestiona la herramienta de selección sobre el Mapa. -
setViewPan
Pan sobre la vista del FFrameView.- Parameters:
p1- Punto inicial del desplazamiento.p2- Punto final del desplazamiento.
-
setScale
public void setScale(long scale) -
addLayer
public void addLayer() -
toMapPoint
Devuelve un punto real a partir de un punto en pixels sobre la vista.- Parameters:
pScreen- Punto en pixels.at1- Matriz de transformación.- Returns:
- Punto real.
-
addObserver
public void addObserver(org.gvsig.tools.observer.Observer o) - Specified by:
addObserverin interfaceorg.gvsig.tools.observer.Observable
-
deleteObserver
public void deleteObserver(org.gvsig.tools.observer.Observer o) - Specified by:
deleteObserverin interfaceorg.gvsig.tools.observer.Observable
-
deleteObservers
public void deleteObservers()- Specified by:
deleteObserversin interfaceorg.gvsig.tools.observer.Observable
-
screenPixelToViewPortPixelRatio
public 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). For example if viewport image height is 500 and the frame actually needs 100 pixels in height (due to zooming) then this method returns 5.- Parameters:
lyt_panel-frame_height_cm- frame height in cmframe_vp_img_height- frame viewport image height (pixels)- Returns:
-
getLastMessage
-