org.eesgmbh.gimv.client.event
Class SetMaxDomainBoundsEvent

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<H>
      extended by org.eesgmbh.gimv.client.event.FilteredDispatchGwtEvent<SetMaxDomainBoundsEventHandler>
          extended by org.eesgmbh.gimv.client.event.SetMaxDomainBoundsEvent

public class SetMaxDomainBoundsEvent
extends FilteredDispatchGwtEvent<SetMaxDomainBoundsEventHandler>

Used in a Gimv application to specify the maximum bounds within which an image can be rendered.

For example consider a time series chart, which can only offer data in certain date ranges.

Any number of Bounds can be specified, to define several areas. Normally just one is needed.

Constraining the bounds might not be neccessary in a particular application or it might only be necessary to constrain the bounds vertically or horizontally. Bounds objects, which will be passed into the constructor can be specified as such.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Field Summary
static GwtEvent.Type<SetMaxDomainBoundsEventHandler> TYPE
           
 
Constructor Summary
SetMaxDomainBoundsEvent(Bounds bounds, SetMaxDomainBoundsEventHandler... blockedHandlers)
          Constructor with a single Bounds argument.
 
Method Summary
 void addBounds(Bounds bounds)
           
 boolean containsHorizontally(double... values)
           
 boolean containsVertically(double... values)
           
 GwtEvent.Type<SetMaxDomainBoundsEventHandler> getAssociatedType()
           
 List<Bounds> getBounds()
           
protected  void onDispatch(SetMaxDomainBoundsEventHandler handler)
          Invoked when a handler is contained in the blockedHandlers list
 
Methods inherited from class org.eesgmbh.gimv.client.event.FilteredDispatchGwtEvent
dispatch, getBlockedHandlers, isBlockedHandler
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static GwtEvent.Type<SetMaxDomainBoundsEventHandler> TYPE
Constructor Detail

SetMaxDomainBoundsEvent

public SetMaxDomainBoundsEvent(Bounds bounds,
                               SetMaxDomainBoundsEventHandler... blockedHandlers)
Constructor with a single Bounds argument.

Parameters:
bounds - if null, no constraining bounds will be specified
blockedHandlers -
Method Detail

addBounds

public void addBounds(Bounds bounds)

containsHorizontally

public boolean containsHorizontally(double... values)

containsVertically

public boolean containsVertically(double... values)

getBounds

public List<Bounds> getBounds()

getAssociatedType

public GwtEvent.Type<SetMaxDomainBoundsEventHandler> getAssociatedType()
Specified by:
getAssociatedType in class GwtEvent<SetMaxDomainBoundsEventHandler>

onDispatch

protected void onDispatch(SetMaxDomainBoundsEventHandler handler)
Description copied from class: FilteredDispatchGwtEvent
Invoked when a handler is contained in the blockedHandlers list

Specified by:
onDispatch in class FilteredDispatchGwtEvent<SetMaxDomainBoundsEventHandler>


Copyright © 2010 - EES GmbH