|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.model.RoverBundleBuilder
public class RoverBundleBuilder
Stateful builder for bundled (generally in-memory) rover map data.
| Constructor Summary | |
|---|---|
RoverBundleBuilder()
|
|
| Method Summary | |
|---|---|
void |
circle(double x,
double y,
double radius)
Draws a circle at the given center with the given radius. |
void |
data(java.util.Map values)
Sets fields in the current map data item. |
void |
data(java.lang.String fieldName,
java.lang.Object value)
Sets a field in the current map data item. |
void |
endItem()
Ends the current map data item. |
void |
endPolyline()
Ends the current polyline. |
void |
line(double x1,
double y1,
double x2,
double y2)
Adds a line (same as adding a single-segment polyline). |
void |
point(double x,
double y)
Adds a point, with offsets and rotation set to zero. |
void |
point(double x,
double y,
int offsetX,
int offsetY,
double rotation)
Adds a point with a set offset and rotation. |
void |
rectangle(double xMin,
double yMin,
double xMax,
double yMax)
Draws a rectangle with the given bounds. |
void |
setDataType(java.lang.String newName)
Explicitly sets the current data type name. |
void |
setDataTypeTemplate(java.lang.String newTemplate)
Sets the data type name template. |
void |
setDefaultAlignment(java.lang.String newAlignment)
Sets the default alignment for text. |
void |
setDefaultOffset(int offsetX,
int offsetY)
Sets the default pixel offset for points and text. |
void |
setDefaultRotation(double rotation)
Sets the default rotation for points and text. |
void |
setGraphicType(java.lang.String newName)
Explicitly sets the current graphic type name. |
void |
setGraphicTypeTemplate(java.lang.String newTemplate)
Sets the style name template. |
void |
startItem()
Begins a new map data item. |
void |
startPolyline()
Starts a polyline. |
void |
text(double x,
double y,
int offsetX,
int offsetY,
double rotation,
java.lang.String alignment,
java.lang.String text)
Adds text with offset, rotation, and alignment. |
void |
vertex(double x,
double y)
Adds a vertex to the current polyline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoverBundleBuilder()
| Method Detail |
|---|
public void startItem()
public void endItem()
public void data(java.lang.String fieldName,
java.lang.Object value)
public void data(java.util.Map values)
public void setGraphicType(java.lang.String newName)
public void setGraphicTypeTemplate(java.lang.String newTemplate)
public void setDataType(java.lang.String newName)
public void setDataTypeTemplate(java.lang.String newTemplate)
public void setDefaultOffset(int offsetX,
int offsetY)
public void setDefaultRotation(double rotation)
public void setDefaultAlignment(java.lang.String newAlignment)
public void startPolyline()
public void endPolyline()
public void vertex(double x,
double y)
public void line(double x1,
double y1,
double x2,
double y2)
public void point(double x,
double y)
public void point(double x,
double y,
int offsetX,
int offsetY,
double rotation)
public void text(double x,
double y,
int offsetX,
int offsetY,
double rotation,
java.lang.String alignment,
java.lang.String text)
public void circle(double x,
double y,
double radius)
public void rectangle(double xMin,
double yMin,
double xMax,
double yMax)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||