org.gvsig.raster.algorithm
Interface BasicAPISwingPanel


public interface BasicAPISwingPanel

Interface for panels which build an algorithm using the parameters selected by the user

Author:
Nacho Brodin (nachobrodin@gmail.com)

Method Summary
 void addListener(java.util.EventListener listener)
          Adds a listener to the components of a panel.
 javax.swing.JComponent getComponent()
          Gets the main component
 int getComponentIDByObject(java.lang.Object obj)
          Gets the component ID using the object of this component.
 java.lang.Object getResult()
          Gets the process loaded with the data selected in the interface
 void initialize()
          Initialization actions.
 

Method Detail

addListener

void addListener(java.util.EventListener listener)
Adds a listener to the components of a panel. The EventListener could be any listener.

Parameters:
listener -

getComponent

javax.swing.JComponent getComponent()
Gets the main component

Returns:

getComponentIDByObject

int getComponentIDByObject(java.lang.Object obj)
Gets the component ID using the object of this component. This is useful to know what button has been pressed in a panel. The IDs should be defined in the component API.

Parameters:
obj -
Returns:

getResult

java.lang.Object getResult()
                           throws java.lang.Exception
Gets the process loaded with the data selected in the interface

Returns:
Throws:
java.lang.Exception

initialize

void initialize()
Initialization actions.



Copyright © 2014 gvSIG Association. All Rights Reserved.