Ejemplo n.º 1
0
 @Override
 public boolean onSingleTapConfirmed(MotionEvent event) {
   int x = (int) (getScrollX() + event.getX());
   int y = (int) (getScrollY() + event.getY());
   mMarkerLayout.processHit(x, y);
   mHotSpotManager.processHit(x, y);
   return super.onSingleTapConfirmed(event);
 }
Ejemplo n.º 2
0
 @Override
 public void onScaleChanged(float scale, float previous) {
   super.onScaleChanged(scale, previous);
   mDetailLevelManager.setScale(scale);
   mHotSpotManager.setScale(scale);
   mTileCanvasViewGroup.setScale(scale);
   mScalingLayout.setScale(scale);
   mCompositePathView.setScale(scale);
   mMarkerLayout.setScale(scale);
   mCalloutLayout.setScale(scale);
 }
Ejemplo n.º 3
0
 /**
  * Remove a HotSpot registered with addHotSpot.
  *
  * @param hotSpot The HotSpot instance to remove.
  */
 public void removeHotSpot(HotSpot hotSpot) {
   mHotSpotManager.removeHotSpot(hotSpot);
 }
Ejemplo n.º 4
0
 /**
  * Register a HotSpotTapListener with the TileView. This listener will fire if any registered
  * HotSpot's region intersects a Tap event.
  *
  * @param hotSpotTapListener The listener to be added.
  */
 public void setHotSpotTapListener(HotSpot.HotSpotTapListener hotSpotTapListener) {
   mHotSpotManager.setHotSpotTapListener(hotSpotTapListener);
 }
Ejemplo n.º 5
0
 /**
  * Register a HotSpot that should fire a listener when a touch event occurs that intersects the
  * Region defined by the HotSpot.
  *
  * <p>The HotSpot virtually moves and scales with the TileView.
  *
  * @param hotSpot The hotspot that is tested against touch events that occur on the TileView.
  * @return The HotSpot instance added.
  */
 public HotSpot addHotSpot(HotSpot hotSpot) {
   mHotSpotManager.addHotSpot(hotSpot);
   return hotSpot;
 }