org.eesgmbh.gimv.client.history
Class DefaultSetDomainBoundsEventHistoryTokenTransformer

java.lang.Object
  extended by org.eesgmbh.gimv.client.history.DefaultSetDomainBoundsEventHistoryTokenTransformer

public class DefaultSetDomainBoundsEventHistoryTokenTransformer
extends Object

Creates a representation of a SetDomainBoundsEvent as a history token and can also create an event based on a history token.

The two methods will produce or parse a history token value of the following form: left-bound,top-bound,right-bound,bottom-bound as floating point values separated with a '.'.


Constructor Summary
DefaultSetDomainBoundsEventHistoryTokenTransformer()
           
 
Method Summary
static SetDomainBoundsEvent toEvent(String boundsHistoryTokenValue)
          Creates an event from the history token value.
static String toHistoryTokenValue(SetDomainBoundsEvent setDomainBoundsEvent)
          Creates a history token value from an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSetDomainBoundsEventHistoryTokenTransformer

public DefaultSetDomainBoundsEventHistoryTokenTransformer()
Method Detail

toEvent

public static SetDomainBoundsEvent toEvent(String boundsHistoryTokenValue)
                                    throws UnparsableHistoryTokenException
Creates an event from the history token value.

Parameters:
boundsHistoryTokenValue -
Returns:
A SetDomainBoundsEvent
Throws:
UnparsableHistoryTokenException - In case the history token cannot be parsed

toHistoryTokenValue

public static String toHistoryTokenValue(SetDomainBoundsEvent setDomainBoundsEvent)
Creates a history token value from an event.

Parameters:
setDomainBoundsEvent - A SetDomainBoundsEvent
Returns:
a history token value


Copyright © 2010 - EES GmbH