All Implemented Interfaces:
Cloneable, IFFrame, IFFrameViewDependence, org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.observer.Observable, org.gvsig.tools.persistence.Persistent

public class FFrameLegend extends AbstractFFrameViewDependence implements IFFrameViewDependence
FFrame para introducir una leyenda en el Layout.
Author:
Vicente Caballero Navarro
  • Field Details

  • Constructor Details

    • FFrameLegend

      public FFrameLegend()
  • Method Details

    • setQuality

      public void setQuality(int q)
      Rellena la calidad que se quiere aplicar.
      Parameters:
      q - entero que representa la calidad a aplicar.
    • getQuality

      public int getQuality()
      Devuelve un entero que representa la calidad que está seleccionada.
      Returns:
      tipo de calidad selccionada.
    • getViewing

      public int getViewing()
      Devuelve un entero que representa la forma en que se actualiza la vista.
      Returns:
      forma que se actualiza la vista.
    • setViewing

      public void setViewing(int v)
      Rellena la forma de actualizar la vista.
      Parameters:
      v - entero que representa la forma de actualizar la vista.
    • draw

      public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, BufferedImage imgBase)
      Método que dibuja sobre el graphics que se le pasa como parámetro, según la transformada afin que se debe de aplicar y el rectángulo que se debe de dibujar.
      Specified by:
      draw in interface IFFrame
      Specified by:
      draw in class FFrame
      Parameters:
      g - Graphics
      at - Transformada afin.
      rv - rectángulo sobre el que hacer un clip.
      imgBase - Imagen para acelerar el dibujado.
    • toFFrames

      public void toFFrames(LayoutContext layout)
      Transforma el FFrameLegend en diferentes FFrameSymbol y FFrameText.
      Parameters:
      layout - Layout sobre el que añadir los FFrame nuevos y sobre el que elimnar el FFrameLegend anterior.
    • setFont

      public void setFont(Font f)
      Rellena la fuente a utilizar al dibujar los String sobre el graphics.
      Parameters:
      f - Font.
    • getFont

      public Font getFont()
      Devuelve la fuente que esta utilizando.
      Returns:
      Font.
    • getNameFFrame

      public String getNameFFrame()
      Description copied from interface: IFFrame
      Devuelve el nombre que representa al tipo de FFrame.
      Specified by:
      getNameFFrame in interface IFFrame
      Returns:
      nombre del elemento.
    • getName

      public String getName()
      Description copied from interface: IFFrame
      Devuelve el nombre que representa al fframe.
      Specified by:
      getName in interface IFFrame
      Returns:
      String nombre del FFrame.
    • print

      public void print(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry geom, org.gvsig.compat.print.PrintAttributes properties)
      Specified by:
      print in interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
    • initialize

      public void initialize()
    • setNameLayers

      public void setNameLayers(List nameLayers)
    • setAreVisible

      public void setAreVisible(List areVisible)
    • getNameLayers

      public List getNameLayers()
    • getAreVisible

      public List getAreVisible()
    • registerPersistent

      public static void registerPersistent()
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class AbstractFFrameViewDependence
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class AbstractFFrameViewDependence
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException