public class ControlPreferences extends AbstractSubsystemPreferences
Copyright 2010 Partner Software, Inc.
| Constructor and Description |
|---|
ControlPreferences(Cog state) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDragThreshold()
This is the approximate number of pixels the mouse must move between between
a button down and button up event to register as a drag instead of a click.
|
java.lang.String |
getMouseGestures()
This is the name of the gesture handler for mouse gestures.
|
int |
getSelectionRadius()
This is the approximate radius of the area around the mouse pointer used to determine
which items are selected or indicated.
|
boolean |
getViewDataOnFind()
If true, the map viewer will set the current tab to the view data tab after
a find feature is activated.
|
boolean |
getZoomOnFind()
If true, the map viewer will set the zoom to a high-detail level
when the find feature is activated.
|
int |
getZoomOnFindLevel()
This is the zoom level for zoom-on-find.
|
void |
setDragThreshold(int dragThreshold) |
void |
setMouseGestures(java.lang.String newGestures) |
void |
setSelectionRadius(int selectionRadius) |
void |
setViewDataOnFind(boolean viewDataOnFind) |
void |
setZoomOnFind(boolean zoomOnFind) |
void |
setZoomOnFindLevel(int newLevel) |
Cog |
toCog()
Returns the complete internal state of this object in the form of a
Cog. |
getName, setNamepublic ControlPreferences(Cog state)
public Cog toCog()
CoggableCog.toCog in interface CoggabletoCog in class AbstractSubsystemPreferencespublic boolean getZoomOnFind()
public void setZoomOnFind(boolean zoomOnFind)
public int getZoomOnFindLevel()
public void setZoomOnFindLevel(int newLevel)
public boolean getViewDataOnFind()
public void setViewDataOnFind(boolean viewDataOnFind)
public int getSelectionRadius()
public void setSelectionRadius(int selectionRadius)
public int getDragThreshold()
public void setDragThreshold(int dragThreshold)
public java.lang.String getMouseGestures()
public void setMouseGestures(java.lang.String newGestures)