/* */ package com.apple.cocoa.application;
/* */
/* */ import com.apple.cocoa.foundation.NSAttributedString;
/* */ import com.apple.cocoa.foundation.NSObject;
/* */ import com.apple.cocoa.foundation.NSPoint;
/* */ import com.apple.cocoa.foundation.NSRange;
/* */ import com.apple.cocoa.foundation.NSRect;
/* */ import com.apple.cocoa.foundation.NSRuntime;
/* */ import com.apple.cocoa.foundation.NSSize;
/* */
/* */ public class NSGraphics extends NSObject
/* */ {
/* */ public static final float White = 1.0F;
/* */ public static final float LightGray = 0.3333333F;
/* */ public static final float DarkGray = 0.6666667F;
/* */ public static final float Black = 0.0F;
/* */ public static final int FocusRingOnly = 0;
/* */ public static final int FocusRingBelow = 1;
/* */ public static final int FocusRingAbove = 2;
/* */ public static final int FocusRingTypeDefault = 0;
/* */ public static final int FocusRingTypeNone = 1;
/* */ public static final int FocusRingTypeExterior = 2;
/* */ public static final String DeviceResolution = "NSDeviceResolution";
/* */ public static final String DeviceColorSpaceName = "NSDeviceColorSpaceName";
/* */ public static final String DeviceBitsPerSample = "NSDeviceBitsPerSample";
/* */ public static final String DeviceIsScreen = "NSDeviceIsScreen";
/* */ public static final String DeviceIsPrinter = "NSDeviceIsPrinter";
/* */ public static final String DeviceSize = "NSDeviceSize";
/* */ public static final String CalibratedWhiteColorSpace = "NSCalibratedWhiteColorSpace";
/* */ public static final String CalibratedBlackColorSpace = "NSCalibratedBlackColorSpace";
/* */ public static final String CalibratedRGBColorSpace = "NSCalibratedRGBColorSpace";
/* */ public static final String DeviceWhiteColorSpace = "NSDeviceWhiteColorSpace";
/* */ public static final String DeviceBlackColorSpace = "NSDeviceBlackColorSpace";
/* */ public static final String DeviceRGBColorSpace = "NSDeviceRGBColorSpace";
/* */ public static final String DeviceCMYKColorSpace = "NSDeviceCMYKColorSpace";
/* */ public static final String NamedColorSpace = "NSNamedColorSpace";
/* */ public static final String PatternColorSpace = "NSPatternColorSpace";
/* */ public static final String CustomColorSpace = "NSCustomColorSpace";
/* */ public static final String DynamicSystemColorSpace = "NSDynamicSystemColorSpace";
/* */ public static final String SystemColorsDidChangeNotification = "NSSystemColorsDidChangeNotification";
/* */
/* */ public static native int bestDepth(String paramString, int paramInt1, int paramInt2, boolean paramBoolean);
/* */
/* */ public static native boolean planarFromDepth(int paramInt);
/* */
/* */ public static native String colorSpaceFromDepth(int paramInt);
/* */
/* */ public static native int bitsPerSampleFromDepth(int paramInt);
/* */
/* */ public static native int bitsPerPixelFromDepth(int paramInt);
/* */
/* */ public static native int numberOfColorComponents(String paramString);
/* */
/* */ public static native void frameRect(NSRect paramNSRect);
/* */
/* */ public static native void frameRectWithWidth(NSRect paramNSRect, float paramFloat);
/* */
/* */ public static native void frameRectWithWidthUsingOperation(NSRect paramNSRect, float paramFloat, int paramInt);
/* */
/* */ public static native void eraseRect(NSRect paramNSRect);
/* */
/* */ public static native void highlightRect(NSRect paramNSRect);
/* */
/* */ public static native void dottedFrameRect(NSRect paramNSRect);
/* */
/* */ public static native void drawWindowBackground(NSRect paramNSRect);
/* */
/* */ public static native void drawGrayBezel(NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native void drawGroove(NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native void drawWhiteBezel(NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native void drawButton(NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native void drawDarkBezel(NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native void drawLightBezel(NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native NSColor readPixel(NSPoint paramNSPoint);
/* */
/* */ public static native void copyBitmapFromGState(int paramInt, NSRect paramNSRect1, NSRect paramNSRect2);
/* */
/* */ public static native void copyBits(int paramInt, NSRect paramNSRect, NSPoint paramNSPoint);
/* */
/* */ public static native int convertWindowNumberToGlobal(int paramInt);
/* */
/* */ public static native int convertGlobalToWindowNumber(int paramInt);
/* */
/* */ public static native int windowCount();
/* */
/* */ public static void drawAttributedString(NSAttributedString paramNSAttributedString, NSPoint paramNSPoint)
/* */ {
/* 288 */ drawAttributedStringAtPointNative(paramNSAttributedString, paramNSPoint);
/* */ }
/* */
/* */ private static native void drawAttributedStringAtPointNative(NSAttributedString paramNSAttributedString, NSPoint paramNSPoint);
/* */
/* */ public static void drawAttributedString(NSAttributedString paramNSAttributedString, NSRect paramNSRect)
/* */ {
/* 301 */ drawAttributedStringInRectNative(paramNSAttributedString, paramNSRect);
/* */ }
/* */
/* */ private static native void drawAttributedStringInRectNative(NSAttributedString paramNSAttributedString, NSRect paramNSRect);
/* */
/* */ public static native NSSize sizeOfAttributedString(NSAttributedString paramNSAttributedString);
/* */
/* */ public static native void setFocusRingStyle(int paramInt);
/* */
/* */ public static native void disableScreenUpdates();
/* */
/* */ public static native void enableScreenUpdates();
/* */
/* */ private void init()
/* */ {
/* 359 */ initNative(); }
/* */ private native void initNative();
/* */
/* */ public static native int[] availableWindowDepths();
/* */
/* */ public static native void fillRectListInRange(NSRect[] paramArrayOfNSRect, NSRange paramNSRange);
/* */
/* */ public static native void fillRectListWithColorsInRange(NSRect[] paramArrayOfNSRect, NSColor[] paramArrayOfNSColor, NSRange paramNSRange);
/* */
/* */ public static native void clipRectListInRange(NSRect[] paramArrayOfNSRect, NSRange paramNSRange);
/* */
/* */ public static native void drawColorTiledRects(NSRect paramNSRect1, NSRect paramNSRect2, int[] paramArrayOfInt, NSColor[] paramArrayOfNSColor, NSRange paramNSRange);
/* */
/* */ public static native void drawBitmap(NSRect paramNSRect, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, boolean paramBoolean1, boolean paramBoolean2, String paramString, byte[] paramArrayOfByte);
/* */
/* */ public static native void windowList(int[] paramArrayOfInt);
/* */
/* 376 */ public static void fillRectList(NSRect[] paramArrayOfNSRect) { fillRectListInRange(paramArrayOfNSRect, new NSRange(0, paramArrayOfNSRect.length)); }
/* */
/* */ public static void fillRectListWithColors(NSRect[] paramArrayOfNSRect, NSColor[] paramArrayOfNSColor) {
/* 379 */ fillRectListWithColorsInRange(paramArrayOfNSRect, paramArrayOfNSColor, new NSRange(0, paramArrayOfNSRect.length));
/* */ }
/* */ public static void clipRectList(NSRect[] paramArrayOfNSRect) {
/* 382 */ clipRectListInRange(paramArrayOfNSRect, new NSRange(0, paramArrayOfNSRect.length));
/* */ }
/* */
/* */ protected NSGraphics(boolean paramBoolean, int paramInt)
/* */ {
/* 434 */ super(paramBoolean, paramInt);
/* */ }
/* */
/* */ public NSGraphics()
/* */ {
/* */ }
/* */
/* */ static
/* */ {
/* 21 */ NSRuntime.loadLibrary("ObjCJava");
/* 22 */ NSRuntime.loadLibrary("FoundationJava");
/* 23 */ NSRuntime.loadLibrary("AppKitJava");
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\
* Qualified Name: com.apple.cocoa.application.NSGraphics
* JD-Core Version: 0.6.2
*/