com.partnersoft.v3x.io.formats.rover
Class RoverRememberingActor

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.rover.RoverRememberingActor
All Implemented Interfaces:
RoverActor, RoverConstants

public class RoverRememberingActor
extends java.lang.Object
implements RoverActor

Saves the rovers encountered as RoverGraphic objects.


Field Summary
 RoverGraphic first
           
 DoublePolyline polly
           
 RoverPolyline roverPolly
           
 
Fields inherited from interface com.partnersoft.v3x.io.formats.rover.RoverConstants
DRAW_JUSTIFIED_TEXT, DRAW_OFFSET_POINT, DRAW_OFFSET_TEXT, DRAW_POINT, DRAW_POLYGON, DRAW_POLYLINE, DRAW_TEXT, EOF, JUSTIFY_BASELINE_CENTER, JUSTIFY_BASELINE_LEFT, JUSTIFY_BASELINE_RIGHT, JUSTIFY_NOTSPECIFIED, OPCODE_TYPE_BOUNDARY, SIZE_DRAW_JUSTIFIED_TEXT_PREAMBLE, SIZE_DRAW_OFFSET_POINT, SIZE_DRAW_OFFSET_TEXT_CONCLUSION, SIZE_DRAW_OFFSET_TEXT_PREAMBLE, SIZE_DRAW_POINT, SIZE_DRAW_POLYLINE_PREAMBLE, SIZE_DRAW_TEXT_PREAMBLE, STYLE_REGION
 
Constructor Summary
RoverRememberingActor()
           
 
Method Summary
 void close()
          Draw an elliptical arc with the given style.
 void drawLine(int styleCode, int dataType, int recordID, float x1, float y1, float x2, float y2)
          Draw a line with the given style.
 void drawPoint(int styleCode, int dataType, int recordID, float x, float y, float rotation, int offsetX, int offsetY)
          Draw a point with the given style.
 void drawPolygon(int styleCode, int dataType, int recordID, float[] points)
          Draw a polygon with the given style.
 void drawPolyline(int styleCode, int dataType, int recordID, int numPoints, FloatBuffer coords)
          If the reader is reading in bulk mode this is called for each polyline.
 void drawText(int styleCode, int dataType, int recordID, float x, float y, float rotation, CharBuffer text, int offsetX, int offsetY)
          Draw some text with the given style.
 void drawText(int styleCode, int dataType, int recordID, float x, float y, float rotation, int offsetX, int offsetY, int justification, CharBuffer buffy)
          Draw some text with the given style.
 RoverGraphic getFirst()
           
 boolean isStyleVisible(int styleCode)
          Always returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

public RoverGraphic first

polly

public DoublePolyline polly

roverPolly

public RoverPolyline roverPolly
Constructor Detail

RoverRememberingActor

public RoverRememberingActor()
Method Detail

close

public void close()
Description copied from interface: RoverActor
Draw an elliptical arc with the given style. (not implemented yet)

Specified by:
close in interface RoverActor

isStyleVisible

public boolean isStyleVisible(int styleCode)
Always returns true.

Specified by:
isStyleVisible in interface RoverActor

drawPoint

public void drawPoint(int styleCode,
                      int dataType,
                      int recordID,
                      float x,
                      float y,
                      float rotation,
                      int offsetX,
                      int offsetY)
Draw a point with the given style.

Specified by:
drawPoint in interface RoverActor

drawLine

public void drawLine(int styleCode,
                     int dataType,
                     int recordID,
                     float x1,
                     float y1,
                     float x2,
                     float y2)
Draw a line with the given style.


drawText

public void drawText(int styleCode,
                     int dataType,
                     int recordID,
                     float x,
                     float y,
                     float rotation,
                     CharBuffer text,
                     int offsetX,
                     int offsetY)
Draw some text with the given style.

Specified by:
drawText in interface RoverActor

drawText

public void drawText(int styleCode,
                     int dataType,
                     int recordID,
                     float x,
                     float y,
                     float rotation,
                     int offsetX,
                     int offsetY,
                     int justification,
                     CharBuffer buffy)
Draw some text with the given style.

Specified by:
drawText in interface RoverActor

drawPolygon

public void drawPolygon(int styleCode,
                        int dataType,
                        int recordID,
                        float[] points)
Draw a polygon with the given style.


drawPolyline

public void drawPolyline(int styleCode,
                         int dataType,
                         int recordID,
                         int numPoints,
                         FloatBuffer coords)
Description copied from interface: RoverActor
If the reader is reading in bulk mode this is called for each polyline.

Specified by:
drawPolyline in interface RoverActor

getFirst

public RoverGraphic getFirst()