com.oziexplorer
Class Route

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<RoutePoint>
              extended by com.oziexplorer.Route
All Implemented Interfaces:
Serializable, Cloneable, Iterable<RoutePoint>, Collection<RoutePoint>, List<RoutePoint>, RandomAccess

public class Route
extends ArrayList<RoutePoint>

This class represents routes, and consists of a list of RoutePoints.

Copyright 2011 Alan Burlison, . All rights reserved. Use is subject to license terms, see LICENSE.txt.
SourceForge.net

See Also:
Serialized Form

Field Summary
protected  int color
           
protected  String description
          The route description.
protected  String name
          The route name.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Route(String name, String description, int color)
          Create a new route.
 
Method Summary
 int getColor()
          Get the route line color.
 String getDescription()
          Get the route description.
 String getName()
          Get the route name.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

name

protected final String name
The route name.


description

protected final String description
The route description.


color

protected final int color
Constructor Detail

Route

public Route(String name,
             String description,
             int color)
Create a new route.

Parameters:
name - the route name.
description - the route description.
color - the route line color.
Method Detail

getColor

public int getColor()
Get the route line color.

Returns:
the route line color.

getDescription

public String getDescription()
Get the route description.

Returns:
the route descripton.

getName

public String getName()
Get the route name.

Returns:
the route name.