AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer Interface Reference
Inheritance diagram for com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer:
com.google.appinventor.components.runtime.ComponentContainer com.google.appinventor.components.runtime.MapFeatureContainerBase com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection com.google.appinventor.components.runtime.FeatureCollection com.google.appinventor.components.runtime.Map com.google.appinventor.components.runtime.FeatureCollection

Public Member Functions

void Features (YailList features)
 
YailList Features ()
 
void FeatureClick (MapFeature feature)
 
void FeatureLongClick (MapFeature feature)
 
void FeatureStartDrag (MapFeature feature)
 
void FeatureDrag (MapFeature feature)
 
void FeatureStopDrag (MapFeature feature)
 
Map getMap ()
 
void addFeature (MapFeature feature)
 
Iterator< MapFeatureiterator ()
 
void removeFeature (MapFeature feature)
 
- Public Member Functions inherited from com.google.appinventor.components.runtime.ComponentContainer
Activity $context ()
 
Form $form ()
 
void $add (AndroidViewComponent component)
 
void setChildWidth (AndroidViewComponent component, int width)
 
void setChildHeight (AndroidViewComponent component, int height)
 
int Width ()
 
int Height ()
 

Detailed Description

MapFeatureContainer defines the API for components that contain MapFeature objects. MapFeatureContainer inherits from ComponentContainer because it contains components. Any new components that are designed to contain MapFeature should implment this interface.

Author
ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du (Evan W. Patton)

Definition at line 800 of file MapFactory.java.

Member Function Documentation

◆ addFeature()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.addFeature ( MapFeature  feature)

Adds a feature to the feature collection.

Parameters
featurethe feature to add

◆ FeatureClick()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureClick ( MapFeature  feature)

Runs when the app user clicks on a child of the feature collection. Events bubble from the most specific component (i.e., the feature) to the least specific (i.e., the map).

Parameters
featurethe clicked feature

◆ FeatureDrag()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureDrag ( MapFeature  feature)

Runs when the app user continues dragging a child of the feature collection. Events bubble from the most specific component (i.e., the feature) to the least specific (i.e., the map).

Parameters
featurethe dragged feature

◆ FeatureLongClick()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureLongClick ( MapFeature  feature)

Runs when the app user long-pressed on a child of the feature collection. Events bubble from the most specific component (i.e., the feature) to the least specific (i.e., the map).

Parameters
featurethe long-pressed feature

◆ Features() [1/2]

YailList com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.Features ( )

◆ Features() [2/2]

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.Features ( YailList  features)

Sets the list of MapFeature managed by this container. This can be used to dynamically update the container with new features.

Parameters
featuresthe list of features to be contained by the container. It is an unchecked exception to pass a YailList containing anything other than instances of MapFeature.

Implemented in com.google.appinventor.components.runtime.MapFeatureContainerBase.

◆ FeatureStartDrag()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureStartDrag ( MapFeature  feature)

Runs when the app user starts dragging a child of the feature collection. Events bubble from the most specific component (i.e., the feature) to the least specific (i.e., the map).

Parameters
featurethe dragged feature

◆ FeatureStopDrag()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureStopDrag ( MapFeature  feature)

Runs when the app user stop dragging a child of the feature collection. Events bubble from the most specific component (i.e., the feature) to the least specific (i.e., the map).

Parameters
featurethe dragged feature

◆ getMap()

Map com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.getMap ( )

Gets the map containing the feature collection.

Returns
the feature collection's map

Implemented in com.google.appinventor.components.runtime.Map, and com.google.appinventor.components.runtime.FeatureCollection.

◆ iterator()

Iterator<MapFeature> com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.iterator ( )

Iterates over the features in the MapFeatureContainer.

Returns
new iterator

Implemented in com.google.appinventor.components.runtime.MapFeatureContainerBase.

◆ removeFeature()

void com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.removeFeature ( MapFeature  feature)

Removes a feature from the feature collection.

Parameters
featurethe feature to remove

Implemented in com.google.appinventor.components.runtime.Map.


The documentation for this interface was generated from the following file: