com.partnersoft.preferences.model
Class ControlPreferences

java.lang.Object
  extended by com.partnersoft.preferences.model.AbstractSubsystemPreferences
      extended by com.partnersoft.preferences.model.ControlPreferences
All Implemented Interfaces:
Coggable, SubsystemPreferences

public class ControlPreferences
extends AbstractSubsystemPreferences

Preferences for map control behavior.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
ControlPreferences(Cog state)
           
 
Method Summary
 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.
 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.
 void setDragThreshold(int dragThreshold)
           
 void setSelectionRadius(int selectionRadius)
           
 void setViewDataOnFind(boolean viewDataOnFind)
           
 void setZoomOnFind(boolean zoomOnFind)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class com.partnersoft.preferences.model.AbstractSubsystemPreferences
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlPreferences

public ControlPreferences(Cog state)
Method Detail

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Overrides:
toCog in class AbstractSubsystemPreferences
Returns:
Cog representing the internal state of this object

getZoomOnFind

public boolean getZoomOnFind()
If true, the map viewer will set the zoom to a high-detail level when the find feature is activated. There was a mode switch for this in 3.7, and it was the default behavior.


setZoomOnFind

public void setZoomOnFind(boolean zoomOnFind)

getViewDataOnFind

public boolean getViewDataOnFind()
If true, the map viewer will set the current tab to the view data tab after a find feature is activated. This was the default behavior in 3.7.


setViewDataOnFind

public void setViewDataOnFind(boolean viewDataOnFind)

getSelectionRadius

public int getSelectionRadius()
This is the approximate radius of the area around the mouse pointer used to determine which items are selected or indicated. This radius is specified in screen pixels. Zero means use the default value. Use larger values for problematic environments like touch screens or for users that have trouble with the default setting.


setSelectionRadius

public void setSelectionRadius(int selectionRadius)

getDragThreshold

public 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. Zero means use the default value. Use larger values for problematic environments, controllers, or users who have difficulty with dragging.


setDragThreshold

public void setDragThreshold(int dragThreshold)