org.openstreetmap.josm.actions.mapmode
Class ModifiersSpec

java.lang.Object
  extended by org.openstreetmap.josm.actions.mapmode.ModifiersSpec

public class ModifiersSpec
extends java.lang.Object

TODO: rewrite to use awt modifers flag instead.


Field Summary
 int alt
           
 int ctrl
           
static int OFF
           
static int ON
           
 int shift
           
static int UNKNOWN
           
 
Constructor Summary
ModifiersSpec(int alt, int shift, int ctrl)
           
ModifiersSpec(java.lang.String str)
          'A' = Alt, 'S' = Shift, 'C' = Ctrl Lowercase signifies off and '?' means unknown/optional.
 
Method Summary
private  boolean match(int a, boolean knownValue)
           
private  boolean match(int a, int knownValue)
           
 boolean matchWithKnown(boolean knownAlt, boolean knownShift, boolean knownCtrl)
           
 boolean matchWithKnown(int knownAlt, int knownShift, int knownCtrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON

public static final int ON
See Also:
Constant Field Values

OFF

public static final int OFF
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

alt

public int alt

shift

public int shift

ctrl

public int ctrl
Constructor Detail

ModifiersSpec

public ModifiersSpec(java.lang.String str)
'A' = Alt, 'S' = Shift, 'C' = Ctrl Lowercase signifies off and '?' means unknown/optional. Order is Alt, Shift, Ctrl

Parameters:
str -

ModifiersSpec

public ModifiersSpec(int alt,
                     int shift,
                     int ctrl)
Method Detail

matchWithKnown

public boolean matchWithKnown(int knownAlt,
                              int knownShift,
                              int knownCtrl)

matchWithKnown

public boolean matchWithKnown(boolean knownAlt,
                              boolean knownShift,
                              boolean knownCtrl)

match

private boolean match(int a,
                      int knownValue)

match

private boolean match(int a,
                      boolean knownValue)


JOSM