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 Summary
Constructors -
Method Summary
-
Constructor Details
-
FlagSupport
public FlagSupport()
-
-
Method Details
-
getFlag
protected 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
-
setFlag
protected 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 flagsvalue- the new value
-