com.dopanic.panicarkit.lib
Class PARPoiLabelAdvanced

java.lang.Object
  extended by com.dopanic.panicarkit.lib.PARPoi
      extended by com.dopanic.panicarkit.lib.PARPoiLabel
          extended by com.dopanic.panicarkit.lib.PARPoiLabelAdvanced
All Implemented Interfaces:
java.io.Serializable

public class PARPoiLabelAdvanced
extends PARPoiLabel

Created by helmi on 21.03.14. Advanced poi label. Supports altitude.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.dopanic.panicarkit.lib.PARPoiLabel
_description, _distance, _iconImageViewResource, _lastUpdateAtDistance, _title, altitudeTextView, defaultSize, descriptionTextView, distanceTextView, FORMATTER_DISTANCE_LARGE, FORMATTER_DISTANCE_LARGEST, FORMATTER_DISTANCE_SMALL, hasCreatedView, iconImageView, isAltitudeEnabled, LARGE_DISTANCE_INTERVAL, layoutId, offset, size, SMALL_DISTANCE_INTERVAL, titleTextView
 
Fields inherited from class com.dopanic.panicarkit.lib.PARPoi
_backgroundImageResource, _labelView, addedToRadar, addedToView, ctx, distanceToUser, halfSizeOfView, isClippedByDistance, isClippedByViewport, isDebug, isHidden, location, observed, radarParentView, radarResourceId, radarView
 
Constructor Summary
PARPoiLabelAdvanced(Location location, java.lang.String title, java.lang.String description, int layoutId, int radarResourceId)
          Constructor
 
Method Summary
 float getAltitude()
          Get poi altitude in meters
 void setAltitude(float altitude)
          Set poi altitude
 void updateContent()
           
 
Methods inherited from class com.dopanic.panicarkit.lib.PARPoiLabel
createView, getDefaultSize, getDescription, getIconImageViewResource, getIsAltitudeEnabled, getOffset, getOnClickListener, getSize, getTitle, setDefaultSize, setDescription, setIconImageViewResource, setIsAltitudeEnabled, setOffset, setOnClickListener, setSize, setSize, setTitle
 
Methods inherited from class com.dopanic.panicarkit.lib.PARPoi
getBackgroundImageResource, getLocation, getRadarView, getRelativeScreenPosition, getView, isAddedToRadar, isClippedByDistance, isClippedByViewport, isHadLocationUpdate, isHidden, isInView, isObserved, onAddedToARController, onRemovedFromARController, renderInRadar, renderInView, setBackgroundImageResource, setDeviceGravity, setLocation, setObserved, setViewRotation, updateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PARPoiLabelAdvanced

public PARPoiLabelAdvanced(Location location,
                           java.lang.String title,
                           java.lang.String description,
                           int layoutId,
                           int radarResourceId)
Constructor

Parameters:
location - Poi location
title - Poi title
description - Poi description
Method Detail

getAltitude

public float getAltitude()
Get poi altitude in meters

Returns:
Poi altitude

setAltitude

public void setAltitude(float altitude)
Set poi altitude

Parameters:
altitude - The altitude

updateContent

public void updateContent()
Overrides:
updateContent in class PARPoiLabel



Copyright © 2014 doPanic GmbH. All rights reserved.