|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSGradient
public abstract class NSGradient
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 |
NSGradient._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 | |
---|---|
NSGradient()
|
Method Summary | |
---|---|
static NSGradient |
alloc()
|
abstract NSColorSpace |
colorSpace()
Returns the color space of the gradient Original signature : -(NSColorSpace*)colorSpace native declaration : NSGradient.h:131 |
static NSGradient |
createWithColors_atLocations_colorSpace(NSArray colorArray,
org.rococoa.cocoa.CGFloat[] locations,
NSColorSpace colorSpace)
Factory method |
static NSGradient |
createWithColors_atLocations_colorSpace(NSArray colorArray,
CGFloatByReference locations,
NSColorSpace colorSpace)
Deprecated. |
static NSGradient |
createWithColors(NSArray colorArray)
Factory method |
static NSGradient |
createWithColorsAndLocations(NSColor firstColor,
NSObject... varargs)
Factory method |
static NSGradient |
createWithStartingColor_endingColor(NSColor startingColor,
NSColor endingColor)
Factory method |
abstract void |
drawInBezierPath_angle(NSBezierPath path,
org.rococoa.cocoa.CGFloat angle)
Convenience method for drawing a linear gradient to fill a path. |
abstract void |
getColor_location_atIndex(PointerByReference color,
CGFloatByReference location,
NSInteger index)
Returns the color and location at a particular index in the color gradient Original signature : -(void)getColor:(NSColor**) location:(CGFloat*) atIndex:(NSInteger) native declaration : NSGradient.h:139 |
static NSGradient._class_ |
getNSClass()
|
abstract NSGradient |
initWithColors_atLocations_colorSpace(NSArray colorArray,
org.rococoa.cocoa.CGFloat[] locations,
NSColorSpace colorSpace)
Initializes a gradient by pairing the colors provided in the color array with the locations provided in the locations array. |
abstract NSGradient |
initWithColors_atLocations_colorSpace(NSArray colorArray,
CGFloatByReference locations,
NSColorSpace colorSpace)
Deprecated. use the safer methods initWithColors_atLocations_colorSpace(org.rococoa.cocoa.foundation.NSArray, org.rococoa.cocoa.CGFloat[], org.rococoa.cocoa.appkit.NSColorSpace) and initWithColors_atLocations_colorSpace(org.rococoa.cocoa.foundation.NSArray, com.ochafik.lang.jnaerator.runtime.CGFloatByReference, org.rococoa.cocoa.appkit.NSColorSpace) instead |
abstract NSGradient |
initWithColors(NSArray colorArray)
Initializes a gradient with the first color in the array at 0.0, the last color in the array at 1.0, and intervening colors at equal intervals in between. |
abstract NSGradient |
initWithColorsAndLocations(NSColor firstColor,
NSObject... varargs)
This initializer takes the first color, then the first location as a CGFloat, then an alternating list of colors and CGFloats, terminated by nil. |
abstract NSGradient |
initWithStartingColor_endingColor(NSColor startingColor,
NSColor endingColor)
Initializes a gradient with starting color at location 0.0 and ending color at location 1.0 The color space returned by [NSColorSpace genericRGBColorSpace] is used. |
abstract NSColor |
interpolatedColorAtLocation(org.rococoa.cocoa.CGFloat location)
This method will return the interpolated gradient value at the given location. |
static NSGradient |
new_()
|
abstract NSInteger |
numberOfColorStops()
The number of color stops in the color gradient Original signature : -(NSInteger)numberOfColorStops native declaration : NSGradient.h:135 |
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 |
---|
public NSGradient()
Method Detail |
---|
public abstract NSGradient initWithStartingColor_endingColor(NSColor startingColor, NSColor endingColor)
-(id)initWithStartingColor:(NSColor*) endingColor:(NSColor*)
public static NSGradient createWithStartingColor_endingColor(NSColor startingColor, NSColor endingColor)
initWithStartingColor_endingColor(org.rococoa.cocoa.appkit.NSColor, org.rococoa.cocoa.appkit.NSColor)
public abstract NSGradient initWithColors(NSArray colorArray)
-(id)initWithColors:(NSArray*)
public static NSGradient createWithColors(NSArray colorArray)
initWithColors(org.rococoa.cocoa.foundation.NSArray)
public abstract NSGradient initWithColorsAndLocations(NSColor firstColor, NSObject... varargs)
-(id)initWithColorsAndLocations:(NSColor*), ...
public static NSGradient createWithColorsAndLocations(NSColor firstColor, NSObject... varargs)
#initWithColorsAndLocations(org.rococoa.cocoa.appkit.NSColor, org.rococoa.cocoa.foundation.NSObject)
@Deprecated public abstract NSGradient initWithColors_atLocations_colorSpace(NSArray colorArray, CGFloatByReference locations, NSColorSpace colorSpace)
initWithColors_atLocations_colorSpace(org.rococoa.cocoa.foundation.NSArray, org.rococoa.cocoa.CGFloat[], org.rococoa.cocoa.appkit.NSColorSpace)
and initWithColors_atLocations_colorSpace(org.rococoa.cocoa.foundation.NSArray, com.ochafik.lang.jnaerator.runtime.CGFloatByReference, org.rococoa.cocoa.appkit.NSColorSpace)
instead
-(id)initWithColors:(NSArray*) atLocations:(const CGFloat*) colorSpace:(NSColorSpace*)
@Deprecated public static NSGradient createWithColors_atLocations_colorSpace(NSArray colorArray, CGFloatByReference locations, NSColorSpace colorSpace)
initWithColors_atLocations_colorSpace(org.rococoa.cocoa.foundation.NSArray, com.ochafik.lang.jnaerator.runtime.CGFloatByReference, org.rococoa.cocoa.appkit.NSColorSpace)
public abstract NSGradient initWithColors_atLocations_colorSpace(NSArray colorArray, org.rococoa.cocoa.CGFloat[] locations, NSColorSpace colorSpace)
-(id)initWithColors:(NSArray*) atLocations:(const CGFloat*) colorSpace:(NSColorSpace*)
public static NSGradient createWithColors_atLocations_colorSpace(NSArray colorArray, org.rococoa.cocoa.CGFloat[] locations, NSColorSpace colorSpace)
initWithColors_atLocations_colorSpace(org.rococoa.cocoa.foundation.NSArray, org.rococoa.cocoa.CGFloat[], org.rococoa.cocoa.appkit.NSColorSpace)
public abstract void drawInBezierPath_angle(NSBezierPath path, org.rococoa.cocoa.CGFloat angle)
-(void)drawInBezierPath:(NSBezierPath*) angle:(CGFloat)
public abstract NSColorSpace colorSpace()
-(NSColorSpace*)colorSpace
public abstract NSInteger numberOfColorStops()
-(NSInteger)numberOfColorStops
public abstract void getColor_location_atIndex(PointerByReference color, CGFloatByReference location, NSInteger index)
-(void)getColor:(NSColor**) location:(CGFloat*) atIndex:(NSInteger)
public abstract NSColor interpolatedColorAtLocation(org.rococoa.cocoa.CGFloat location)
-(NSColor*)interpolatedColorAtLocation:(CGFloat)
public static NSGradient alloc()
public static NSGradient new_()
public static NSGradient._class_ getNSClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |