AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureVisitor< T > Interface Template Reference

Public Member Functions

visit (MapMarker marker, Object... arguments)
 
visit (MapLineString lineString, Object... arguments)
 
visit (MapPolygon polygon, Object... arguments)
 
visit (MapCircle circle, Object... arguments)
 
visit (MapRectangle rectangle, Object... arguments)
 

Detailed Description

MapFeatureVisitor is a realization of the Visitor design pattern for MapFeature. It allows the features to differentiate themselves so that type-specific processing can occur on the feature.

Parameters
<T>the return type that the visit method will return. If nothing will be returned, use Void and return null.
Author
ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du (Evan W. Patton)

Definition at line 745 of file MapFactory.java.

Member Function Documentation

◆ visit() [1/5]

Visit the MapCircle.

Parameters
circlethe circle to visit
argumentsany additional arguments passed to the MapFeature#accept(MapFeatureVisitor, Object...) method.
Returns
type T, specific to the concrete implementation

◆ visit() [2/5]

Visit the MapLineString.

Parameters
lineStringthe linestring to visit
argumentsany additional arguments passed to the MapFeature#accept(MapFeatureVisitor, Object...) method.
Returns
type T, specific to the concrete implementation

◆ visit() [3/5]

Visit the MapMarker.

Parameters
markerthe marker to visit
argumentsany additional arguments passed to the MapFeature#accept(MapFeatureVisitor, Object...) method.
Returns
type T, specific to the concrete implementation

◆ visit() [4/5]

Visit the MapPolygon.

Parameters
polygonthe polygon to visit
argumentsany additional arguments passed to the MapFeature#accept(MapFeatureVisitor, Object...) method.
Returns
type T, specific to the concrete implementation

◆ visit() [5/5]

Visit the MapRectangle.

Parameters
rectanglethe rectangle to visit
argumentsany additional arguments passed to the MapFeature#accept(MapFeatureVisitor, Object...) method.
Returns
type T, specific to the concrete implementation

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