public class GLAssociation2 extends AbstractGLMapItem2 implements Association.OnStyleChangedListener, Association.OnLinkChangedListener, Association.OnColorChangedListener, Association.OnFirstItemChangedListener, Association.OnSecondItemChangedListener, Association.OnStrokeWeightChangedListener, Association.OnClampToGroundChangedListener, Association.OnTextChangedListener, MapItem.OnHeightChangedListener, Association.OnParentChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Constructor and Description |
---|
GLAssociation2(MapRenderer surface,
Association subject) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
clampToGround() |
void |
draw(GLMapView ortho,
int renderPass) |
protected HitTestResult |
hitTestImpl(MapRenderer3 renderer,
HitTestQueryParameters params)
Perform a hit test on this map item
Sub-classes should override this method for hit-testing
|
void |
onAssociationClampToGroundChanged(Association assoc) |
void |
onAssociationColorChanged(Association association) |
void |
onAssociationLinkChanged(Association association) |
void |
onAssociationStrokeWeightChanged(Association association) |
void |
onAssociationStyleChanged(Association association) |
void |
onAssociationTextChanged(Association assoc) |
void |
onFirstAssociationItemChanged(Association association,
PointMapItem prevItem) |
void |
onHeightChanged(MapItem item) |
void |
onParentChanged(Association assoc,
AssociationSet parent) |
void |
onSecondAssociationItemChanged(Association association,
PointMapItem prevItem) |
void |
release() |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
protected void |
updateNadirClamp(GLMapView ortho)
Sync the NADIR clamp boolean with the current clamp to ground setting
|
addBoundsListener, addVisibleListener, dispatchOnBoundsChanged, dispatchOnVisibleChanged, forward, forward, forward, forward, forward, forward, forward, getBounds, getClampToGroundAtNadir, getClickable, getMinDrawResolution, getOpaque, getRenderPass, getSubject, getZOrder, hitTest, isVisible, markSurfaceDirty, onClickableChanged, onVisibleChanged, onZOrderChanged, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaque
public GLAssociation2(MapRenderer surface, Association subject)
public void startObserving()
GLMapItem2
Invoking this method should generally refresh the state of the item.
This method may not be invoked on the GL context thread.
startObserving
in interface GLMapItem2
startObserving
in class AbstractGLMapItem2
public void stopObserving()
AbstractGLMapItem2
AbstractGLMapItem2.startObserving()
.
This method may not be invoked on the GL context thread.
stopObserving
in interface GLMapItem2
stopObserving
in class AbstractGLMapItem2
public void onAssociationLinkChanged(Association association)
onAssociationLinkChanged
in interface Association.OnLinkChangedListener
public void onAssociationStyleChanged(Association association)
onAssociationStyleChanged
in interface Association.OnStyleChangedListener
public void onAssociationColorChanged(Association association)
onAssociationColorChanged
in interface Association.OnColorChangedListener
public void onSecondAssociationItemChanged(Association association, PointMapItem prevItem)
onSecondAssociationItemChanged
in interface Association.OnSecondItemChangedListener
public void onFirstAssociationItemChanged(Association association, PointMapItem prevItem)
onFirstAssociationItemChanged
in interface Association.OnFirstItemChangedListener
public void onAssociationStrokeWeightChanged(Association association)
onAssociationStrokeWeightChanged
in interface Association.OnStrokeWeightChangedListener
public void onAssociationTextChanged(Association assoc)
onAssociationTextChanged
in interface Association.OnTextChangedListener
public void onAssociationClampToGroundChanged(Association assoc)
onAssociationClampToGroundChanged
in interface Association.OnClampToGroundChangedListener
public void onHeightChanged(MapItem item)
onHeightChanged
in interface MapItem.OnHeightChangedListener
public void onParentChanged(Association assoc, AssociationSet parent)
onParentChanged
in interface Association.OnParentChangedListener
public void release()
release
in class AbstractGLMapItem2
protected void updateNadirClamp(GLMapView ortho)
ortho
- Map viewprotected boolean clampToGround()
public void draw(GLMapView ortho, int renderPass)
protected HitTestResult hitTestImpl(MapRenderer3 renderer, HitTestQueryParameters params)
AbstractGLMapItem2
hitTestImpl
in class AbstractGLMapItem2
renderer
- Map rendererparams
- Query parameters