All Implemented Interfaces:
Cloneable, IFFrame, IFFrameGroupSelectable, IFFrameUseProject, 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 FFrameTable extends FFrameGroup implements IFFrameGroupSelectable
DOCUMENT ME!
Author:
Vicente Caballero Navarro
  • Field Details

  • Constructor Details

    • FFrameTable

      public FFrameTable()
  • Method Details

    • draw

      public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, BufferedImage imgBase)
      DOCUMENT ME!
      Specified by:
      draw in interface IFFrame
      Overrides:
      draw in class FFrameGroup
      Parameters:
      g - DOCUMENT ME!
      at - DOCUMENT ME!
      rv - DOCUMENT ME!
      imgBase - DOCUMENT ME!
    • drawBox

      public void drawBox(Rectangle2D r, Graphics2D g)
      DOCUMENT ME!
      Parameters:
      r - DOCUMENT ME!
      g - DOCUMENT ME!
    • print

      public void print(Graphics2D g, AffineTransform at) throws org.gvsig.fmap.dal.exception.ReadException
      DOCUMENT ME!
      Parameters:
      g - DOCUMENT ME!
      at - DOCUMENT ME!
    • getNameFFrame

      public String getNameFFrame()
      DOCUMENT ME!
      Specified by:
      getNameFFrame in interface IFFrame
      Overrides:
      getNameFFrame in class FFrameGroup
      Returns:
      DOCUMENT ME!
      See Also:
    • getName

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

      public int getNumColumns()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • setNumColumns

      public void setNumColumns(int numColumns)
      DOCUMENT ME!
      Parameters:
      numColumns - DOCUMENT ME!
    • getNumRows

      public int getNumRows()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • setNumRows

      public void setNumRows(int numRows)
      DOCUMENT ME!
      Parameters:
      numRows - DOCUMENT ME!
    • calculateTable

      public void calculateTable(Rectangle2D r)
    • selectFFrame

      public void selectFFrame(boolean b)
      Specified by:
      selectFFrame in interface IFFrameGroupSelectable
    • joinFFrame

      public IFFrame joinFFrame()
      Specified by:
      joinFFrame in interface IFFrameGroupSelectable
    • 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
    • contains

      public boolean contains(Point2D p)
      Description copied from class: FFrame
      Devuelve true, si el punto que se pasa como par�metro esta contenido dentro del boundingbox del fframe.
      Specified by:
      contains in interface IFFrame
      Overrides:
      contains in class FFrame
      Parameters:
      p - punto a comprobar en pixels.
      Returns:
      true si el punto esta dentro del boundingbox.
    • 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.
    • getContains

      public int getContains(Point2D p)
      Description copied from interface: IFFrame
      Checks whether the provided point is contained within the FFrame rectangle.
      Specified by:
      getContains in interface IFFrame
      Overrides:
      getContains in class FFrame
      Parameters:
      p - Point to compare
      Returns:
      An integer representing the topologic relation of the point and the frame rectangle. It can be one of: IFFrame.NOSELECT, IFFrame.NO, IFFrame.N, IFFrame.NE, IFFrame.O, IFFrame.RECT, IFFrame.E, IFFrame.SO, IFFrame.S, IFFrame.SE.
    • 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.
    • getMovieRectGroup

      public Rectangle2D getMovieRectGroup(int difX, int difY)
      Specified by:
      getMovieRectGroup in interface IFFrameGroupSelectable
    • getContainsGroup

      public int getContainsGroup(Point2D p)
      Specified by:
      getContainsGroup in interface IFFrameGroupSelectable
    • drawHandlersGroup

      public void drawHandlersGroup(Graphics2D g)
      Dibuja los handlers sobre el boundingBox en el graphics que se pasa como par�metro.
      Specified by:
      drawHandlersGroup in interface IFFrameGroupSelectable
      Parameters:
      g - Graphics sobre el que dibujar.
    • containsGroup

      public boolean containsGroup(Point2D p)
      Specified by:
      containsGroup in interface IFFrameGroupSelectable
    • setSelectedGroup

      public void setSelectedGroup(Point2D p, MouseEvent e)
      Specified by:
      setSelectedGroup in interface IFFrameGroupSelectable
    • getSelectedGroup

      public int getSelectedGroup()
      Specified by:
      getSelectedGroup in interface IFFrameGroupSelectable
    • getMapCursor

      public Image getMapCursor(Point2D p)
      Description copied from class: FFrame
      Devuelve el Cursor adecuado seg�n como est� contenido el punto, si es para desplazamiento, o cambio de tama�o.
      Specified by:
      getMapCursor in interface IFFrame
      Overrides:
      getMapCursor in class FFrame
      Parameters:
      p - punto a comprobar.
      Returns:
      Cursor adecuado a la posici�n.
    • getMapCursorGroup

      public Image getMapCursorGroup(Point2D p)
      Specified by:
      getMapCursorGroup in interface IFFrameGroupSelectable
    • initializeIcons

      public static void initializeIcons()
      Initilizes the static icons
    • 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 FFrameGroup
      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 FFrameGroup
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException