com.iver.cit.gvsig.gui.wcs
Class WCSWizard

java.lang.Object
  extended byWizardPanel
      extended bycom.iver.cit.gvsig.gui.wcs.WCSWizard

public class WCSWizard
extends WizardPanel

Class implementing the WCSWizard. Clase que implementa el Wizard para coberturas WCS

Author:
Jaume Domínguez Faus
See Also:
Serialized Form

Constructor Summary
WCSWizard()
          This is the default constructor
 
Method Summary
 void addWizardListener(WizardListener listener)
          Adds the gvSIG's wizard listener
 void execute()
           
 WCSWizardDataSource getDataSource()
          Returns the Wizard's data source
 java.lang.String getFormat()
          Returns the selected format
 java.net.URL getHost()
          Returns the host typed in the host text field or null if nothing is typed or it is not a valid URL.
 FLayer getLayer()
          Creates a new layer to be passed to gvSIG.
 java.lang.String getLayerName()
          Returns the name of the coverage that appears in the TOC
 java.awt.geom.Rectangle2D getLayersRectangle()
          Returns the selected coverage's bounding box
static java.awt.geom.Rectangle2D getRectangle(java.awt.geom.Rectangle2D[] rects)
          Returns the rectangle that contains all the others Obtiene el rectángulo que contiene a todos los otros
 java.lang.String getSRS()
          returns the selected SRS
 void initWizard()
           
 void removeWizardListener(WizardListener listener)
          Removes the gvSIG's wizard listener
 void setDataSource(WCSWizardDataSource source)
          sets the wizard's data source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WCSWizard

public WCSWizard()
This is the default constructor

Method Detail

addWizardListener

public void addWizardListener(WizardListener listener)
Adds the gvSIG's wizard listener

Parameters:
listener -

removeWizardListener

public void removeWizardListener(WizardListener listener)
Removes the gvSIG's wizard listener

Parameters:
listener -

getDataSource

public WCSWizardDataSource getDataSource()
Returns the Wizard's data source

Returns:

setDataSource

public void setDataSource(WCSWizardDataSource source)
sets the wizard's data source

Parameters:
source -

getSRS

public java.lang.String getSRS()
returns the selected SRS

Returns:
String

getFormat

public java.lang.String getFormat()
Returns the selected format

Returns:
string

getLayersRectangle

public java.awt.geom.Rectangle2D getLayersRectangle()
Returns the selected coverage's bounding box

Returns:
Rectangle2D

getRectangle

public static java.awt.geom.Rectangle2D getRectangle(java.awt.geom.Rectangle2D[] rects)
Returns the rectangle that contains all the others Obtiene el rectángulo que contiene a todos los otros

Returns:
Rectangle2D

getHost

public java.net.URL getHost()
Returns the host typed in the host text field or null if nothing is typed or it is not a valid URL. Devuelve el host que está escrito en el cuadro de texto del host o null en caso de que no haya nada escrito o esté mal escrito

Returns:
URL del host

getLayerName

public java.lang.String getLayerName()
Returns the name of the coverage that appears in the TOC

Returns:
String

initWizard

public void initWizard()

execute

public void execute()

getLayer

public FLayer getLayer()
Creates a new layer to be passed to gvSIG. This method is automatically called by gvSIG and it must ensure that a layer is fully and correctly created or then return null.