sk.uniba.euromath.gene
Class GeneDataProvider.RendererSite

java.lang.Object
  extended by sk.uniba.euromath.gene.GeneDataProvider.RendererSite
Enclosing class:
GeneDataProvider

public final class GeneDataProvider.RendererSite
extends Object

Represents the renderer with its environment.

Author:
Martin Vysny

Field Summary
 String id
          An unique integer id.
 IRenderer renderer
          The renderer instance.
 
Constructor Summary
GeneDataProvider.RendererSite(IRenderer renderer, CoordinatorInputKey input)
          Constructor.
 
Method Summary
 IChangeCollector getSource()
          Returns the source object.
 void init()
          Initializes (or reinitializes) the renderer.
 boolean isNew()
          Checks if this renderer is new or being reused.
 void setSource(Source source)
          Sets given source to the renderer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public final IRenderer renderer
The renderer instance.


id

public final String id
An unique integer id.

Constructor Detail

GeneDataProvider.RendererSite

public GeneDataProvider.RendererSite(IRenderer renderer,
                                     CoordinatorInputKey input)
Constructor.

Parameters:
renderer - the renderer instance.
input - the input path identifier.
Method Detail

setSource

public void setSource(Source source)
Sets given source to the renderer.

Parameters:
source - the source to set.

getSource

public IChangeCollector getSource()
Returns the source object.

Returns:
the source.

isNew

public boolean isNew()
Checks if this renderer is new or being reused.

Returns:
false if the renderer is not new and needs to reinitialize instead of initialization.

init

public void init()
          throws EditorException
Initializes (or reinitializes) the renderer.

Throws:
EditorException - if initialization fails.


Copyright © 2003-2006 null. All Rights Reserved.