org.rococoa.cocoa.appkit
Class NSTextBlock

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSTextBlock
All Implemented Interfaces:
NSCoding, NSCopying, NSObject, ObjCObject
Direct Known Subclasses:
NSTextTable, NSTextTableBlock

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

NSTextBlock is the basic object for text block layout, and the superclass of the other classes.
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 NSTextBlock._class_
           
 
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.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSTextBlock()
           
 
Method Summary
static NSTextBlock alloc()
          native declaration : NSTextTable.h:109
Conversion Error : /**
* This method will be called during drawing to draw any colors and other decorations before the text is drawn.
abstract  NSColor backgroundColor()
          Original signature : -(NSColor*)backgroundColor
native declaration : NSTextTable.h:99
abstract  org.rococoa.cocoa.CGFloat contentWidth()
          Original signature : -(CGFloat)contentWidth
native declaration : NSTextTable.h:84
abstract  int contentWidthValueType()
          Original signature : -(NSTextBlockValueType)contentWidthValueType
native declaration : NSTextTable.h:85
static NSTextBlock create()
          Factory method
static NSTextBlock._class_ getNSClass()
           
abstract  NSTextBlock init()
          Designated initializer
Original signature : -(id)init
native declaration : NSTextTable.h:75
static NSTextBlock new_()
           
abstract  void setBackgroundColor(NSColor color)
          Colors
Original signature : -(void)setBackgroundColor:(NSColor*)
native declaration : NSTextTable.h:98
abstract  void setBorderColor(NSColor color)
          Convenience method sets all edges at once
Original signature : -(void)setBorderColor:(NSColor*)
native declaration : NSTextTable.h:101
abstract  void setContentWidth_type(org.rococoa.cocoa.CGFloat val, int type)
          Convenience methods for content width in particular, using the above methods with dimension == NSTextBlockWidth
Original signature : -(void)setContentWidth:(CGFloat) type:(NSTextBlockValueType)
native declaration : NSTextTable.h:83
abstract  void setValue_type_forDimension(org.rococoa.cocoa.CGFloat val, int type, int dimension)
          Content size
Original signature : -(void)setValue:(CGFloat) type:(NSTextBlockValueType) forDimension:(NSTextBlockDimension)
native declaration : NSTextTable.h:78
abstract  void setVerticalAlignment(int alignment)
          Alignment
Original signature : -(void)setVerticalAlignment:(NSTextBlockVerticalAlignment)
native declaration : NSTextTable.h:94
abstract  void setWidth_type_forLayer(org.rococoa.cocoa.CGFloat val, int type, int layer)
          Convenience method sets all edges at once
Original signature : -(void)setWidth:(CGFloat) type:(NSTextBlockValueType) forLayer:(NSTextBlockLayer)
native declaration : NSTextTable.h:89
abstract  org.rococoa.cocoa.CGFloat valueForDimension(int dimension)
          Original signature : -(CGFloat)valueForDimension:(NSTextBlockDimension)
native declaration : NSTextTable.h:79
abstract  int valueTypeForDimension(int dimension)
          Original signature : -(NSTextBlockValueType)valueTypeForDimension:(NSTextBlockDimension)
native declaration : NSTextTable.h:80
abstract  int verticalAlignment()
          Original signature : -(NSTextBlockVerticalAlignment)verticalAlignment
native declaration : NSTextTable.h:95
 
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, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, 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.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
copyWithZone
 
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

NSTextBlock

public NSTextBlock()
Method Detail

init

public abstract NSTextBlock init()
Designated initializer
Original signature : -(id)init
native declaration : NSTextTable.h:75

Specified by:
init in class NSObject

create

public static NSTextBlock create()
Factory method

See Also:
init()

setValue_type_forDimension

public abstract void setValue_type_forDimension(org.rococoa.cocoa.CGFloat val,
                                                int type,
                                                int dimension)
Content size
Original signature : -(void)setValue:(CGFloat) type:(NSTextBlockValueType) forDimension:(NSTextBlockDimension)
native declaration : NSTextTable.h:78

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockValueType
dimension - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockDimension

valueForDimension

public abstract org.rococoa.cocoa.CGFloat valueForDimension(int dimension)
Original signature : -(CGFloat)valueForDimension:(NSTextBlockDimension)
native declaration : NSTextTable.h:79

Parameters:
dimension - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockDimension

valueTypeForDimension

public abstract int valueTypeForDimension(int dimension)
Original signature : -(NSTextBlockValueType)valueTypeForDimension:(NSTextBlockDimension)
native declaration : NSTextTable.h:80

Parameters:
dimension - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockDimension

setContentWidth_type

public abstract void setContentWidth_type(org.rococoa.cocoa.CGFloat val,
                                          int type)
Convenience methods for content width in particular, using the above methods with dimension == NSTextBlockWidth
Original signature : -(void)setContentWidth:(CGFloat) type:(NSTextBlockValueType)
native declaration : NSTextTable.h:83

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockValueType

contentWidth

public abstract org.rococoa.cocoa.CGFloat contentWidth()
Original signature : -(CGFloat)contentWidth
native declaration : NSTextTable.h:84


contentWidthValueType

public abstract int contentWidthValueType()
Original signature : -(NSTextBlockValueType)contentWidthValueType
native declaration : NSTextTable.h:85


setWidth_type_forLayer

public abstract void setWidth_type_forLayer(org.rococoa.cocoa.CGFloat val,
                                            int type,
                                            int layer)
Convenience method sets all edges at once
Original signature : -(void)setWidth:(CGFloat) type:(NSTextBlockValueType) forLayer:(NSTextBlockLayer)
native declaration : NSTextTable.h:89

Parameters:
type - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockValueType
layer - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockLayer

setVerticalAlignment

public abstract void setVerticalAlignment(int alignment)
Alignment
Original signature : -(void)setVerticalAlignment:(NSTextBlockVerticalAlignment)
native declaration : NSTextTable.h:94

Parameters:
alignment - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSTextBlockVerticalAlignment

verticalAlignment

public abstract int verticalAlignment()
Original signature : -(NSTextBlockVerticalAlignment)verticalAlignment
native declaration : NSTextTable.h:95


setBackgroundColor

public abstract void setBackgroundColor(NSColor color)
Colors
Original signature : -(void)setBackgroundColor:(NSColor*)
native declaration : NSTextTable.h:98


backgroundColor

public abstract NSColor backgroundColor()
Original signature : -(NSColor*)backgroundColor
native declaration : NSTextTable.h:99


setBorderColor

public abstract void setBorderColor(NSColor color)
Convenience method sets all edges at once
Original signature : -(void)setBorderColor:(NSColor*)
native declaration : NSTextTable.h:101


alloc

public static NSTextBlock alloc()
native declaration : NSTextTable.h:109
Conversion Error : /**
* This method will be called during drawing to draw any colors and other decorations before the text is drawn.
* Original signature : -(void)drawBackgroundWithFrame:() inView:(NSView*) characterRange:() layoutManager:(NSLayoutManager*)
* /
- (void)drawBackgroundWithFrame:(null)frameRect inView:(NSView*)controlView characterRange:(null)charRange layoutManager:(NSLayoutManager*)layoutManager; (Argument frameRect cannot be converted)


new_

public static NSTextBlock new_()

getNSClass

public static NSTextBlock._class_ getNSClass()


Copyright © 2009. All Rights Reserved.