java.lang.Object
org.gvsig.app.project.documents.layout.fframes.FFrame
org.gvsig.app.project.documents.layout.fframes.FFrameBasic
All Implemented Interfaces:
Cloneable, IFFrame, 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 FFrameBasic extends FFrame
FFrame básica que contiene una FFrame de cualquier tipo.
Author:
Vicente Caballero Navarro
  • Field Details

  • Constructor Details

    • FFrameBasic

      public FFrameBasic()
  • Method Details

    • setRectangle

      public void setRectangle(Rectangle2D r)
    • 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.
    • getNameFFrame

      public String getNameFFrame()
      Description copied from interface: IFFrame
      Devuelve el nombre que representa al tipo de FFrame.
      Returns:
      nombre del elemento.
      See Also:
    • print

      public void print(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry geom, org.gvsig.compat.print.PrintAttributes printingProperties)
      See Also:
      • invalid reference
        org.gvsig.app.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D, java.awt.geom.AffineTransform)
    • getFframe

      public IFFrame getFframe()
    • setFframe

      public void setFframe(IFFrame fframe)
    • getFframeGraphics

      public FFrameGraphics getFframeGraphics()
    • setFframeGraphics

      public void setFframeGraphics(FFrameGraphics fframeGraphics)
    • drawHandlers

      public void drawHandlers(Graphics2D g)
      Description copied from class: FFrame
      Dibuja los handlers sobre el boundingBox en el graphics que se pasa como par�metro.
      Specified by:
      drawHandlers in interface IFFrame
      Overrides:
      drawHandlers in class FFrame
      Parameters:
      g - Graphics sobre el que dibujar.
    • clone

      public IFFrame clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class FFrame
      Throws:
      CloneNotSupportedException
    • contains

      public boolean contains(Point2D.Double p)
    • drawDraft

      public void drawDraft(Graphics2D g)
      Description copied from class: FFrame
      Dibuja sobre el graphics el rect�ngulo del fframe en modo borrador.
      Specified by:
      drawDraft in interface IFFrame
      Overrides:
      drawDraft in class FFrame
      Parameters:
      g - Graphics so bre el que dibujar.
    • drawEmpty

      public void drawEmpty(Graphics2D g)
      Description copied from class: FFrame
      Draws the FFrame rectangle on the provided Graphics2D, only showing the FFrame name on an empty rectangle.
      Overrides:
      drawEmpty in class FFrame
      Parameters:
      g - The graphics to draw on
    • drawSymbolTag

      public void drawSymbolTag(Graphics2D g)
      Description copied from class: FFrame
      Dibuja sobre el graphics que se pasa como par�metro el icono que representa que contiene un tag.
      Specified by:
      drawSymbolTag in interface IFFrame
      Overrides:
      drawSymbolTag in class FFrame
      Parameters:
      g - Graphics sobre el que dibujar el icono.
    • getBoundBox

      public Rectangle2D.Double getBoundBox()
      Description copied from class: FFrame
      Returns the bounding box in centimeters of this FFrame, using paper coordinates
      Specified by:
      getBoundBox in interface IFFrame
      Overrides:
      getBoundBox in class FFrame
      Returns:
      The bounding box of this FFrame, measured in centimeters.
    • getBoundingBox

      public Rectangle2D.Double getBoundingBox(AffineTransform at)
      Description copied from class: FFrame
      Returns the bounding box (in pixels) of this FFrame, based on the provided AffineTransform. If the AffineTransform is null, it returns the last calculated bounding box.
      Specified by:
      getBoundingBox in interface IFFrame
      Overrides:
      getBoundingBox in class FFrame
      Parameters:
      at - Affine transform to apply to the sheet coordinates to get the bounding box in pixels.
      Returns:
      Rectangle representing the bounding box (in pixels) of this FFrame
    • getContains

      public int getContains(Point2D.Double p)
    • getLevel

      public int getLevel()
      Description copied from class: FFrame
      Devuelve el nivel en el que se encuentra el FFrame.
      Specified by:
      getLevel in interface IFFrame
      Overrides:
      getLevel in class FFrame
      Returns:
      nivel
    • getMovieRect

      public Rectangle2D getMovieRect(int difx, int dify)
      Description copied from class: FFrame
      Devuelve el rect�ngulo a partir del desplazamiento en el eje x y el desplazamiento en el eje y.
      Specified by:
      getMovieRect in interface IFFrame
      Overrides:
      getMovieRect in class FFrame
      Parameters:
      difx - desplazamiento sobre el eje x.
      dify - desplazamiento sobre el eje y.
      Returns:
      rect�ngulo modificado en funci�n del desplazamiento realizado.
    • getMovieRect

      public Rectangle2D getMovieRect(int difx, int dify, boolean prop)
      Description copied from interface: IFFrame
      Devuelve el rectángulo a partir del desplazamiento en el eje x y el desplazamiento en el eje y.
      Specified by:
      getMovieRect in interface IFFrame
      Overrides:
      getMovieRect in class FFrame
      Parameters:
      difx - desplazamiento sobre el eje x.
      dify - desplazamiento sobre el eje y.
      prop - true para un desplazamiento proporcional
      Returns:
      rectángulo modificado en función del desplazamiento realizado.
    • getName

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

      public double getRotation()
      Description copied from class: FFrame
      Gets the rotation of the frame, measured in arc degrees
      Specified by:
      getRotation in interface IFFrame
      Overrides:
      getRotation in class FFrame
      Returns:
      Rotation of the frame
    • getSelected

      public int getSelected()
      Description copied from class: FFrame
      Returns an integer representing the type of selection applied to the FFrame. Valid values are: IFFrame.NOSELECT, IFFrame.NO, IFFrame.N, IFFrame.NE, IFFrame.O, IFFrame.RECT, IFFrame.E, IFFrame.SO, IFFrame.S, IFFrame.SE.
      Specified by:
      getSelected in interface IFFrame
      Overrides:
      getSelected in class FFrame
      Returns:
      The type of selection that has been applied
    • getTag

      public String getTag()
      Description copied from class: FFrame
      Devuelve el tag.
      Specified by:
      getTag in interface IFFrame
      Overrides:
      getTag in class FFrame
      Returns:
      tag.
    • intersects

      public boolean intersects(Rectangle2D rv, Rectangle2D r)
      Description copied from class: FFrame
      Devuelve true si el rect�ngulo primero es null o si es distinto de null e intersecta.
      Specified by:
      intersects in interface IFFrame
      Overrides:
      intersects in class FFrame
      Parameters:
      rv - Rect�ngulo
      r - Rect�ngulo
      Returns:
      True si intersecta o es null.
    • setBoundBox

      public void setBoundBox(Rectangle2D r)
      Description copied from class: FFrame
      Sets the bounding box in centimeters of this FFrame, using paper coordinates.
      Specified by:
      setBoundBox in interface IFFrame
      Overrides:
      setBoundBox in class FFrame
      Parameters:
      r - Rectangle in centimeters
    • setLevel

      public void setLevel(int l)
      Description copied from class: FFrame
      Inserta el nivel al que se encuentra el FFrame.
      Specified by:
      setLevel in interface IFFrame
      Overrides:
      setLevel in class FFrame
      Parameters:
      l - entero que refleja el nivel del FFrame.
    • setNum

      public void setNum(int i)
      Description copied from class: FFrame
      Rellena con el n�mero de FFrame.
      Specified by:
      setNum in interface IFFrame
      Overrides:
      setNum in class FFrame
      Parameters:
      i - n�mero
    • setRotation

      public void setRotation(double rotation)
      Description copied from class: FFrame
      Sets the rotation of the frame, measured in arc degrees
      Specified by:
      setRotation in interface IFFrame
      Overrides:
      setRotation in class FFrame
      Parameters:
      rotation - Rotation to apply to the frame
    • setSelected

      public void setSelected(boolean b)
      Description copied from class: FFrame
      Sets the selected status of the frame.
      Specified by:
      setSelected in interface IFFrame
      Overrides:
      setSelected in class FFrame
      Parameters:
      b - true to select the frame, false to unselect it
    • setSelected

      public void setSelected(Point2D p, MouseEvent e)
      Description copied from class: FFrame
      Sets the type of selection performed on the frame, based on the position of the provided Point compared with the boundaries of the FFrame. This method is usually called when the user clicks on the FFrame
      Specified by:
      setSelected in interface IFFrame
      Overrides:
      setSelected in class FFrame
      Parameters:
      p - Point which should be evaluated to establish if the FFrame must be selected or not
      e - Mouse event that triggered this method call
    • setTag

      public void setTag(String s)
      Description copied from class: FFrame
      Rellena el tag del FFrame.
      Specified by:
      setTag in interface IFFrame
      Overrides:
      setTag in class FFrame
      Parameters:
      s - String que representa el valor a guardar en el tag.
    • updateRect

      public void updateRect(Rectangle2D r, AffineTransform at)
      Description copied from class: FFrame
      Actualiza el BoundBox del FFrame a partir de su rect�ngulo en pixels y la matriz de transformaci�n.
      Specified by:
      updateRect in interface IFFrame
      Overrides:
      updateRect in class FFrame
      Parameters:
      r - Rect�ngulo.
      at - Matriz de transformaci�n.
    • 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 FFrame
      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 FFrame
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException