com.partnersoft.maps.rover
Class RoverImage

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

public class RoverImage
extends AbstractRoverPointShape<RoverImage>

A raster image drawn centered at a specific point at a fixed map scale.

Copyright 2008-2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
RoverImage(int id, int dataId, int drawId, boolean selectable, XyPoint point, int imageId, double scale, int pixelsWide, int pixelsHigh)
           
RoverImage(int id, int dataId, int drawId, boolean selectable, XyPoint point, XyRotation rotation, int offsetX, int offsetY, int imageId, double scale, int pixelsWide, int pixelsHigh)
           
RoverImage(int id, int dataId, int drawId, XyPoint point, int imageId, double scale, int pixelsWide, int pixelsHigh)
           
RoverImage(int id, int dataId, int drawId, XyPoint point, XyRotation rotation, int offsetX, int offsetY, int imageId, double scale, int pixelsWide, int pixelsHigh)
           
 
Method Summary
static RoverImage fromBytes(RoverBlockCode code, RoverBytes bytes)
           
 XyBounds getBounds()
          The bounds of the shape.
 int getImageId()
           
 int getPixelsHigh()
           
 int getPixelsWide()
           
 XyRectangle getRectangle()
           
 double getScale()
           
 RoverImage withDataId(int dataId)
          Returns a copy of this shape with the given data ID.
 RoverImage withDrawId(int drawId)
          Returns a copy of this shape with the given drawable ID.
 RoverImage withId(int id)
          Returns a copy of this shape with the given ID.
 RoverImage withIds(int id, int dataId, int drawId)
          Returns a copy of this shape with the given IDs set.
 RoverImage withImageId(int imageId)
           
 
Methods inherited from class com.partnersoft.maps.rover.AbstractRoverPointShape
getCentroid, getEndPoint, getOffsetX, getOffsetY, getPoint, getRotation, getStartPoint, isOffset, isRotated
 
Methods inherited from class com.partnersoft.maps.rover.AbstractRoverShape
getDataId, getDrawId, getId, hasZ, isSelectable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoverImage

public RoverImage(int id,
                  int dataId,
                  int drawId,
                  XyPoint point,
                  int imageId,
                  double scale,
                  int pixelsWide,
                  int pixelsHigh)

RoverImage

public RoverImage(int id,
                  int dataId,
                  int drawId,
                  XyPoint point,
                  XyRotation rotation,
                  int offsetX,
                  int offsetY,
                  int imageId,
                  double scale,
                  int pixelsWide,
                  int pixelsHigh)

RoverImage

public RoverImage(int id,
                  int dataId,
                  int drawId,
                  boolean selectable,
                  XyPoint point,
                  int imageId,
                  double scale,
                  int pixelsWide,
                  int pixelsHigh)

RoverImage

public RoverImage(int id,
                  int dataId,
                  int drawId,
                  boolean selectable,
                  XyPoint point,
                  XyRotation rotation,
                  int offsetX,
                  int offsetY,
                  int imageId,
                  double scale,
                  int pixelsWide,
                  int pixelsHigh)
Method Detail

fromBytes

public static RoverImage fromBytes(RoverBlockCode code,
                                   RoverBytes bytes)

withDataId

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


withImageId

public RoverImage withImageId(int imageId)

withDrawId

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


withId

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


withIds

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


getImageId

public int getImageId()

getScale

public double getScale()

getRectangle

public XyRectangle getRectangle()

getBounds

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

Specified by:
getBounds in interface RoverShape<RoverImage>
Overrides:
getBounds in class AbstractRoverPointShape<RoverImage>

getPixelsWide

public int getPixelsWide()

getPixelsHigh

public int getPixelsHigh()