com.partnersoft.maps.ephemera
Class AngleDistanceTextEphemeron
java.lang.Object
com.partnersoft.maps.ephemera.TextEphemeron
com.partnersoft.maps.ephemera.AbstractUpdatingTextEphemeron
com.partnersoft.maps.ephemera.AngleDistanceTextEphemeron
- All Implemented Interfaces:
- Ephemeron
public class AngleDistanceTextEphemeron
- extends AbstractUpdatingTextEphemeron
Ephemeron that combines rotation and distance from a mouse position. Only
draws text display.
Copyright 2008 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Rich Stepanski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AngleDistanceTextEphemeron
public AngleDistanceTextEphemeron(MapSet mapset,
XyPoint anchor,
java.lang.String textStyle)
- Creates a new RotationDistanceTextEphemeron. Using passed textStyle
that lives in passed mapset.
- Parameters:
mapset - anchor - - Point to find distance and angle from.textStyle -
AngleDistanceTextEphemeron
public AngleDistanceTextEphemeron(XyPoint anchor,
java.lang.String textStyle)
- Creates a new RotationDistanceTextEphemeron. Using passed textStyle
that lives in Ephemeron mapset.
- Parameters:
anchor - - Point to find distance and angle from.textStyle -
mangleText
public void mangleText(DrawingSurface surface,
MapViewFrame frame,
XyPoint anchor,
XyPoint mousePosition)
- Description copied from class:
AbstractUpdatingTextEphemeron
- Called from each draw cycle. Text can be mangled in anyway fit by super class.
Default x,y is mousePosition. All offsets are done relative to it.
- Specified by:
mangleText in class AbstractUpdatingTextEphemeron