|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.rover.RoverMachineRegister
public class RoverMachineRegister
A buffer object used to contain the raw coded data and geometry values for a RoverEntity.
Perhaps this is an abuse of the concept, but "Register" is used intentionally to allude to the idea of numeric registers in CPUs. It's a (relatively) fast and (relatively) low-level place to store mutable rover entity data, that may be acted on directly (e.g. when rendering) or used to construct actual immutable RoverEntity objects.
It is designed for speed and open access and not security. Share instances at your own risk.
Copyright 2008 Partner Software, Inc.
| Field Summary | |
|---|---|
byte |
alignment
Only valid for text, the alignment code. |
int |
dataId
The current numeric RoverData ID. |
int |
graphicTypeId
The current numeric RoverGraphicType ID. |
int |
imageId
Only valid for images, the ID of the image. |
byte |
offsetX
Only valid for points and text, the X offset in pixels. |
byte |
offsetY
Only valid for points and text, the Y offset in pixels. |
int |
pixelsHigh
Only valid for images, the width of the image in pixels. |
int |
pixelsWide
Only valid for images, the width of the image in pixels. |
DynamicDoubleArray |
points
A dynamic array of points represented as doubles in x1, y1, x2, y2, etc. |
byte |
rotation
Only valid for points and text, the rotation, encoded in theta units of 1/256 of a circle. |
double |
scale
Only valid for images, the scale (width/height of pixel in map units) of the image. |
int |
shapeTypeCode
The current shape type code. |
RoverStore |
store
The current RoverStore. |
java.lang.String |
text
Only valid for text, the actual text of the label. |
double |
x
X for image, point, and text entities. |
double |
y
Y for image, point, and text entities. |
| Constructor Summary | |
|---|---|
RoverMachineRegister()
|
|
| Method Summary | |
|---|---|
ImageSource |
loadImage()
|
boolean |
simplifyPoints()
Same as simplifyPoints(1.0). |
boolean |
simplifyPoints(double epsilon)
Reduces the granularity of the points array in place using the given epsilon. |
java.lang.String |
toString()
|
void |
transformPoints(java.awt.geom.AffineTransform transform)
Transforms the points array in place using the given AffineTransform. |
void |
transformXy(java.awt.geom.AffineTransform transform)
Transforms the x and y values using the given AffineTransform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public RoverStore store
public int dataId
public int graphicTypeId
public int shapeTypeCode
public double x
public double y
public DynamicDoubleArray points
public byte offsetX
public byte offsetY
public byte rotation
public byte alignment
public java.lang.String text
public int imageId
public double scale
public int pixelsWide
public int pixelsHigh
| Constructor Detail |
|---|
public RoverMachineRegister()
| Method Detail |
|---|
public void transformPoints(java.awt.geom.AffineTransform transform)
public void transformXy(java.awt.geom.AffineTransform transform)
public boolean simplifyPoints()
public boolean simplifyPoints(double epsilon)
public ImageSource loadImage()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||