Java Doc for Utilities.java in  » IDE-Netbeans » library » org » openide » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » library » org.openide.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openide.util.Utilities

Utilities
final public class Utilities (Code)
Otherwise uncategorized useful static methods.
author:
   Jan Palka, Ian Formanek, Jaroslav Tulach


Field Summary
final public static  intOS_AIX
     Operating system is IBM AIX.
final public static  intOS_DEC
    
final public static  intOS_FREEBSD
    
final public static  intOS_HP
     Operating system is HP-UX.
final public static  intOS_IRIX
     Operating system is SGI IRIX.
final public static  intOS_LINUX
     Operating system is Linux.
final public static  intOS_MAC
     Operating system is Mac.
final public static  intOS_OS2
     Operating system is OS/2.
final public static  intOS_OTHER
     Operating system is unknown.
final public static  intOS_SOLARIS
     Operating system is Solaris.
final public static  intOS_SUNOS
     Operating system is Sun OS.
final public static  intOS_TRU64
    
final public static  intOS_UNIX_MASK
     A mask for Unix platforms.
final public static  intOS_VMS
    
final public static  intOS_WIN2000
     Operating system is Windows 2000.
final public static  intOS_WIN95
     Operating system is Windows 95.
final public static  intOS_WIN98
     Operating system is Windows 98.
final public static  intOS_WINDOWS_MASK
     A mask for Windows platforms.
final public static  intOS_WINNT
     Operating system is Windows NT.
final public static  intOS_WIN_OTHER
    
final public static  intTYPICAL_WINDOWS_TASKBAR_HEIGHT
    


Method Summary
public static  RectanglefindCenterBounds(Dimension componentSize)
     Helps client code place components on the center of the screen.
public static  ClassgetObjectType(Class c)
     Get the object type for given primitive type.
Parameters:
  c - primitive type (e.g.
final public static  intgetOperatingSystem()
     Get the operating system on which the IDE is running.
public static  ClassgetPrimitiveType(Class c)
     Get the primitive type for given object type.
Parameters:
  c - object type (e.g.
public static  RectanglegetUsableScreenBounds()
     Returns the usable area of the screen where applications can place its windows.
public static  RectanglegetUsableScreenBounds(GraphicsConfiguration gconf)
     Returns the usable area of the screen where applications can place its windows.
final public static  booleanisUnix()
     Test whether the IDE is running on some variant of Unix.
final public static  booleanisWindows()
     Test whether the IDE is running on some variant of Windows.
final static  voidresetOperatingSystem()
    
public static  Object[]toObjectArray(Object array)
     Convert an array of primitive types to an array of objects. E.g.
public static  ObjecttoPrimitiveArray(Object[] array)
     Convert an array of objects to an array of primitive types. E.g.

Field Detail
OS_AIX
final public static int OS_AIX(Code)
Operating system is IBM AIX.



OS_DEC
final public static int OS_DEC(Code)



OS_FREEBSD
final public static int OS_FREEBSD(Code)
Operating system is FreeBSD
since:
   4.50



OS_HP
final public static int OS_HP(Code)
Operating system is HP-UX.



OS_IRIX
final public static int OS_IRIX(Code)
Operating system is SGI IRIX.



OS_LINUX
final public static int OS_LINUX(Code)
Operating system is Linux.



OS_MAC
final public static int OS_MAC(Code)
Operating system is Mac.



OS_OS2
final public static int OS_OS2(Code)
Operating system is OS/2.



OS_OTHER
final public static int OS_OTHER(Code)
Operating system is unknown.



OS_SOLARIS
final public static int OS_SOLARIS(Code)
Operating system is Solaris.



OS_SUNOS
final public static int OS_SUNOS(Code)
Operating system is Sun OS.



OS_TRU64
final public static int OS_TRU64(Code)
Operating system is Compaq TRU64 Unix



OS_UNIX_MASK
final public static int OS_UNIX_MASK(Code)
A mask for Unix platforms.



OS_VMS
final public static int OS_VMS(Code)
Operating system is Compaq OpenVMS



OS_WIN2000
final public static int OS_WIN2000(Code)
Operating system is Windows 2000.



OS_WIN95
final public static int OS_WIN95(Code)
Operating system is Windows 95.



OS_WIN98
final public static int OS_WIN98(Code)
Operating system is Windows 98.



OS_WINDOWS_MASK
final public static int OS_WINDOWS_MASK(Code)
A mask for Windows platforms.



OS_WINNT
final public static int OS_WINNT(Code)
Operating system is Windows NT.



OS_WIN_OTHER
final public static int OS_WIN_OTHER(Code)
Operating system is one of the Windows variants but we don't know which one it is



TYPICAL_WINDOWS_TASKBAR_HEIGHT
final public static int TYPICAL_WINDOWS_TASKBAR_HEIGHT(Code)
A height of the windows's taskbar





Method Detail
findCenterBounds
public static Rectangle findCenterBounds(Dimension componentSize)(Code)
Helps client code place components on the center of the screen. It handles multiple monitor configuration correctly
Parameters:
  componentSize - the size of the component bounds of the centered component
since:
   2.5



getObjectType
public static Class getObjectType(Class c)(Code)
Get the object type for given primitive type.
Parameters:
  c - primitive type (e.g. int) object type (e.g. Integer)



getOperatingSystem
final public static int getOperatingSystem()(Code)
Get the operating system on which the IDE is running. one of the OS_* constants (such as Utilities.OS_WINNT)



getPrimitiveType
public static Class getPrimitiveType(Class c)(Code)
Get the primitive type for given object type.
Parameters:
  c - object type (e.g. Integer) primitive type (e.g. int)



getUsableScreenBounds
public static Rectangle getUsableScreenBounds()(Code)
Returns the usable area of the screen where applications can place its windows. The method subtracts from the screen the area of taskbars, system menus and the like. The screen this method applies to is the one which is considered current, ussually the one where the current input focus is. the rectangle of the screen where one can place windows
since:
   2.5



getUsableScreenBounds
public static Rectangle getUsableScreenBounds(GraphicsConfiguration gconf)(Code)
Returns the usable area of the screen where applications can place its windows. The method subtracts from the screen the area of taskbars, system menus and the like.
Parameters:
  gconf - the GraphicsConfiguration of the monitor the rectangle of the screen where one can place windows
since:
   2.5



isUnix
final public static boolean isUnix()(Code)
Test whether the IDE is running on some variant of Unix. Linux is included as well as the commercial vendors. true some sort of Unix, false if some other manner of operating system



isWindows
final public static boolean isWindows()(Code)
Test whether the IDE is running on some variant of Windows. true if Windows, false if some other manner of operating system



resetOperatingSystem
final static void resetOperatingSystem()(Code)



toObjectArray
public static Object[] toObjectArray(Object array)(Code)
Convert an array of primitive types to an array of objects. E.g. an int[] would be turned into an Integer[].
Parameters:
  array - the primitive array a wrapper array
throws:
  IllegalArgumentException - if the array element type is not primitive



toPrimitiveArray
public static Object toPrimitiveArray(Object[] array)(Code)
Convert an array of objects to an array of primitive types. E.g. an Integer[] would be changed to an int[].
Parameters:
  array - the wrapper array a primitive array
throws:
  IllegalArgumentException - if the array element type is not a primitive wrapper



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.