|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.ExtentHistory
public class ExtentHistory
Field Summary | |
---|---|
static double |
DEFAULT_TOLERANCE_RATIO
|
protected WebExtent |
heldExtent
|
protected WebContext |
mcontext
|
protected WebMap |
mmap
|
protected Stack<WebExtent> |
nextStack
|
protected Stack<WebExtent> |
prevStack
|
protected double |
toleranceRatio
|
Constructor Summary | |
---|---|
ExtentHistory()
|
Method Summary | |
---|---|
void |
destroy()
The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in
this method. |
void |
doNext()
|
void |
doPrevious()
|
double |
getToleranceRatio()
|
WebContext |
getWebContext()
|
void |
init(WebContext context)
The initialization chores of attributes of a WebContext should be performed in this method. |
boolean |
isCanRedo()
|
boolean |
isCanUndo()
|
void |
push(WebExtent extent)
|
WebExtent |
redo()
|
void |
setToleranceRatio(double toleranceRatio)
|
WebExtent |
undo()
|
void |
update(WebContext context,
Object arg)
This method is called by the WebContext on its registered WebContextObserver s when users call the
refresh() methods on the context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_TOLERANCE_RATIO
protected Stack<WebExtent> prevStack
protected Stack<WebExtent> nextStack
protected WebContext mcontext
protected WebMap mmap
protected double toleranceRatio
protected WebExtent heldExtent
Constructor Detail |
---|
public ExtentHistory()
Method Detail |
---|
public void init(WebContext context)
WebContextInitialize
The initialization chores of attributes of a WebContext
should be performed in this method.
Typically this method is called by the WebContext
when the context itself is initialized. It is important
to note that this method is again called by the context when a GISResource
is dynamically added to or
removed from the context. Classes that implement this method should keep this in mind and adapt the method to react
to the callbacks in these circumstances as well.
A WebContext
attribute is usable only after this method has been called.
init
in interface WebContextInitialize
context
- WebContext
- the WebContextWebContext.init(WebContext)
,
WebContext.addResource(String, GISResource, int)
,
WebContext.removeResource(GISResource)
public void destroy()
WebContextInitialize
The cleaup chores (such as releasing held resources) of attributes of a WebContext
should be performed in
this method.
Typically this method is called by the WebContext
when the context itself is destroyed.
The WebContext
attribute is unusable after this method has been called.
destroy
in interface WebContextInitialize
WebContext.destroy()
public void update(WebContext context, Object arg)
WebContextObserver
This method is called by the WebContext
on its registered WebContextObserver
s when users call the
refresh()
methods on the context.
To setup an object to be updated by the context, one needs to use the
WebContext.addObserver(WebContextObserver)
to register itself with the context. All
context attributes are wired up to the WebContext
. When users change state on any of
the attributes and need to intimate other attributes of the context to react to the change they call either the
WebContext.refresh()
or WebContext.refresh(Object)
methods. The context in turns calls the WebContextObserver.update(WebContext, Object)
methods on all its registered
observers.
update
in interface WebContextObserver
context
- the WebContext
that has been refreshedarg
- the argument passed to the WebContext
's refresh(arg)
methodWebContext.refresh(Object)
,
WebContext.addObserver(WebContextObserver)
,
WebContext.removeObserver(WebContextObserver)
public void push(WebExtent extent)
public WebExtent undo()
public WebExtent redo()
public void doPrevious()
public void doNext()
public boolean isCanUndo()
public boolean isCanRedo()
public double getToleranceRatio()
public void setToleranceRatio(double toleranceRatio)
public WebContext getWebContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |