Class WFSAreaPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.gui.beans.panelGroup.panels.AbstractPanel
org.gvsig.wfs.gui.panels.AbstractWFSPanel
org.gvsig.wfs.gui.panels.WFSAreaPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Comparable<org.gvsig.gui.beans.panelGroup.panels.IPanel>, Accessible, org.gvsig.gui.beans.panelGroup.panels.IPanel, IWFSPanel

public class WFSAreaPanel extends AbstractWFSPanel
VERSIÓN PROVISIONAL ESTABLE This panel allows user to select the area he/she wants to get in the view. There are two options to do this: - Indicating the coordinates of the top-left and down-right corners - Selecting the area with some visual tool
Author:
Pablo Piqueras Bartolomé (p_queras@hotmail.com), Jorge Piera Llodrá (piera_jor@gva.es)
See Also:
  • Constructor Details

    • WFSAreaPanel

      public WFSAreaPanel()
      This method initializes
  • Method Details

    • clearCoordinates

      public void clearCoordinates()
      Removes all registered extents
    • setEnvelope

      public void setEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope)
      Sets the extent
      Parameters:
      java - .awt.geom.Rectangle2D
    • getArea

      public org.gvsig.fmap.geom.Geometry getArea()
      Gets the extent: a 'Rectangle2D.Double' object reference or 'null' if there is no data or if the data is invalid or user hasn't defined an area
      Returns:
      java.awt.geom.Rectangle2D or null if the data is invalid
    • setArea

      public void setArea(org.gvsig.fmap.geom.Geometry area)
    • getSrs

      public org.gvsig.crs.projection.lib.Projection getSrs()
    • setSrs

      public void setSrs(org.gvsig.crs.projection.lib.Projection srs)
    • areThereSomeCoordinatesWritten

      public boolean areThereSomeCoordinatesWritten()
      If there is some coordinate text field that has text, returns true; else returns false
      Returns:
      A boolean value
    • areThereSomeCoordinatesUndefined

      public boolean areThereSomeCoordinatesUndefined()
      If there is some coordinate text field that isn't undefined, returns true; else returns false
      Returns:
      A boolean value
    • updateWFSArea

      public void updateWFSArea()
      Updates the current area information with the area of the active view
    • initialize

      protected void initialize()
      Overrides:
      initialize in class AbstractWFSPanel
    • refresh

      public void refresh(WFSSelectedFeature layer)
      Description copied from interface: IWFSPanel
      Refresh the panel
      Specified by:
      refresh in interface IWFSPanel
      Overrides:
      refresh in class AbstractWFSPanel
      Parameters:
      layer - the selected layer