public class RoverEntity extends java.lang.Object implements Immutable
Neither are required - a RoverEntity may have no data, and it may have no shapes.
Copyright 2008-2009 Partner Software, Inc.
| Constructor and Description |
|---|
RoverEntity(java.util.List<RoverShape> shapes)
Creates a RoverEntity with no data and the given list of shapes.
|
RoverEntity(java.util.Map data,
boolean selectable,
java.util.List<RoverShape> shapes) |
RoverEntity(java.util.Map data,
boolean selectable,
RoverShape... shapes) |
RoverEntity(java.util.Map data,
java.util.List<RoverShape> shapes) |
RoverEntity(java.util.Map data,
RoverShape... shapes) |
RoverEntity(RoverData data,
boolean selectable,
java.util.List<RoverShape> shapes)
Creates a RoverEntity with the given data and list of shapes.
|
RoverEntity(RoverData data,
boolean selectable,
RoverShape... shapes)
Creates a RoverEntity with the given data and array of shapes.
|
RoverEntity(RoverData data,
java.util.List<RoverShape> shapes)
Creates a RoverEntity with the given data and list of shapes.
|
RoverEntity(RoverData data,
RoverShape... shapes)
Creates a RoverEntity with the given data and array of shapes.
|
RoverEntity(RoverShape... shapes)
Creates a RoverEntity with no data and the given list of shapes.
|
RoverEntity(RoverType type,
Naming<java.lang.Object> data,
boolean selectable,
java.util.List<RoverShape> shapes) |
RoverEntity(RoverType type,
Naming<java.lang.Object> data,
boolean selectable,
RoverShape... shapes) |
RoverEntity(RoverType type,
Naming<java.lang.Object> data,
java.util.List<RoverShape> shapes) |
RoverEntity(RoverType type,
Naming<java.lang.Object> data,
RoverShape... shapes) |
| Modifier and Type | Method and Description |
|---|---|
RoverData |
getData() |
java.util.List<RoverShape> |
getShapes() |
boolean |
isSelectable() |
java.util.List<RoverShape> |
listShapes() |
XyPoint |
locationNearest(XyPoint reference)
Returns a single geographic location for this shape nearest the given reference point.
|
XyPoint |
locationNearest(XyPoint reference,
double scale)
Returns a single geographic location for this shape nearest the given reference point.
|
XyPoint |
startLocation()
Returns a reasonable single geographic location for this shape, without any information
as to rendering scale or region desired.
|
XyPoint |
startLocationAtScale(double scale)
Returns a more accurate single geographic location for this shape, given the rendering scale.
|
public RoverEntity(java.util.List<RoverShape> shapes)
public RoverEntity(RoverShape... shapes)
public RoverEntity(RoverData data, java.util.List<RoverShape> shapes)
data - shapes - public RoverEntity(RoverData data, RoverShape... shapes)
data - shapes - public RoverEntity(RoverData data, boolean selectable, java.util.List<RoverShape> shapes)
data - shapes - public RoverEntity(RoverData data, boolean selectable, RoverShape... shapes)
data - shapes - public RoverEntity(RoverType type, Naming<java.lang.Object> data, java.util.List<RoverShape> shapes)
public RoverEntity(RoverType type, Naming<java.lang.Object> data, RoverShape... shapes)
public RoverEntity(java.util.Map data,
RoverShape... shapes)
public RoverEntity(java.util.Map data,
java.util.List<RoverShape> shapes)
public RoverEntity(RoverType type, Naming<java.lang.Object> data, boolean selectable, java.util.List<RoverShape> shapes)
public RoverEntity(RoverType type, Naming<java.lang.Object> data, boolean selectable, RoverShape... shapes)
public RoverEntity(java.util.Map data,
boolean selectable,
RoverShape... shapes)
public RoverEntity(java.util.Map data,
boolean selectable,
java.util.List<RoverShape> shapes)
public XyPoint startLocation()
public XyPoint startLocationAtScale(double scale)
public XyPoint locationNearest(XyPoint reference)
public XyPoint locationNearest(XyPoint reference, double scale)
public RoverData getData()
public java.util.List<RoverShape> getShapes()
public java.util.List<RoverShape> listShapes()
public boolean isSelectable()