|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.app.MapEditLogic
public class MapEditLogic
Takes care of editing logic - the manipulation of editable map geometry.
Copyright 2005-2009 Partner Software, Inc.
| Field Summary | |
|---|---|
protected MapEditMode |
mode
|
| Constructor Summary | |
|---|---|
MapEditLogic(MapApp app)
|
|
| Method Summary | |
|---|---|
void |
activateKeypadItem(java.lang.String keyName)
|
void |
add(double x,
double y)
|
void |
add(MapEditTool tool,
double x,
double y)
|
void |
add(XyPoint point)
|
void |
addAtCenterOrGps()
|
void |
addGPS()
Deprecated. |
void |
addWithGps()
|
void |
connect(double x,
double y)
|
void |
convert()
|
void |
convertOrCopy(MapEditTool tool)
If possible, converts the current selection, otherwise, if possible, copies it. |
void |
copy()
|
void |
delete()
Deletes the currently-selected item. |
void |
edit()
|
int |
getActionCount()
|
NameSet |
getConnectTargetDataTypes()
|
java.lang.String |
getConnectTargetMapSet()
|
MapSet |
getCurrentMapSet()
|
MapEditActor |
getCurrentMapSetEditActor()
|
MapEditActor |
getCurrentSelectionEditActor()
|
MapEditTool |
getCurrentTool()
|
MapEditMode |
getMode()
|
MapEditToolTreeModel |
getToolModel()
|
boolean |
hitWheelMenu(MapMouseEvent event)
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()
|
boolean |
isAddAvailable()
|
boolean |
isDeleteAvailable()
|
boolean |
isEditAvailable()
|
boolean |
isMoveAvailable()
|
boolean |
isRotateAvailable()
|
MapEditTool |
lookupTool(java.lang.String mapsetName,
java.lang.String category,
java.lang.String toolName)
Looks up a desired MapEditTool using a mapset name, category name, and thing name. |
void |
move(double x,
double y)
Moves the currently selected item to the given location. |
void |
move(XyPoint newLocation)
Moves the currently selected item to the given location. |
void |
moveWithGps()
|
boolean |
onWheelMenu(int pixelX,
int pixelY)
|
void |
reloadToolRack()
Reloads the tool rack (e.g. |
void |
rotate(double x,
double y)
Rotates the currently selected item to the given angle (in degrees). |
void |
rotate(XyDirection direction)
Rotates the currently selected item to the given direction. |
void |
setActionCount(int count)
|
void |
setConnectTargetDataTypes(NameSet connectTargetDataTypes)
|
void |
setConnectTargetDataTypes(java.lang.String... types)
|
void |
setConnectTargetMapSet(java.lang.String connectTargetMapSet)
|
void |
setCurrentSelection(MapDataItem item)
|
void |
setMode(MapEditMode newMode)
|
void |
showActionMenu(int pixelX,
int pixelY)
|
void |
showSelectionMenu(int pixelX,
int pixelY)
|
void |
updateGui()
Use this (sparingly!) to force the various wheel menu and edit buttons etc. |
void |
updateWheelMenu()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MapEditMode mode
| Constructor Detail |
|---|
public MapEditLogic(MapApp app)
| Method Detail |
|---|
protected void initialize()
public void reloadToolRack()
public void rotate(double x,
double y)
public void rotate(XyDirection direction)
public void connect(double x,
double y)
public void move(XyPoint newLocation)
public void move(double x,
double y)
public void moveWithGps()
public void addWithGps()
public void delete()
public void setCurrentSelection(MapDataItem item)
public void updateGui()
public void updateWheelMenu()
public void add(XyPoint point)
public void add(double x,
double y)
public void addGPS()
public void add(MapEditTool tool,
double x,
double y)
public void copy()
public void convert()
public void edit()
public void activateKeypadItem(java.lang.String keyName)
public void addAtCenterOrGps()
public void showActionMenu(int pixelX,
int pixelY)
public void showSelectionMenu(int pixelX,
int pixelY)
public void convertOrCopy(MapEditTool tool)
public void setMode(MapEditMode newMode)
public MapEditMode getMode()
public boolean hitWheelMenu(MapMouseEvent event)
public boolean hoverWheelMenu(int pixelX,
int pixelY)
public boolean onWheelMenu(int pixelX,
int pixelY)
public MapEditActor getCurrentSelectionEditActor()
public MapEditActor getCurrentMapSetEditActor()
public MapEditToolTreeModel getToolModel()
public MapSet getCurrentMapSet()
public MapEditTool getCurrentTool()
public MapEditTool lookupTool(java.lang.String mapsetName,
java.lang.String category,
java.lang.String toolName)
public void setActionCount(int count)
public int getActionCount()
public java.lang.String getConnectTargetMapSet()
public void setConnectTargetMapSet(java.lang.String connectTargetMapSet)
public NameSet getConnectTargetDataTypes()
public void setConnectTargetDataTypes(NameSet connectTargetDataTypes)
public void setConnectTargetDataTypes(java.lang.String... types)
public boolean isAddAvailable()
public boolean isMoveAvailable()
public boolean isEditAvailable()
public boolean isDeleteAvailable()
public boolean isRotateAvailable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||