[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
Motif and CDE 2.1 Style Guide Reference
Selection Policies
Reference
Description
Selection policies control the details of how selection techniques work.
These policies are:
Basic policiesPolicies that basically define the selection model. These include:
Count policyDetermines whether any number of elements can be selected or at most one.
Deselection policyDetermines whether and how all elements can be deselected by the user.
Contiguity policyDetermines whether all elements selected must be contiguous.
Technique initiation policyWhen more than one technique is initiated by the same user action,
determines which technique is used.
Modification policiesPolicies that govern the details of how selections are modified. These
include:
Adjustment policyDetermines how adjustment techniques affect the current selection region.
There are three adjustment policies:
ReselectAdjusts the previous selection relative to its anchor.
EnlargeEnlarges the previous selection relative to its anchor.
BalanceAdjusts the previous selection relative to the end of the selection
farthest from where the adjustment is being done.
Toggling policyDetermines the effect of toggling elements in a selection region. There
are two toggling policies:
IndependentEach element added to the selection region has its state toggled,
independently of the state of the other elements.
AnchorWhen a new anchor element is determined, its state is toggled. All other
elements in the selection region then take on the state of the anchor element.
Toggling removal policyDetermines the selection state of elements removed from a selection region
that was adjusted using toggling. There are two toggling removal
policies:
RevertThe elements removed revert to the selection state they were in prior to
being included in the selection region.
RetoggleThe selection state of each element removed is set to the opposite of its
state in the selection region.
Inclusion policiesPolicies that determine which elements are included in a selection region.
These include:
Area inclusion policyWhen an area technique is used, determines which elements are considered
to be in the selection region. Elements can be included in an area as
follows:
EncloseOnly those elements that are entirely contained within the area.
CenterAny element whose center is within the area.
TouchAny element completely or partially contained within the area.
Anchor inclusion policyDetermines whether to enlarge an adjusted selection region to include an
anchor element or region.
End-point inclusion policyWhen a selection technique is initiated or completed on an element,
determines whether the selection region should be enlarged to include the
element.
The following selection policies define selection model usage:
Count policyControls whether the user can select more than one element.
Deselection policyControls whether the user can deselect all elements.
Contiguity policyControls whether discontiguous selections are allowed.
Technique initiation policyWhen more than one technique is initiated by the same user action,
determines which technique is used.
The following selection policies define how selections can be
modified:
Adjustment policiesControl how area and range selection techniques adjust the selection
region. The policies are:
ReselectReselects the specified region according to the current boundaries.
Enlarge onlyEnlarges the specified region to encompass the current selection.
Balance beamDefines a balance point at the midpoint of the current selection. This is
the standard policy for text.
Toggling policiesControl the kind of toggling in effect. The policies are:
Independent toggleIndependently toggles the selection state of each element in the selected
region.
Anchor toggleIdentifies an anchor element to be the element nearest to the point at
which the user pressed the SELECT button. This is the standard policy in the
Motif implementation.
Toggle removal policiesWhen used with adjusted toggling, control what happens when elements are
removed from the selection region. The policies are:
RevertReverts removed elements to the selection state they were in prior to
being included in the selection region.
RetoggleToggles the selection state of removed elements.
The following selection policies define what is included in a
selection:
Area inclusion policyWhen an area technique is used, determines which elements are considered
to be in the selection region. Elements can be included in an area as
follows:
EncloseOnly those elements that are entirely contained within the area.
CenterAny element whose center is within the area.
TouchAny element completely or partially contained within the area.
Anchor inclusion policyDetermines whether to enlarge an adjusted selection region to include an
anchor element or region.
End-point inclusion policyWhen a selection technique is initiated or completed on an element,
determines whether the selection region should be enlarged to include the
element.
Technique initiation policyControls whether an interaction initiates a touch swipe, area, or range
technique.
Guidelines
RecommendedIf a selection model's count policy allows the user to select any
number of elements, the selection model should support one or more group
techniques.
RequiredIf a selection model's count policy allows the user to select any
number of elements and the user uses a selection technique in add mode or
toggle mode, the selection state of elements outside the region identified by
the technique should be unaffected.
RequiredIf a selection model's count policy allows at most one element to be
selected, the selection model should not support group techniques.
RequiredIf a selection model's count policy allows at most one element to be
selected, a technique that selects an element should deselect any other
element that is currently selected.
RequiredAllow the user to deselect all elements with mouse-based selection
techniques when toggle mode is in use.
RequiredAllow the user to deselect all elements with keyboard-based techniques or
predefined action choices when add mode is in use.
RequiredAllow the user to deselect all elements when a text or graphics cursor is
in use.
RequiredIf the user is not allowed to deselect all elements, do not support add
mode.
RecommendedIf a selection model supports add mode or toggle mode, allow the user to
deselect all elements.
RecommendedIf a selection model supports only select mode and normal mode, do not
allow the user to deselect all elements when an element cursor is in use.
RecommendedIf the active cursor is an element cursor in a selection scope that allows
any number of elements to be selected, but the cursor is not visible because
an implicit focus policy is in use, allow the user to deselect all elements by
using predefined action choices.
RequiredIf a selection model requires contiguity, the only group techniques that
should be supported are those that select ranges of elements.
RequiredIf a selection model requires contiguity, it should not support use of
toggle mode.
RequiredRequire contiguous selections only in text.
RecommendedSupport discontiguous selections in any model whose count policy allows
more than one element to be selected. In particular, support discontiguous
selections in text if possible.
RecommendedIf an application allows a user to choose between an area and range
technique in a scope that contains primarily text, provide a value choice
outside of the scope for this purpose.
RecommendedIf an application allows a user to use both touch and area techniques in a
scope:
Use the touch technique when a mouse-based swipe technique is initiated on
an element.
Use the area technique when initiating any other selection operation (for
example, mouse-based click on an element, any mouse-based operation initiated
in the background, or any keyboard-based operation).
RequiredUse a balance policy in linearly ordered selection scopes that consist
entirely or primarily of text.
RequiredUse an anchor toggling policy in text.
RecommendedUse an anchor toggling policy in all selection scopes.
RequiredUse an enclose area inclusion policy.
RequiredIf the anchor point is on an anchor element (for example, after initiating
a point technique or an area click technique on an element), extend the
selection region to completely include the anchor element, unless a touch
inclusion policy is in use.
RequiredIf an anchor region has been defined (for example, via use of a margin or
multilevel selection technique), and a reselect adjustment policy is being
used, extend the selection to include the anchor region.
RequiredWhen a point technique or a group click (but not an adjust click)
technique is initiated on an element, enlarge the selection region to include
that element.
RecommendedWhen the elements in a selection scope are arranged in a regular one- or
two-dimensional layout and the user initiates a new selection on an element,
enlarge the selection region to include the element.
RecommendedWhen the elements in a selection scope are arranged in a regular one- or
two-dimensional layout and the user completes a selection technique on an
element, enlarge the selection region to include the element.
RecommendedWhen the elements in a selection scope are not densely packed together and
the user initiates a new selection on an element, enlarge the selection region
to include the element.
Essential Related Topics
For more information, see the Adjustment Techniques, Selection Modes,
Selection Policies, and Selection Techniques reference pages.
Supplemental Related Topics
For more information, see the Margin Selection Techniques and
Multilevel Selection Techniques reference pages.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]