|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.gui.layout.FLayoutUtilities
Clase que recoge métodos estáticos sobre el Layout.
Constructor Summary | |
FLayoutUtilities()
|
Method Summary | |
static double |
fromSheetDistance(double d,
java.awt.geom.AffineTransform at)
Pasa una distancia de coordenadas del folio a pixels. |
static java.awt.geom.Point2D.Double |
fromSheetPoint(java.awt.geom.Point2D.Double pSheet,
java.awt.geom.AffineTransform at)
Pasa de un punto en coordenadas del folio a pixels. |
static java.awt.geom.Rectangle2D.Double |
fromSheetRect(java.awt.geom.Rectangle2D.Double r,
java.awt.geom.AffineTransform at)
Pasa un rectángulo en coordenadas del folio a pixels. |
static long |
getScaleView(FMap map,
double h)
Devuelve un long representando a la escala en función de que unidad de medida se pase como parámetro. |
static boolean |
isEqualList(java.util.ArrayList n,
java.util.ArrayList l)
Devuelve true si las dos ArrayList que se le pasan como parametro son iguales. |
static boolean |
isPosible(java.awt.geom.Rectangle2D.Double r)
Cuando se dibuja sobre el graphics todo se tiene que situar en enteros y aquí lo que se comprueba es que si los valores que contiene el Rectangle2D, que toma como parámetro, supera los valores soportados por un entero. |
static void |
setRectGrid(java.awt.geom.Rectangle2D re,
double distX,
double distY,
java.awt.geom.AffineTransform at)
Obtiene el rectángulo ajustado al grid del layout. |
static double |
toSheetDistance(double d,
java.awt.geom.AffineTransform at)
Pasa una distancia en pixels a unidades del folio. |
static java.awt.geom.Point2D.Double |
toSheetPoint(java.awt.geom.Point2D.Double pScreen,
java.awt.geom.AffineTransform at)
Pasa un punto en pixels a coordenadas del folio. |
static java.awt.geom.Rectangle2D.Double |
toSheetRect(java.awt.geom.Rectangle2D r,
java.awt.geom.AffineTransform at)
Pasa un retángulo de pixels a coordenadas del folio. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FLayoutUtilities()
Method Detail |
public static boolean isEqualList(java.util.ArrayList n, java.util.ArrayList l)
n
- lista anteriorl
- lista actual
public static double toSheetDistance(double d, java.awt.geom.AffineTransform at)
d
- distancia en pixels.at
- Matriz de transformación.
public static double fromSheetDistance(double d, java.awt.geom.AffineTransform at)
d
- distancia en coordenadas de folio.at
- Matriz de transformación.
public static java.awt.geom.Point2D.Double toSheetPoint(java.awt.geom.Point2D.Double pScreen, java.awt.geom.AffineTransform at)
pScreen
- pixels.at
- Matriz de transformación.
public static java.awt.geom.Rectangle2D.Double toSheetRect(java.awt.geom.Rectangle2D r, java.awt.geom.AffineTransform at)
r
- rectángulo en coordenadas de pixels a coordenadas de folio.at
- Matriz de transformación.
public static java.awt.geom.Point2D.Double fromSheetPoint(java.awt.geom.Point2D.Double pSheet, java.awt.geom.AffineTransform at)
pSheet
- punto en coordenadas de folio.at
- Matriz de transformación.
public static java.awt.geom.Rectangle2D.Double fromSheetRect(java.awt.geom.Rectangle2D.Double r, java.awt.geom.AffineTransform at)
r
- rectángulo en coordenadas de folio.at
- Matriz de transformación.
public static void setRectGrid(java.awt.geom.Rectangle2D re, double distX, double distY, java.awt.geom.AffineTransform at)
re
- Rectángulo a ajustar.distX
- Distancia mínima en pixels de X.distY
- Distancia mínima en pixels de Y.at
- Matriz de transformación.public static boolean isPosible(java.awt.geom.Rectangle2D.Double r)
r
- Rectangle2D a comprobar si los valores que contiene no superan
a los que puede tener un entero.
public static long getScaleView(FMap map, double h)
map
- FMaph
- Rectángulo.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |