|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.app.MapSelectionLogic
public class MapSelectionLogic
Nonvisual plumbing for controlling the current selection, selection list, and indications.
| Constructor Summary | |
|---|---|
MapSelectionLogic(MapApp app)
|
|
| Method Summary | |
|---|---|
void |
addAndSelect(int dataSetID,
int dataID)
|
void |
addAndSelect(RoverSet roverSet,
int dataID)
|
void |
addAndSelect(java.lang.String roverSetName,
int dataID)
|
void |
addSelection(double x,
double y,
int pixelX,
int pixelY)
Adds the items at the given coordinates. |
void |
addSelection(int dataSetID,
int dataID)
|
void |
addSelection(RoverSet roverSet,
int dataID)
|
void |
addToSelectionList(java.util.ArrayList smore)
Adds the contents of a list to the existing contents of the selection list. |
void |
centerSelection()
|
void |
clearSelectionList()
Clears all items in the selection list. |
void |
ensureSelectionIsVisible()
|
MapDataItem |
getCurrentItem()
|
Point |
getLocationNearestLastSelect()
Returns the point (the point itself for point or text items; a vertex for lines and areas and merged items) for current selection nearest the coordinates of the last mouse selection event. |
java.lang.String |
getSelectedDataAsText()
|
MapDataItem |
getSelectedItem()
|
JobDataComponent |
getSelectedJobDataComponent()
|
void |
hover(double x,
double y,
int pixelX,
int pixelY)
"Hover" (causing indication behavior) at the given coordinates. |
void |
initialize()
Initializes the view from preferences. |
void |
removeSelection(MapDataItem item)
|
void |
select(double x,
double y,
int pixelX,
int pixelY)
Select the item at the given coordinates. |
void |
select(JobDataComponent jobDataComponent)
Selects the indicated job data component, and populates the selection list with any parents. |
void |
selectAtPixel(int pixelX,
int pixelY)
Select the item at the given pixel coordinates. |
void |
selectAtPoint(double x,
double y)
Select the item at the given map coordinates. |
void |
selectNext()
Selects the next item in the selection list. |
void |
selectPrevious()
Selects the previous item in the selection list. |
void |
setCurrentSelection(int newSelection)
|
void |
setSelectionList(java.util.ArrayList newList)
|
void |
setSelectionList(java.util.ArrayList newList,
int newCurrentSelection)
|
void |
updateWheelMenu()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapSelectionLogic(MapApp app)
| Method Detail |
|---|
public void initialize()
public MapDataItem getSelectedItem()
public Point getLocationNearestLastSelect()
public void selectPrevious()
public void selectNext()
public void addToSelectionList(java.util.ArrayList smore)
public void setSelectionList(java.util.ArrayList newList)
public void setSelectionList(java.util.ArrayList newList,
int newCurrentSelection)
public void setCurrentSelection(int newSelection)
public void addSelection(int dataSetID,
int dataID)
public void addSelection(RoverSet roverSet,
int dataID)
public void addAndSelect(int dataSetID,
int dataID)
public void addAndSelect(RoverSet roverSet,
int dataID)
public void addAndSelect(java.lang.String roverSetName,
int dataID)
public void removeSelection(MapDataItem item)
public MapDataItem getCurrentItem()
public void ensureSelectionIsVisible()
public void centerSelection()
public void clearSelectionList()
public void selectAtPoint(double x,
double y)
public void selectAtPixel(int pixelX,
int pixelY)
public void select(double x,
double y,
int pixelX,
int pixelY)
public void addSelection(double x,
double y,
int pixelX,
int pixelY)
public void select(JobDataComponent jobDataComponent)
public JobDataComponent getSelectedJobDataComponent()
public void hover(double x,
double y,
int pixelX,
int pixelY)
public void updateWheelMenu()
public java.lang.String getSelectedDataAsText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||