|
|||||||||
| 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 |
addSelectionListener(MapSelectionListener listener)
|
void |
addToSelectionList(java.util.ArrayList<MapDataLink> smore)
Adds the contents of a list to the existing contents of the selection list. |
void |
centerSelection()
|
void |
clearHover()
Clear all indications caused by hovering. |
void |
clearSelectionList()
Clears all items in the selection list. |
void |
ensureSelectionIsVisible()
|
MapDataItem |
getCurrentItem()
FIXME: take this out, it's a duplicate for getSelectedItem(). |
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()
|
java.util.List<MapDataLink> |
getSelectionList()
|
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 |
mouseAddSelection(double x,
double y,
int pixelX,
int pixelY)
Adds the items at the given coordinates, as done by a mouse guesture. |
void |
mouseSelect(double x,
double y,
int pixelX,
int pixelY)
Select the item at the given coordinates, as done by a mouse guesture. |
MapDataItem |
pickDataItemAtPoint(java.lang.String mapsetName,
NameSet dataTypes,
double x,
double y)
"Pick" (find using geometric search) data item with the given parameters at the given point. |
MapDataItem |
pickDataItemAtPoint(java.lang.String mapsetName,
java.lang.String dataType,
double x,
double y)
"Pick" (find using geometric search) data item with the given parameters at the given point. |
void |
removeSelection(MapDataItem item)
|
void |
removeSelectionListener(MapSelectionListener listener)
|
void |
removeSelectionsInMapSet(java.lang.String mapsetName)
Removes all selected items coming from the given mapset. |
void |
select(double x,
double y,
int pixelX,
int pixelY)
Select the item at the given coordinates. |
boolean |
select(MapDataItem item,
java.lang.String fieldName)
Reselects using a previously loaded item and a key field name that it uses to grab the right one. |
boolean |
select(java.lang.String dataType,
java.lang.String fieldName,
java.lang.Object fieldValue,
XyPoint location)
Selects the item with the desired data type, field name, and field value. |
boolean |
select(java.lang.String dataType,
java.lang.String fieldName,
java.lang.String fieldValue,
double x,
double y)
Selects the item with the desired data type, field name, and field value. |
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 |
selectAtPoint(XyPoint point)
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 |
setSelection(RoverSet roverSet,
int dataID)
|
void |
setSelectionList(java.util.ArrayList newList)
|
void |
setSelectionList(java.util.ArrayList newList,
int newCurrentSelection)
|
void |
updateWheelMenu()
|
void |
wheelSelectNext()
Selects the next item in the selection list as done by the wheel menu. |
| 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 wheelSelectNext()
public void addToSelectionList(java.util.ArrayList<MapDataLink> smore)
public java.util.List<MapDataLink> getSelectionList()
public void setSelectionList(java.util.ArrayList newList)
public void setSelectionList(java.util.ArrayList newList,
int newCurrentSelection)
public void setCurrentSelection(int newSelection)
public void setSelection(RoverSet roverSet,
int dataID)
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 removeSelectionsInMapSet(java.lang.String mapsetName)
mapsetName -
public void selectAtPoint(double x,
double y)
public void selectAtPoint(XyPoint point)
public void selectAtPixel(int pixelX,
int pixelY)
public void select(double x,
double y,
int pixelX,
int pixelY)
public boolean select(java.lang.String dataType,
java.lang.String fieldName,
java.lang.Object fieldValue,
XyPoint location)
public boolean select(java.lang.String dataType,
java.lang.String fieldName,
java.lang.String fieldValue,
double x,
double y)
public boolean select(MapDataItem item,
java.lang.String fieldName)
public void addSelection(double x,
double y,
int pixelX,
int pixelY)
public void mouseSelect(double x,
double y,
int pixelX,
int pixelY)
public void mouseAddSelection(double x,
double y,
int pixelX,
int pixelY)
public void hover(double x,
double y,
int pixelX,
int pixelY)
public void clearHover()
public void updateWheelMenu()
public void addSelectionListener(MapSelectionListener listener)
public void removeSelectionListener(MapSelectionListener listener)
public MapDataItem pickDataItemAtPoint(java.lang.String mapsetName,
java.lang.String dataType,
double x,
double y)
public MapDataItem pickDataItemAtPoint(java.lang.String mapsetName,
NameSet dataTypes,
double x,
double y)
public java.lang.String getSelectedDataAsText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||