|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.app.MapDrawingLogic
public class MapDrawingLogic
Takes care of drawing logic - the manipulation of editable map geometry.
| Field Summary | |
|---|---|
protected com.partnersoft.maps.app.MapDrawingLogic.DrawingScript |
currentScript
|
protected int |
mode
|
static int |
MODE_ADD
|
static int |
MODE_BROWSE
|
static int |
MODE_MOVE
|
static int |
MODE_ROTATE
|
| Constructor Summary | |
|---|---|
MapDrawingLogic(MapApp app)
|
|
| Method Summary | |
|---|---|
void |
changeType(java.lang.Object newType)
Changes the datatype of the current selection. |
void |
copy()
|
void |
delete()
Deletes the currently-selected item. |
int |
getMode()
|
JobDataComponent |
getSelectedJobDataComponent()
Returns the currently-selected JobDataComponent, if any. |
void |
gpsNewLocation(double angle,
double distance)
This adds a new location based on the current GPS reading. |
boolean |
hitWheelMenu(int pixelX,
int pixelY)
Checks for a hit on the wheel menu. |
boolean |
hoverWheelMenu(int pixelX,
int pixelY)
Checks for indication (hover) on the wheel menu. |
protected void |
initialize()
|
void |
move(double x,
double y)
Moves the currently selected item to the given location. |
boolean |
onWheelMenu(int pixelX,
int pixelY)
|
void |
placeNewLocation(double x,
double y)
Adds a new location, to the currently selected job, alternative, and chain. |
void |
placeNewLocation(java.lang.String action,
double x,
double y)
|
void |
rotate(double x,
double y)
Rotates the currently selected item to the given angle (in degrees). |
void |
rubberband(double x1,
double y1,
double x2,
double y2)
|
void |
setCurrentSelection(MapDataItem item)
|
void |
setMode(int newMode)
|
void |
setSpinning(boolean tizit)
|
void |
setStretching(boolean tizit)
|
void |
shootNewLocation(double angle,
double distance)
Shoots a new location from the currently-selected location based on angle and distance. |
void |
spin(double x,
double y)
|
void |
stretchTo(double x,
double y)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_BROWSE
public static final int MODE_ADD
public static final int MODE_MOVE
public static final int MODE_ROTATE
protected int mode
protected com.partnersoft.maps.app.MapDrawingLogic.DrawingScript currentScript
| Constructor Detail |
|---|
public MapDrawingLogic(MapApp app)
| Method Detail |
|---|
protected void initialize()
public void placeNewLocation(double x,
double y)
public void placeNewLocation(java.lang.String action,
double x,
double y)
public void shootNewLocation(double angle,
double distance)
public void gpsNewLocation(double angle,
double distance)
public JobDataComponent getSelectedJobDataComponent()
public void rotate(double x,
double y)
public void move(double x,
double y)
public void delete()
public void changeType(java.lang.Object newType)
public void setCurrentSelection(MapDataItem item)
public void copy()
public void setStretching(boolean tizit)
public void setSpinning(boolean tizit)
public void stretchTo(double x,
double y)
public void spin(double x,
double y)
public void rubberband(double x1,
double y1,
double x2,
double y2)
public void setMode(int newMode)
public int getMode()
public boolean hitWheelMenu(int pixelX,
int pixelY)
public boolean hoverWheelMenu(int pixelX,
int pixelY)
public boolean onWheelMenu(int pixelX,
int pixelY)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||