org.eesgmbh.gimv.client.event
Class SetMaxDomainBoundsEvent
java.lang.Object
com.google.gwt.event.shared.GwtEvent<H>
org.eesgmbh.gimv.client.event.FilteredDispatchGwtEvent<SetMaxDomainBoundsEventHandler>
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.
TYPE
public static GwtEvent.Type<SetMaxDomainBoundsEventHandler> TYPE
SetMaxDomainBoundsEvent
public SetMaxDomainBoundsEvent(Bounds bounds,
SetMaxDomainBoundsEventHandler... blockedHandlers)
- Constructor with a single
Bounds argument.
- Parameters:
bounds - if null, no constraining bounds will be specifiedblockedHandlers -
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