org.rococoa.cocoa.appkit
Class NSImageRep

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSImageRep
All Implemented Interfaces:
NSCoding, NSCopying, NSObject, ObjCObject
Direct Known Subclasses:
NSBitmapImageRep, NSCachedImageRep, NSCIImageRep, NSCustomImageRep, NSEPSImageRep, NSPDFImageRep, NSPICTImageRep

public abstract class NSImageRep
extends NSObject
implements ObjCObject, NSCopying, NSCoding

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 NSImageRep.__repFlags
           
static class NSImageRep._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSImageRep()
           
 
Method Summary
static NSImageRep alloc()
           
abstract  NSInteger bitsPerSample()
          Original signature : -(NSInteger)bitsPerSample
native declaration : NSImageRep.h:60
static boolean canInitWithData(NSData data)
          Should be overridden by subclassers to load an unfiltered image.
static boolean canInitWithPasteboard(NSPasteboard pasteboard)
          Convenience method: Checks to see if any of the types on the pasteboard can be understood by a registered imagerep class after filtering or if the pasteboard contains a filename that can be understood by a registered imagerep class after filtering.
abstract  NSObject CGImageForProposedRect_context_hints(NSRect proposedDestRect, NSGraphicsContext context, NSDictionary hints)
          The parameters have the same meaning and behavior as in -[NSImage CGImageForProposedRect:context:hints:].
abstract  NSString colorSpaceName()
          Original signature : -(NSString*)colorSpaceName
native declaration : NSImageRep.h:58
abstract  boolean draw()
          Drawing methods. draw is the only primitive.
static NSImageRep._class_ getNSClass()
           
abstract  boolean hasAlpha()
          Original signature : -(BOOL)hasAlpha
native declaration : NSImageRep.h:54
static NSArray imageFileTypes()
          These expand the unfiltered lists returned by imageUnfilteredFileTypes and imageUnfilteredPasteboardTypes.
static NSArray imagePasteboardTypes()
          Original signature : +(NSArray*)imagePasteboardTypes
native declaration : NSImageRep.h:93
static ObjCClass imageRepClassForData(NSData data)
          Original signature : +(Class)imageRepClassForData:(NSData*)
native declaration : NSImageRep.h:79
static ObjCClass imageRepClassForFileType(NSString type)
          Original signature : +(Class)imageRepClassForFileType:(NSString*)
native declaration : NSImageRep.h:74
static ObjCClass imageRepClassForPasteboardType(NSString type)
          Original signature : +(Class)imageRepClassForPasteboardType:(NSString*)
native declaration : NSImageRep.h:75
static ObjCClass imageRepClassForType(NSString type)
          Original signature : +(Class)imageRepClassForType:(NSString*)
native declaration : NSImageRep.h:77
static NSArray imageRepsWithContentsOfFile(NSString filename)
          Convenience methods: Checks to see if the provided file or pasteboard types can be understood by a registered imagerep class after filtering; if so, calls imageRepsWithData: or imageRepWithData:.
static NSArray imageRepsWithContentsOfURL(NSURL url)
          Original signature : +(NSArray*)imageRepsWithContentsOfURL:(NSURL*)
native declaration : NSImageRep.h:115
static NSArray imageRepsWithPasteboard(NSPasteboard pasteboard)
          Original signature : +(NSArray*)imageRepsWithPasteboard:(NSPasteboard*)
native declaration : NSImageRep.h:117
static NSImageRep imageRepWithContentsOfFile(NSString filename)
          Original signature : +(id)imageRepWithContentsOfFile:(NSString*)
native declaration : NSImageRep.h:114
static NSImageRep imageRepWithContentsOfURL(NSURL url)
          Original signature : +(id)imageRepWithContentsOfURL:(NSURL*)
native declaration : NSImageRep.h:116
static NSImageRep imageRepWithPasteboard(NSPasteboard pasteboard)
          Original signature : +(id)imageRepWithPasteboard:(NSPasteboard*)
native declaration : NSImageRep.h:118
static NSArray imageTypes()
          This expands the unfiltered list returned by imageUnfilteredTypes.
static NSArray imageUnfilteredFileTypes()
          Implemented by subclassers to indicate what data types they can deal with.
static NSArray imageUnfilteredPasteboardTypes()
          Original signature : +(NSArray*)imageUnfilteredPasteboardTypes
native declaration : NSImageRep.h:88
static NSArray imageUnfilteredTypes()
          Implemented by subclassers to indicate what UTI-identified data types they can deal with.
abstract  boolean isOpaque()
          Original signature : -(BOOL)isOpaque
native declaration : NSImageRep.h:56
static NSImageRep new_()
           
abstract  NSInteger pixelsHigh()
          Original signature : -(NSInteger)pixelsHigh
native declaration : NSImageRep.h:64
abstract  NSInteger pixelsWide()
          Original signature : -(NSInteger)pixelsWide
native declaration : NSImageRep.h:62
static NSArray registeredImageRepClasses()
          Original signature : +(NSArray*)registeredImageRepClasses
native declaration : NSImageRep.h:73
static void registerImageRepClass(ObjCClass imageRepClass)
          Registry management: Subclasses which deal with file & pasteboard types should register themselves.
abstract  void setAlpha(boolean flag)
          Original signature : -(void)setAlpha:(BOOL)
native declaration : NSImageRep.h:53
abstract  void setBitsPerSample(NSInteger anInt)
          Original signature : -(void)setBitsPerSample:(NSInteger)
native declaration : NSImageRep.h:59
abstract  void setColorSpaceName(NSString string)
          Original signature : -(void)setColorSpaceName:(NSString*)
native declaration : NSImageRep.h:57
abstract  void setOpaque(boolean flag)
          Original signature : -(void)setOpaque:(BOOL)
native declaration : NSImageRep.h:55
abstract  void setPixelsHigh(NSInteger anInt)
          Original signature : -(void)setPixelsHigh:(NSInteger)
native declaration : NSImageRep.h:63
abstract  void setPixelsWide(NSInteger anInt)
          Original signature : -(void)setPixelsWide:(NSInteger)
native declaration : NSImageRep.h:61
abstract  void setSize(NSSize.ByValue aSize)
          Methods to return info about the image.
abstract  NSSize.ByValue size()
          Original signature : -(NSSize)size
native declaration : NSImageRep.h:52
static void unregisterImageRepClass(ObjCClass imageRepClass)
          Original signature : +(void)unregisterImageRepClass:(Class)
native declaration : NSImageRep.h:72
 
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.cocoa.foundation.protocols.NSCopying
copyWithZone
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
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

NSImageRep

public NSImageRep()
Method Detail

draw

public abstract boolean draw()
Drawing methods. draw is the only primitive.
Original signature : -(BOOL)draw
native declaration : NSImageRep.h:44


setSize

public abstract void setSize(NSSize.ByValue aSize)
Methods to return info about the image. NSImageRep provides storage for all of these; however, it's illegal to set them in some subclasses.
Original signature : -(void)setSize:(NSSize)
native declaration : NSImageRep.h:51


size

public abstract NSSize.ByValue size()
Original signature : -(NSSize)size
native declaration : NSImageRep.h:52


setAlpha

public abstract void setAlpha(boolean flag)
Original signature : -(void)setAlpha:(BOOL)
native declaration : NSImageRep.h:53


hasAlpha

public abstract boolean hasAlpha()
Original signature : -(BOOL)hasAlpha
native declaration : NSImageRep.h:54


setOpaque

public abstract void setOpaque(boolean flag)
Original signature : -(void)setOpaque:(BOOL)
native declaration : NSImageRep.h:55


isOpaque

public abstract boolean isOpaque()
Original signature : -(BOOL)isOpaque
native declaration : NSImageRep.h:56


setColorSpaceName

public abstract void setColorSpaceName(NSString string)
Original signature : -(void)setColorSpaceName:(NSString*)
native declaration : NSImageRep.h:57


colorSpaceName

public abstract NSString colorSpaceName()
Original signature : -(NSString*)colorSpaceName
native declaration : NSImageRep.h:58


setBitsPerSample

public abstract void setBitsPerSample(NSInteger anInt)
Original signature : -(void)setBitsPerSample:(NSInteger)
native declaration : NSImageRep.h:59


bitsPerSample

public abstract NSInteger bitsPerSample()
Original signature : -(NSInteger)bitsPerSample
native declaration : NSImageRep.h:60


setPixelsWide

public abstract void setPixelsWide(NSInteger anInt)
Original signature : -(void)setPixelsWide:(NSInteger)
native declaration : NSImageRep.h:61


pixelsWide

public abstract NSInteger pixelsWide()
Original signature : -(NSInteger)pixelsWide
native declaration : NSImageRep.h:62


setPixelsHigh

public abstract void setPixelsHigh(NSInteger anInt)
Original signature : -(void)setPixelsHigh:(NSInteger)
native declaration : NSImageRep.h:63


pixelsHigh

public abstract NSInteger pixelsHigh()
Original signature : -(NSInteger)pixelsHigh
native declaration : NSImageRep.h:64


registerImageRepClass

public static void registerImageRepClass(ObjCClass imageRepClass)
Registry management: Subclasses which deal with file & pasteboard types should register themselves. These classes should also implement imageUnfilteredFileTypes, imageUnfilteredPasteboardTypes, initWithData:, canInitWithData:, imageRepWithData:, and, if they have the ability to read multiple images from a file, imageRepsWithData:. These last three should not do any filtering; all filtering is automatic.
Original signature : +(void)registerImageRepClass:(Class)
native declaration : NSImageRep.h:71


unregisterImageRepClass

public static void unregisterImageRepClass(ObjCClass imageRepClass)
Original signature : +(void)unregisterImageRepClass:(Class)
native declaration : NSImageRep.h:72


registeredImageRepClasses

public static NSArray registeredImageRepClasses()
Original signature : +(NSArray*)registeredImageRepClasses
native declaration : NSImageRep.h:73


imageRepClassForFileType

public static ObjCClass imageRepClassForFileType(NSString type)
Original signature : +(Class)imageRepClassForFileType:(NSString*)
native declaration : NSImageRep.h:74


imageRepClassForPasteboardType

public static ObjCClass imageRepClassForPasteboardType(NSString type)
Original signature : +(Class)imageRepClassForPasteboardType:(NSString*)
native declaration : NSImageRep.h:75


imageRepClassForType

public static ObjCClass imageRepClassForType(NSString type)
Original signature : +(Class)imageRepClassForType:(NSString*)
native declaration : NSImageRep.h:77


imageRepClassForData

public static ObjCClass imageRepClassForData(NSData data)
Original signature : +(Class)imageRepClassForData:(NSData*)
native declaration : NSImageRep.h:79


canInitWithData

public static boolean canInitWithData(NSData data)
Should be overridden by subclassers to load an unfiltered image.
Original signature : +(BOOL)canInitWithData:(NSData*)
native declaration : NSImageRep.h:83


imageUnfilteredFileTypes

public static NSArray imageUnfilteredFileTypes()
Implemented by subclassers to indicate what data types they can deal with.
Original signature : +(NSArray*)imageUnfilteredFileTypes
native declaration : NSImageRep.h:87


imageUnfilteredPasteboardTypes

public static NSArray imageUnfilteredPasteboardTypes()
Original signature : +(NSArray*)imageUnfilteredPasteboardTypes
native declaration : NSImageRep.h:88


imageFileTypes

public static NSArray imageFileTypes()
These expand the unfiltered lists returned by imageUnfilteredFileTypes and imageUnfilteredPasteboardTypes.
Original signature : +(NSArray*)imageFileTypes
native declaration : NSImageRep.h:92


imagePasteboardTypes

public static NSArray imagePasteboardTypes()
Original signature : +(NSArray*)imagePasteboardTypes
native declaration : NSImageRep.h:93


imageUnfilteredTypes

public static NSArray imageUnfilteredTypes()
Implemented by subclassers to indicate what UTI-identified data types they can deal with.
Original signature : +(NSArray*)imageUnfilteredTypes
native declaration : NSImageRep.h:99


imageTypes

public static NSArray imageTypes()
This expands the unfiltered list returned by imageUnfilteredTypes.
Original signature : +(NSArray*)imageTypes
native declaration : NSImageRep.h:103


canInitWithPasteboard

public static boolean canInitWithPasteboard(NSPasteboard pasteboard)
Convenience method: Checks to see if any of the types on the pasteboard can be understood by a registered imagerep class after filtering or if the pasteboard contains a filename that can be understood by a registered imagerep class after filtering. If sent to a subclass, does this for just the types understood by the subclass.
Original signature : +(BOOL)canInitWithPasteboard:(NSPasteboard*)
native declaration : NSImageRep.h:109


imageRepsWithContentsOfFile

public static NSArray imageRepsWithContentsOfFile(NSString filename)
Convenience methods: Checks to see if the provided file or pasteboard types can be understood by a registered imagerep class after filtering; if so, calls imageRepsWithData: or imageRepWithData:. If sent to a subclass, does this just for the types understood by that subclass.
Original signature : +(NSArray*)imageRepsWithContentsOfFile:(NSString*)
native declaration : NSImageRep.h:113


imageRepWithContentsOfFile

public static NSImageRep imageRepWithContentsOfFile(NSString filename)
Original signature : +(id)imageRepWithContentsOfFile:(NSString*)
native declaration : NSImageRep.h:114


imageRepsWithContentsOfURL

public static NSArray imageRepsWithContentsOfURL(NSURL url)
Original signature : +(NSArray*)imageRepsWithContentsOfURL:(NSURL*)
native declaration : NSImageRep.h:115


imageRepWithContentsOfURL

public static NSImageRep imageRepWithContentsOfURL(NSURL url)
Original signature : +(id)imageRepWithContentsOfURL:(NSURL*)
native declaration : NSImageRep.h:116


imageRepsWithPasteboard

public static NSArray imageRepsWithPasteboard(NSPasteboard pasteboard)
Original signature : +(NSArray*)imageRepsWithPasteboard:(NSPasteboard*)
native declaration : NSImageRep.h:117


imageRepWithPasteboard

public static NSImageRep imageRepWithPasteboard(NSPasteboard pasteboard)
Original signature : +(id)imageRepWithPasteboard:(NSPasteboard*)
native declaration : NSImageRep.h:118


CGImageForProposedRect_context_hints

public abstract NSObject CGImageForProposedRect_context_hints(NSRect proposedDestRect,
                                                              NSGraphicsContext context,
                                                              NSDictionary hints)
The parameters have the same meaning and behavior as in -[NSImage CGImageForProposedRect:context:hints:].
This method is intended to be overridden or called, though the primary caller is NSImage. At the NSImageRep level, it creates a CGImage by drawing the receiver into a new context. The passed context and hints are used as a model for the new context. If [self draw] returns NO, this method returns NULL.
If your image rep subclass naturally uses a CGImage that it can return, override this method and return it.
You should not need to take care to cache within an implementation of this method. This main caller of this method is typically NSImage, and NSImage will hold onto the resulting CGImage if appropriate.
The CGImageRef returned is guaranteed to live as long as the current autorelease pool. The caller should not release the CGImage. This is the standard Cocoa convention, but people may not realize that it applies to CFTypes.
Original signature : -(id)CGImageForProposedRect:(NSRect*) context:(NSGraphicsContext*) hints:(NSDictionary*)
native declaration : NSImageRep.h:130


alloc

public static NSImageRep alloc()

new_

public static NSImageRep new_()

getNSClass

public static NSImageRep._class_ getNSClass()


Copyright © 2009. All Rights Reserved.