nl.tudelft.goal.ut2004.visualizer.util
Class SelectableWayPoint

Package class diagram package SelectableWayPoint
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.util.SelectableWayPoint

public class SelectableWayPoint
extends Object

Wrapper around NavPoint to make it more human readable in JList.

Author:
Lennard de Rijk

Constructor Summary
SelectableWayPoint(cz.cuni.amis.pogamut.ut2004.communication.worldview.map.Waypoint navPoint)
           
 
Method Summary
static Collection<SelectableWayPoint> getFromWaypointCollection(Collection<cz.cuni.amis.pogamut.ut2004.communication.worldview.map.Waypoint> navCollection)
          Transforms a Collection of NavPoint into an Array of SelectableWayPoint.
 cz.cuni.amis.pogamut.ut2004.communication.worldview.map.Waypoint getWaypoint()
           
 String toString()
          Represents a NavPoint in a human readable form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectableWayPoint

public SelectableWayPoint(cz.cuni.amis.pogamut.ut2004.communication.worldview.map.Waypoint navPoint)
Parameters:
navPoint - The NavPoint to wrap in this object.
Method Detail

getWaypoint

public cz.cuni.amis.pogamut.ut2004.communication.worldview.map.Waypoint getWaypoint()
Returns:
the navPoint wrapped in this class.

toString

public String toString()
Represents a NavPoint in a human readable form.

Overrides:
toString in class Object

getFromWaypointCollection

public static Collection<SelectableWayPoint> getFromWaypointCollection(Collection<cz.cuni.amis.pogamut.ut2004.communication.worldview.map.Waypoint> navCollection)
Transforms a Collection of NavPoint into an Array of SelectableWayPoint.

Parameters:
navCollection - The Collection of NavPoint to transform
Returns:
An Array of SelectableWayPoint


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.