Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.util
Class FlagSupport

java.lang.Object
  extended by
org.eclipse.gef.util.FlagSupport
Direct Known Subclasses:
AbstractTool, AbstractTool.Input

public class FlagSupport
extends java.lang.Object

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

FlagSupport

public FlagSupport()
Method Detail

getFlag

protected boolean getFlag(int flag)
Returns true the 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:
true if 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 flags
value - the new value

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire