FileDocCategorySizeDatePackage
WayPointLabelProvider.javaAPI DocAndroid 1.5 API2281Wed May 06 22:41:08 BST 2009com.android.ddmuilib.location

WayPointLabelProvider

public class WayPointLabelProvider extends Object implements org.eclipse.jface.viewers.ITableLabelProvider
Label Provider for {@link Table} objects displaying {@link WayPoint} objects.

Fields Summary
Constructors Summary
Methods Summary
public voidaddListener(org.eclipse.jface.viewers.ILabelProviderListener listener)

        // pass
    
public voiddispose()

        // pass
    
public org.eclipse.swt.graphics.ImagegetColumnImage(java.lang.Object element, int columnIndex)

        return null;
    
public java.lang.StringgetColumnText(java.lang.Object element, int columnIndex)

        if (element instanceof WayPoint) {
            WayPoint wayPoint = (WayPoint)element;
            switch (columnIndex) {
                case 0:
                    return wayPoint.getName();
                case 1:
                    return String.format("%.6f", wayPoint.getLongitude());
                case 2:
                    return String.format("%.6f", wayPoint.getLatitude());
                case 3:
                    if (wayPoint.hasElevation()) {
                        return String.format("%.1f", wayPoint.getElevation());
                    } else {
                        return "-";
                    }
                case 4:
                    return wayPoint.getDescription();
            }
        }

        return null;
    
public booleanisLabelProperty(java.lang.Object element, java.lang.String property)

        // pass
        return false;
    
public voidremoveListener(org.eclipse.jface.viewers.ILabelProviderListener listener)

        // pass