com.partnersoft.v3x.io.formats.rover
Interface RoverActor

All Superinterfaces:
RoverConstants
All Known Implementing Classes:
DebugRoverActor, DirectGraphicsActor, RoverExtentsCalculator, RoverForRoverReader, RoverRememberingActor

public interface RoverActor
extends RoverConstants

A renderer, really a do-what-you-want actor object that you pass to a RoverReader. This prevents creating lots of graphic primitive objects, which could slow things down. We don't want that. In any case, just implement the methods to act on the instructions from the RoverReader.


Field Summary
 
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
 
Method Summary
 void close()
          Draw an elliptical arc with the given style.
 void drawPoint(int styleCode, int dataType, int dataID, float x, float y, float rotation, int offsetX, int offsetY)
          Draw a point 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 dataID, 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 dataID, float x, float y, float rotation, int offsetX, int offsetY, int justification, CharBuffer text)
          Draw some text with the given style.
 boolean isStyleVisible(int styleCode)
          Tests if a styleCode is to be ignored.
 

Method Detail

isStyleVisible

boolean isStyleVisible(int styleCode)
Tests if a styleCode is to be ignored. If true, ignores/skips all entities with the given styleCode.


drawPoint

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


drawText

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


drawText

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


drawPolyline

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.


close

void close()
Draw an elliptical arc with the given style. (not implemented yet)