com.iver.cit.gvsig.gui.layout
Class FLayoutDraw

java.lang.Object
  extended bycom.iver.cit.gvsig.gui.layout.FLayoutDraw

public class FLayoutDraw
extends java.lang.Object

Clase que implementa los métodos del Layout que dibujan sobre el Graphics.

Author:
Vicente Caballero Navarro

Constructor Summary
FLayoutDraw(Layout l)
          Crea un nuevo FLayoutDraw.
 
Method Summary
 void drawGrid(java.awt.Graphics2D g)
           
 void drawHandlers(java.awt.Graphics2D g, java.awt.Color color)
          Dibuja los handlers sobre los fframes que esten seleccionados.
 void drawLayout(java.awt.Graphics2D g2, java.awt.image.BufferedImage imgBase)
          Método para dibujar el Layout y modificar la matriz de transformación a partir del tamaño en pixels que tenga rect y el formato de papel seleccionado.
 void drawRectangle(java.awt.Graphics2D g)
          Dibuja sobre un Graphics2D el rectángulo que representa al folio.
 void drawRuler(java.awt.Graphics2D g, java.awt.Color color)
          Dibuja sobre el graphics2d las reglas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FLayoutDraw

public FLayoutDraw(Layout l)
Crea un nuevo FLayoutDraw.

Parameters:
l - Referencia al Layout.
Method Detail

drawLayout

public void drawLayout(java.awt.Graphics2D g2,
                       java.awt.image.BufferedImage imgBase)
                throws DriverException
Método para dibujar el Layout y modificar la matriz de transformación a partir del tamaño en pixels que tenga rect y el formato de papel seleccionado.

Parameters:
g2 -
imgBase - Si es null, estás imprimiendo. Si no, la usas para el código de optimización.
Throws:
DriverException

drawRectangle

public void drawRectangle(java.awt.Graphics2D g)
Dibuja sobre un Graphics2D el rectángulo que representa al folio.

Parameters:
g - Graphics2D

drawGrid

public void drawGrid(java.awt.Graphics2D g)

drawRuler

public void drawRuler(java.awt.Graphics2D g,
                      java.awt.Color color)
Dibuja sobre el graphics2d las reglas.

Parameters:
g - graphics2d sobre el que se dibuja.
color - Color de la regla.

drawHandlers

public void drawHandlers(java.awt.Graphics2D g,
                         java.awt.Color color)
Dibuja los handlers sobre los fframes que esten seleccionados.

Parameters:
g - Graphics sobre el que se dibuja.
color - Color de los Handlers.