public interface GLMapItem2
Modifier and Type | Interface and Description |
---|---|
static interface |
GLMapItem2.OnBoundsChangedListener |
static interface |
GLMapItem2.OnVisibleChangedListener |
Modifier and Type | Method and Description |
---|---|
void |
addBoundsListener(GLMapItem2.OnBoundsChangedListener l) |
void |
addVisibleListener(GLMapItem2.OnVisibleChangedListener l) |
void |
getBounds(MutableGeoBounds bnds) |
double |
getMinDrawResolution() |
java.lang.Object |
getOpaque()
Returns the data previously set via the call to
setOpaque(Object) . |
MapItem |
getSubject() |
double |
getZOrder() |
boolean |
isVisible() |
void |
removeBoundsListener(GLMapItem2.OnBoundsChangedListener l) |
void |
removeVisibleListener(GLMapItem2.OnVisibleChangedListener l) |
void |
setOpaque(java.lang.Object opaque)
Sets opaque data that can be used by the renderer.
|
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
MapItem getSubject()
void setOpaque(java.lang.Object opaque)
GLMapItem
should invoke this method.
This method serves as a convenience to allow the render to store application specific data with an item.
opaque
- An objectjava.lang.Object getOpaque()
setOpaque(Object)
. This method
should really only be invoked by the object that set the opaque data.
This method serves as a convenience to allow the render to obtain the application specific data that has been previously associated with an item.
void startObserving()
Invoking this method should generally refresh the state of the item.
This method may not be invoked on the GL context thread.
void stopObserving()
startObserving()
.
This method may not be invoked on the GL context thread.
boolean isVisible()
double getZOrder()
double getMinDrawResolution()
void addBoundsListener(GLMapItem2.OnBoundsChangedListener l)
void removeBoundsListener(GLMapItem2.OnBoundsChangedListener l)
void addVisibleListener(GLMapItem2.OnVisibleChangedListener l)
void removeVisibleListener(GLMapItem2.OnVisibleChangedListener l)
void getBounds(MutableGeoBounds bnds)