|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.util.FlagSupport
A structure for storing multiple flags compactly using a 32-bit int
.
Constructor Summary | |
FlagSupport()
|
Method Summary | |
protected boolean |
getFlag(int flag)
Returns true the flag (or one of the flags) indicated by the given bitmask
is set to true. |
protected void |
setFlag(int flag,
boolean value)
Sets the flag (or all of the flags) indicated by the given bitmask to the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FlagSupport()
Method Detail |
protected boolean getFlag(int flag)
true
the flag (or one of the flags) indicated by the given bitmask
is set to true.
flag
- the bitmask of a flag or flags
true
if one of the flags is trueprotected void setFlag(int flag, boolean value)
flag
- the bitmask of the flag or flagsvalue
- the new value
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |