com.partnersoft.v3x.apps.MapBrowser.rover
Class DirectGraphicsActor

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.rover.DirectGraphicsActor
All Implemented Interfaces:
RoverActor, RoverConstants

public class DirectGraphicsActor
extends java.lang.Object
implements RoverActor

Renders a rover directly onto a Graphics object and optional ClickMap


Field Summary
static java.awt.Stroke defaultStroke
           
static java.awt.Stroke emphasisStroke
           
static java.awt.Stroke hiliteStroke
           
static java.awt.Stroke indicatorStroke
           
static int MODE_EMPHASIS
           
static int MODE_INDICATION
           
static int MODE_NORMAL
           
static int MODE_SELECTION
           
 
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
DirectGraphicsActor(java.awt.Graphics g, ClickMap clickMap, RenderMold mold, RoverLegend legend, RoverRenderLegendItem legendItem, RoverDataStore dataStore, java.awt.Component imageWatcher)
           
DirectGraphicsActor(java.awt.Graphics g, ClickMap clickMap, RenderMold mold, RoverLegend legend, RoverRenderLegendItem legendItem, RoverDataStore dataStore, java.awt.Component imageWatcher, int mode)
           
 
Method Summary
 void close()
          Draw an elliptical arc 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 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 text)
          Draw some text with the given style.
 RoverDataStore getDataStore()
           
 boolean isAllGraphicsSelectable()
           
 boolean isStyleVisible(int styleCode)
          Tests if a styleCode is to be ignored.
 void setAllGraphicsSelectable(boolean tizit)
           
 void setDataStore(RoverDataStore newStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_NORMAL

public static final int MODE_NORMAL
See Also:
Constant Field Values

MODE_SELECTION

public static final int MODE_SELECTION
See Also:
Constant Field Values

MODE_INDICATION

public static final int MODE_INDICATION
See Also:
Constant Field Values

MODE_EMPHASIS

public static final int MODE_EMPHASIS
See Also:
Constant Field Values

hiliteStroke

public static final java.awt.Stroke hiliteStroke

indicatorStroke

public static final java.awt.Stroke indicatorStroke

emphasisStroke

public static final java.awt.Stroke emphasisStroke

defaultStroke

public static final java.awt.Stroke defaultStroke
Constructor Detail

DirectGraphicsActor

public DirectGraphicsActor(java.awt.Graphics g,
                           ClickMap clickMap,
                           RenderMold mold,
                           RoverLegend legend,
                           RoverRenderLegendItem legendItem,
                           RoverDataStore dataStore,
                           java.awt.Component imageWatcher)

DirectGraphicsActor

public DirectGraphicsActor(java.awt.Graphics g,
                           ClickMap clickMap,
                           RenderMold mold,
                           RoverLegend legend,
                           RoverRenderLegendItem legendItem,
                           RoverDataStore dataStore,
                           java.awt.Component imageWatcher,
                           int mode)
Method Detail

getDataStore

public RoverDataStore getDataStore()

setDataStore

public void setDataStore(RoverDataStore newStore)

isAllGraphicsSelectable

public boolean isAllGraphicsSelectable()

setAllGraphicsSelectable

public void setAllGraphicsSelectable(boolean tizit)

isStyleVisible

public boolean isStyleVisible(int styleCode)
Description copied from interface: RoverActor
Tests if a styleCode is to be ignored. If true, ignores/skips all entities with the given styleCode.

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)
Description copied from interface: RoverActor
Draw a point with the given style.

Specified by:
drawPoint in interface RoverActor

drawText

public void drawText(int styleCode,
                     int dataType,
                     int recordID,
                     float x,
                     float y,
                     float rotation,
                     CharBuffer text,
                     int offsetX,
                     int offsetY)
Description copied from interface: RoverActor
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 text)
Description copied from interface: RoverActor
Draw some text with the given style.

Specified by:
drawText in interface RoverActor

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

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