info.aduna.clustermap.config
Class ClusterMapConfigurator

java.lang.Object
  extended by info.aduna.clustermap.config.ClusterMapConfigurator

public class ClusterMapConfigurator
extends Object

ClusterMapConfigurator is able to manage the properties of a ClusterMap and its contained components through a single point of access.

All properties are set using key-value or key-subject-value tuples specified to the set method. The keys and some symbolic values are defined in ClusterMapConstants.

Subjects, if specified, are typically data model objects such as Classifications and Clusters. If not applicable, null can be specified.

The settings only become activated when the apply method is invoked. Settings are applied only once: only the properties that are specified after an invocation of the apply method are performed in the next invocation of the apply method. When a key is used twice in the set method inbetween invocations of the apply method, only the last value is applied.


Field Summary
static String KEY_RENDERING_WATERMARK_TEXT
           
 
Constructor Summary
ClusterMapConfigurator(ClusterMap map)
          Creates a new ClusterMapConfigurator that will configure the settings of the specified ClusterMap.
 
Method Summary
 void apply()
           
 Object get(String key, Object subject)
           
 Object getDefault(String key, Object subject)
           
 Object parse(String key, Object subject, Object value)
           
 void set(String key, Object subject, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_RENDERING_WATERMARK_TEXT

public static final String KEY_RENDERING_WATERMARK_TEXT
See Also:
Constant Field Values
Constructor Detail

ClusterMapConfigurator

public ClusterMapConfigurator(ClusterMap map)
Creates a new ClusterMapConfigurator that will configure the settings of the specified ClusterMap.

Method Detail

set

public void set(String key,
                Object subject,
                Object value)
         throws IllegalArgumentException
Throws:
IllegalArgumentException

apply

public void apply()

parse

public Object parse(String key,
                    Object subject,
                    Object value)
             throws IllegalArgumentException
Throws:
IllegalArgumentException

get

public Object get(String key,
                  Object subject)
           throws IllegalArgumentException
Throws:
IllegalArgumentException

getDefault

public Object getDefault(String key,
                         Object subject)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 1997-2008 Aduna. All Rights Reserved.