com.partnersoft.maps.rover
Class RoverLine

java.lang.Object
  extended by com.partnersoft.maps.rover.AbstractRoverShape<RoverLine>
      extended by com.partnersoft.maps.rover.RoverLine
All Implemented Interfaces:
Immutable, RoverShape<RoverLine>

public class RoverLine
extends AbstractRoverShape<RoverLine>

A geographic polyline shape.

Copyright 2008-2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
RoverLine(int id, int dataId, int drawId, boolean selectable, XyPolyline shape)
           
RoverLine(int graphicTypeId, XyPolyline shape)
           
 
Method Summary
 XyBounds getBounds()
          The bounds of the shape.
 XyPoint getCentroid()
          The center of the bounds of the shape.
 XyPoint getEndPoint()
          The last point in the shape.
 XyPolyline getShape()
           
 XyPoint getStartPoint()
          The first point in the shape.
 java.lang.String toString()
           
 RoverLine withDataId(int dataId)
          Returns a copy of this shape with the given data ID.
 RoverLine withDrawId(int drawId)
          Returns a copy of this shape with the given drawable ID.
 RoverLine withId(int id)
          Returns a copy of this shape with the given ID.
 RoverLine withIds(int id, int dataId, int drawId)
          Returns a copy of this shape with the given IDs set.
 
Methods inherited from class com.partnersoft.maps.rover.AbstractRoverShape
getDataId, getDrawId, getId, hasZ, isOffset, isRotated, isSelectable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoverLine

public RoverLine(int id,
                 int dataId,
                 int drawId,
                 boolean selectable,
                 XyPolyline shape)

RoverLine

public RoverLine(int graphicTypeId,
                 XyPolyline shape)
Method Detail

getBounds

public XyBounds getBounds()
Description copied from interface: RoverShape
The bounds of the shape.


getCentroid

public XyPoint getCentroid()
Description copied from interface: RoverShape
The center of the bounds of the shape.


getEndPoint

public XyPoint getEndPoint()
Description copied from interface: RoverShape
The last point in the shape. May be the same as the start point.


getStartPoint

public XyPoint getStartPoint()
Description copied from interface: RoverShape
The first point in the shape. May be a better choice for locating the shape than the center.


withDataId

public RoverLine withDataId(int dataId)
Description copied from interface: RoverShape
Returns a copy of this shape with the given data ID.


withDrawId

public RoverLine withDrawId(int drawId)
Description copied from interface: RoverShape
Returns a copy of this shape with the given drawable ID.


withId

public RoverLine withId(int id)
Description copied from interface: RoverShape
Returns a copy of this shape with the given ID.


withIds

public RoverLine withIds(int id,
                         int dataId,
                         int drawId)
Description copied from interface: RoverShape
Returns a copy of this shape with the given IDs set.


toString

public java.lang.String toString()
Overrides:
toString in class AbstractRoverShape<RoverLine>

getShape

public XyPolyline getShape()