org.rococoa.cocoa.appkit
Class NSGraphicsContext

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSGraphicsContext
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSGraphicsContext
extends NSObject
implements ObjCObject

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSGraphicsContext._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSGraphicsContext()
           
 
Method Summary
static NSGraphicsContext alloc()
           
 NSGraphicsContext_RenderingOptions as_NSGraphicsContext_NSGraphicsContext_RenderingOptions()
           
 NSQuartzCoreAdditions as_NSGraphicsContext_NSQuartzCoreAdditions()
           
abstract  NSDictionary attributes()
          Returns attributes used to create this instance
Original signature : -(NSDictionary*)attributes
native declaration : NSGraphicsContext.h:75
static NSGraphicsContext currentContext()
          Setting and identifying the current context in the thread
Original signature : +(NSGraphicsContext*)currentContext
native declaration : NSGraphicsContext.h:60
static boolean currentContextDrawingToScreen()
          Convenience cover method for [[NSGraphicsContext currentContext] isDrawingToScreen]
Original signature : +(BOOL)currentContextDrawingToScreen
native declaration : NSGraphicsContext.h:64
abstract  void flushGraphics()
          Original signature : -(void)flushGraphics
native declaration : NSGraphicsContext.h:84
static NSGraphicsContext._class_ getNSClass()
           
static NSGraphicsContext graphicsContextWithAttributes(NSDictionary attributes)
          Instantiates from an appropriate concrete subclass depending on NSGraphicsContextDestinationAttributeName attribute
Original signature : +(NSGraphicsContext*)graphicsContextWithAttributes:(NSDictionary*)
native declaration : NSGraphicsContext.h:44
static NSGraphicsContext graphicsContextWithBitmapImageRep(NSBitmapImageRep bitmapRep)
          Convenience cover method for [NSGraphicsContext graphicsContextWithAttributes:[NSDictionary dictionaryWithObject: forKey:NSGraphicsContextDestinationAttributeName]].
static NSGraphicsContext graphicsContextWithGraphicsPort_flipped(Pointer graphicsPort, boolean initialFlippedState)
          Instantiates from an arbitrary graphicsPort (usually CGContextRef).
static NSGraphicsContext graphicsContextWithWindow(NSWindow window)
          Convenience cover method for [NSGraphicsContext graphicsContextWithAttributes:[NSDictionary dictionaryWithObject: forKey:NSGraphicsContextDestinationAttributeName]]
Original signature : +(NSGraphicsContext*)graphicsContextWithWindow:(NSWindow*)
native declaration : NSGraphicsContext.h:47
abstract  Pointer graphicsPort()
          Platform specific drawing context (usually CGContextRef)
Original signature : -(void*)graphicsPort
native declaration : NSGraphicsContext.h:87
abstract  boolean isDrawingToScreen()
          Testing the drawing destination
Original signature : -(BOOL)isDrawingToScreen
native declaration : NSGraphicsContext.h:78
abstract  boolean isFlipped()
          Returns the flip state of the receiver.
static NSGraphicsContext new_()
           
static void restoreGraphicsState()
          Pops a context from per-thread stack, makes it current, and calls -restoreGraphicsContext.
static void saveGraphicsState()
          Calls -saveGraphicsContext, and pushes the current context on per-thread stack.
static void setCurrentContext(NSGraphicsContext context)
          Original signature : +(void)setCurrentContext:(NSGraphicsContext*)
native declaration : NSGraphicsContext.h:61
static void setGraphicsState(NSInteger gState)
          Makes gState's context current, and resets graphics state.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSGraphicsContext

public NSGraphicsContext()
Method Detail

as_NSGraphicsContext_NSGraphicsContext_RenderingOptions

public NSGraphicsContext_RenderingOptions as_NSGraphicsContext_NSGraphicsContext_RenderingOptions()

as_NSGraphicsContext_NSQuartzCoreAdditions

public NSQuartzCoreAdditions as_NSGraphicsContext_NSQuartzCoreAdditions()

graphicsContextWithAttributes

public static NSGraphicsContext graphicsContextWithAttributes(NSDictionary attributes)
Instantiates from an appropriate concrete subclass depending on NSGraphicsContextDestinationAttributeName attribute
Original signature : +(NSGraphicsContext*)graphicsContextWithAttributes:(NSDictionary*)
native declaration : NSGraphicsContext.h:44


graphicsContextWithWindow

public static NSGraphicsContext graphicsContextWithWindow(NSWindow window)
Convenience cover method for [NSGraphicsContext graphicsContextWithAttributes:[NSDictionary dictionaryWithObject: forKey:NSGraphicsContextDestinationAttributeName]]
Original signature : +(NSGraphicsContext*)graphicsContextWithWindow:(NSWindow*)
native declaration : NSGraphicsContext.h:47


graphicsContextWithBitmapImageRep

public static NSGraphicsContext graphicsContextWithBitmapImageRep(NSBitmapImageRep bitmapRep)
Convenience cover method for [NSGraphicsContext graphicsContextWithAttributes:[NSDictionary dictionaryWithObject: forKey:NSGraphicsContextDestinationAttributeName]]. Only NSBitmapImageRep instances with isPlanar == NO are supported.
Original signature : +(NSGraphicsContext*)graphicsContextWithBitmapImageRep:(NSBitmapImageRep*)
native declaration : NSGraphicsContext.h:52


graphicsContextWithGraphicsPort_flipped

public static NSGraphicsContext graphicsContextWithGraphicsPort_flipped(Pointer graphicsPort,
                                                                        boolean initialFlippedState)
Instantiates from an arbitrary graphicsPort (usually CGContextRef). initialFlippedState is used to determine the return value from -isFlipped when no view is focused in the context.
Original signature : +(NSGraphicsContext*)graphicsContextWithGraphicsPort:(void*) flipped:(BOOL)
native declaration : NSGraphicsContext.h:56


currentContext

public static NSGraphicsContext currentContext()
Setting and identifying the current context in the thread
Original signature : +(NSGraphicsContext*)currentContext
native declaration : NSGraphicsContext.h:60


setCurrentContext

public static void setCurrentContext(NSGraphicsContext context)
Original signature : +(void)setCurrentContext:(NSGraphicsContext*)
native declaration : NSGraphicsContext.h:61


currentContextDrawingToScreen

public static boolean currentContextDrawingToScreen()
Convenience cover method for [[NSGraphicsContext currentContext] isDrawingToScreen]
Original signature : +(BOOL)currentContextDrawingToScreen
native declaration : NSGraphicsContext.h:64


saveGraphicsState

public static void saveGraphicsState()
Calls -saveGraphicsContext, and pushes the current context on per-thread stack. It's functional equivalent of PSgsave
Original signature : +(void)saveGraphicsState
native declaration : NSGraphicsContext.h:68


restoreGraphicsState

public static void restoreGraphicsState()
Pops a context from per-thread stack, makes it current, and calls -restoreGraphicsContext. It's functional equivalent of PSgrestore
Original signature : +(void)restoreGraphicsState
native declaration : NSGraphicsContext.h:70


setGraphicsState

public static void setGraphicsState(NSInteger gState)
Makes gState's context current, and resets graphics state. The gState must be created in the calling thread
Original signature : +(void)setGraphicsState:(NSInteger)
native declaration : NSGraphicsContext.h:72


attributes

public abstract NSDictionary attributes()
Returns attributes used to create this instance
Original signature : -(NSDictionary*)attributes
native declaration : NSGraphicsContext.h:75


isDrawingToScreen

public abstract boolean isDrawingToScreen()
Testing the drawing destination
Original signature : -(BOOL)isDrawingToScreen
native declaration : NSGraphicsContext.h:78


flushGraphics

public abstract void flushGraphics()
Original signature : -(void)flushGraphics
native declaration : NSGraphicsContext.h:84


graphicsPort

public abstract Pointer graphicsPort()
Platform specific drawing context (usually CGContextRef)
Original signature : -(void*)graphicsPort
native declaration : NSGraphicsContext.h:87


isFlipped

public abstract boolean isFlipped()
Returns the flip state of the receiver. The state is determined by messaging -isFlipped to the focus view in the context. If no view has focus, returns NO unless the receiver is instantiated via graphicsContextWithGraphicsPort:drawingToScreen:flipped: with initialFlippedState == YES.
Original signature : -(BOOL)isFlipped
native declaration : NSGraphicsContext.h:92


alloc

public static NSGraphicsContext alloc()

new_

public static NSGraphicsContext new_()

getNSClass

public static NSGraphicsContext._class_ getNSClass()


Copyright © 2009. All Rights Reserved.