org.esa.beam.framework.ui.layer
Class SimpleLayerSource

java.lang.Object
  extended by org.esa.beam.framework.ui.layer.SimpleLayerSource
All Implemented Interfaces:
LayerSource

public class SimpleLayerSource
extends Object
implements LayerSource

This layer source uses the given layer type to construct new layer.

Note: This API is not public yet and may significantly change in the future. Use it at your own risk.

Since:
BEAM 4.6
Version:
$ Revision $ $ Date $
Author:
Marco Peters

Constructor Summary
SimpleLayerSource(com.bc.ceres.glayer.LayerType layerType)
           
 
Method Summary
 void cancel(LayerSourcePageContext pageContext)
          Aborts the operation of this layer source.
 boolean canFinish(LayerSourcePageContext pageContext)
          Checks whether this layer source can perform its finishing method without further information.
 AbstractLayerSourceAssistantPage getFirstPage(LayerSourcePageContext pageContext)
          Returns the first page (of possible many) of the assistant that belongs to this layer source.
 boolean hasFirstPage()
           
 boolean isApplicable(LayerSourcePageContext pageContext)
          Check if this layer source is applicable to the current context.
 boolean performFinish(LayerSourcePageContext pageContext)
          Adds one or more layers to the given context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLayerSource

public SimpleLayerSource(com.bc.ceres.glayer.LayerType layerType)
Method Detail

isApplicable

public boolean isApplicable(LayerSourcePageContext pageContext)
Description copied from interface: LayerSource
Check if this layer source is applicable to the current context.

Specified by:
isApplicable in interface LayerSource
Parameters:
pageContext - The current context.
Returns:
true, if this layer source is applicable.

hasFirstPage

public boolean hasFirstPage()
Specified by:
hasFirstPage in interface LayerSource
Returns:
true, if this layer source has assistant pages.

getFirstPage

public AbstractLayerSourceAssistantPage getFirstPage(LayerSourcePageContext pageContext)
Description copied from interface: LayerSource
Returns the first page (of possible many) of the assistant that belongs to this layer source. The given context can be interrogated to decide which page to return.

Specified by:
getFirstPage in interface LayerSource
Parameters:
pageContext - The current context.
Returns:
the first assistant page.

canFinish

public boolean canFinish(LayerSourcePageContext pageContext)
Description copied from interface: LayerSource
Checks whether this layer source can perform its finishing method without further information.

Specified by:
canFinish in interface LayerSource
Parameters:
pageContext - The current context.
Returns:
true, if finish can be called.

performFinish

public boolean performFinish(LayerSourcePageContext pageContext)
Description copied from interface: LayerSource
Adds one or more layers to the given context

Specified by:
performFinish in interface LayerSource
Parameters:
pageContext - The current context.
Returns:
true, if the method completed successfully

cancel

public void cancel(LayerSourcePageContext pageContext)
Description copied from interface: LayerSource
Aborts the operation of this layer source. This method is responsible for freeing all resources acquired by the layer source.

Specified by:
cancel in interface LayerSource
Parameters:
pageContext - The current context.


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