org.esa.beam.visat
Class AbstractVisatPlugIn

java.lang.Object
  extended by org.esa.beam.visat.AbstractVisatPlugIn
All Implemented Interfaces:
VisatPlugIn
Direct Known Subclasses:
StatusBarPosDisplayVPI, VersionCheckerVPI

public abstract class AbstractVisatPlugIn
extends Object
implements VisatPlugIn

An abstract implementation of the VisatPlugIn interface.


Constructor Summary
protected AbstractVisatPlugIn()
           
 
Method Summary
 URL getResource(String resourcePath)
          Finds a resource with a given path.
 ImageIcon loadImageIcon(String resourcePath)
          Load an image icon from the given resource path.
 void stop(VisatApp visatApp)
          Called the application shuts down.
 void updateComponentTreeUI()
          Tells a plug-in to update its component tree (if any) since the Java look-and-feel has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.esa.beam.visat.VisatPlugIn
start
 

Constructor Detail

AbstractVisatPlugIn

protected AbstractVisatPlugIn()
Method Detail

stop

public void stop(VisatApp visatApp)
Called the application shuts down.

Clients shall override this method in order to clean-up the resources they have allocated. This default implementation does nothing.

Specified by:
stop in interface VisatPlugIn
Parameters:
visatApp - a reference to the application instance.

loadImageIcon

public ImageIcon loadImageIcon(String resourcePath)
Load an image icon from the given resource path.

Parameters:
resourcePath - name of the desired resource
Returns:
the image icon object or null, if no such can be found

getResource

public URL getResource(String resourcePath)
Finds a resource with a given path. This method returns null if no resource with this name is found. The rules for searching resources associated with a given class are implemented by the defining class loader of this plug-in.

Parameters:
resourcePath - name of the desired resource
Returns:
a java.net.URL object or null, if no such can be found

updateComponentTreeUI

public void updateComponentTreeUI()
Tells a plug-in to update its component tree (if any) since the Java look-and-feel has changed.

If a plug-in uses top-level containers such as dialogs or frames, implementors of this method should invoke SwingUtilities.updateComponentTreeUI() on such containers.

The default implementation does nothing.

Specified by:
updateComponentTreeUI in interface VisatPlugIn


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.