net.refractions.udig.project.ui
Class SelectionStyle

java.lang.Object
  extended by net.refractions.udig.project.ui.SelectionStyle

public class SelectionStyle
extends java.lang.Object

Describes how to handle a layer's selection.

Author:
Jesse

Field Summary
static SelectionStyle EXCLUSIVE
          Only draw the selection but as normal features
static SelectionStyle EXCLUSIVE_ALL
          Draw the selection when there is a selection, draw the rest as normal
static SelectionStyle EXCLUSIVE_ALL_SELECTION
          Draw the selection when there is a selection, draw the rest as normal
static SelectionStyle EXCLUSIVE_SELECTION
          Only draw the selection but using the selection style
static SelectionStyle IGNORE
          Don't draw the selections
static SelectionStyle OVERLAY
          Overlay the selection on top of the normal rendering
 
Constructor Summary
protected SelectionStyle()
           
  SelectionStyle(net.refractions.udig.project.ui.SelectionStyle.Style style)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean getShowLabels()
           
protected  java.util.List<Layer> handleSelection(java.util.List<Layer> layersInternal)
           
 int hashCode()
           
 java.lang.String name()
          Returns a name (and identifier) for this object
 void setShowLabels(boolean b)
           
static SelectionStyle valueOf(java.lang.String name)
          Given a name returned by name() this class returns one of the defaults
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE

public static final SelectionStyle IGNORE
Don't draw the selections


OVERLAY

public static final SelectionStyle OVERLAY
Overlay the selection on top of the normal rendering


EXCLUSIVE

public static final SelectionStyle EXCLUSIVE
Only draw the selection but as normal features


EXCLUSIVE_SELECTION

public static final SelectionStyle EXCLUSIVE_SELECTION
Only draw the selection but using the selection style


EXCLUSIVE_ALL

public static final SelectionStyle EXCLUSIVE_ALL
Draw the selection when there is a selection, draw the rest as normal


EXCLUSIVE_ALL_SELECTION

public static final SelectionStyle EXCLUSIVE_ALL_SELECTION
Draw the selection when there is a selection, draw the rest as normal

The selection is to be drawn using the selection style

Constructor Detail

SelectionStyle

protected SelectionStyle()

SelectionStyle

public SelectionStyle(net.refractions.udig.project.ui.SelectionStyle.Style style)
Method Detail

handleSelection

protected java.util.List<Layer> handleSelection(java.util.List<Layer> layersInternal)

name

public java.lang.String name()
Returns a name (and identifier) for this object

Returns:
a name (and identifier) for this object

setShowLabels

public void setShowLabels(boolean b)

getShowLabels

public boolean getShowLabels()

valueOf

public static SelectionStyle valueOf(java.lang.String name)
Given a name returned by name() this class returns one of the defaults

Parameters:
name - name of the SelectionStyle
Returns:
null or one of the default instances

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object