com.partnersoft.maps.ephemera
Class RelativePointStyleEphemeron

java.lang.Object
  extended by com.partnersoft.maps.ephemera.PointStyleEphemeron
      extended by com.partnersoft.maps.ephemera.RelativePointStyleEphemeron
All Implemented Interfaces:
Ephemeron

public class RelativePointStyleEphemeron
extends PointStyleEphemeron

Draws a Point Style at a relative XyPoint to the XyPoint passed to the draw method.

ie. Point (150,150) with passed point ( 2000,2000 ) would be drawn at (2150,2150);

Author:
Rich Stepanski

Field Summary
 
Fields inherited from class com.partnersoft.maps.ephemera.PointStyleEphemeron
isPixels, mapset, offsetX, offsetY, pointStyle, rotation, snapGridSize
 
Constructor Summary
RelativePointStyleEphemeron(MapSet mapset, XyPoint relative, java.lang.String pointStyle, int rotation)
          Creates a new RelativePointStyleEphmeron for the passed style.
RelativePointStyleEphemeron(MapSet mapset, XyPoint relative, java.lang.String pointStyle, int rotation, int offsetX, int offsetY)
          Creates a new RelativePointStyleEphmeron for the passed style.
RelativePointStyleEphemeron(MapSet mapset, XyPoint relative, java.lang.String pointStyle, int rotation, int offsetX, int offsetY, boolean isPixels)
          Creates a new RelativePointStyleEphmeron for the passed style.
 
Method Summary
 void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
          Draw appropriate graphics on the given surface with the given frame, mouse position, and any implementation-specific internal state.
 
Methods inherited from class com.partnersoft.maps.ephemera.PointStyleEphemeron
setSnapGridSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativePointStyleEphemeron

public RelativePointStyleEphemeron(MapSet mapset,
                                   XyPoint relative,
                                   java.lang.String pointStyle,
                                   int rotation,
                                   int offsetX,
                                   int offsetY)
Creates a new RelativePointStyleEphmeron for the passed style.

Parameters:
mapset -
pointStyle -
rotation -
offsetX -
offsetY -

RelativePointStyleEphemeron

public RelativePointStyleEphemeron(MapSet mapset,
                                   XyPoint relative,
                                   java.lang.String pointStyle,
                                   int rotation,
                                   int offsetX,
                                   int offsetY,
                                   boolean isPixels)
Creates a new RelativePointStyleEphmeron for the passed style.

Parameters:
mapset -
pointStyle -
rotation -
offsetX -
offsetY -
isPixels -

RelativePointStyleEphemeron

public RelativePointStyleEphemeron(MapSet mapset,
                                   XyPoint relative,
                                   java.lang.String pointStyle,
                                   int rotation)
Creates a new RelativePointStyleEphmeron for the passed style.

Parameters:
mapset -
pointStyle -
rotation -
Method Detail

draw

public void draw(DrawingSurface surface,
                 MapViewFrame frame,
                 XyPoint mousePosition)
Description copied from interface: Ephemeron
Draw appropriate graphics on the given surface with the given frame, mouse position, and any implementation-specific internal state. The drawing surface is set up with the given frame, and is in map coordinates (not pixels).

Specified by:
draw in interface Ephemeron
Overrides:
draw in class PointStyleEphemeron