Package org.eclipse.gef.util
Class FlagSupport
java.lang.Object
org.eclipse.gef.util.FlagSupport
- Direct Known Subclasses:
- AbstractTool,- AbstractTool.Input
A structure for storing multiple flags compactly using a 32-bit
 
int.- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
FlagSupportpublic FlagSupport()
 
- 
- 
Method Details- 
getFlagprotected boolean getFlag(int flag) Returnstruethe flag (or one of the flags) indicated by the given bitmask is set to true.- Parameters:
- flag- the bitmask of a flag or flags
- Returns:
- trueif one of the flags is true
 
- 
setFlagprotected void setFlag(int flag, boolean value) Sets the flag (or all of the flags) indicated by the given bitmask to the given value.- Parameters:
- flag- the bitmask of the flag or flags
- value- the new value
 
 
-