public abstract class GLShape2 extends AbstractGLMapItem2 implements Shape.OnFillColorChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStyleChangedListener, Shape.OnStrokeWeightChangedListener
GLMapItem2.OnBoundsChangedListener, GLMapItem2.OnVisibleChangedListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
fill |
protected int |
fillColor |
protected boolean |
stroke |
protected float |
strokeAlpha |
protected float |
strokeBlue |
protected int |
strokeColor |
protected float |
strokeGreen |
protected float |
strokeRed |
protected float |
strokeWeight |
bounds, clickable, context, DEFAULT_MAX_ALT, DEFAULT_MIN_ALT, minMapGsd, renderPass, subject, visible, zOrder
Modifier | Constructor and Description |
---|---|
protected |
GLShape2(MapRenderer surface,
Shape subject,
int renderPass) |
Modifier and Type | Method and Description |
---|---|
void |
onFillColorChanged(Shape shape) |
void |
onStrokeColorChanged(Shape shape) |
void |
onStrokeWeightChanged(Shape shape) |
void |
onStyleChanged(Shape shape) |
void |
startObserving()
Start observing the subject.
|
void |
stopObserving()
Stops observing the subject.
|
addBoundsListener, addVisibleListener, dispatchOnBoundsChanged, dispatchOnVisibleChanged, forward, forward, forward, forward, forward, forward, forward, getBounds, getClampToGroundAtNadir, getClickable, getMinDrawResolution, getOpaque, getRenderPass, getSubject, getZOrder, hitTest, hitTestImpl, isVisible, markSurfaceDirty, onClickableChanged, onVisibleChanged, onZOrderChanged, release, removeBoundsListener, removeVisibleListener, runOnGLThread, setClampToGroundAtNadir, setOpaque
protected boolean fill
protected boolean stroke
protected int fillColor
protected int strokeColor
protected float strokeRed
protected float strokeGreen
protected float strokeBlue
protected float strokeAlpha
protected float strokeWeight
protected GLShape2(MapRenderer surface, Shape subject, int renderPass)
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 onFillColorChanged(Shape shape)
onFillColorChanged
in interface Shape.OnFillColorChangedListener
public void onStrokeColorChanged(Shape shape)
onStrokeColorChanged
in interface Shape.OnStrokeColorChangedListener
public void onStyleChanged(Shape shape)
onStyleChanged
in interface Shape.OnStyleChangedListener
public void onStrokeWeightChanged(Shape shape)
onStrokeWeightChanged
in interface Shape.OnStrokeWeightChangedListener