Class CIColor

    • Constructor Detail

      • CIColor

        protected CIColor​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static CIColor alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • blackColor

        public static CIColor blackColor()
        Convenience constant CIColors in the sRGB colorspace.
      • blueColor

        public static CIColor blueColor()
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearColor

        public static CIColor clearColor()
      • colorWithCGColor

        public static CIColor colorWithCGColor​(CGColorRef c)
        Create a new color object.
      • colorWithRedGreenBlue

        public static CIColor colorWithRedGreenBlue​(double r,
                                                    double g,
                                                    double b)
      • colorWithRedGreenBlueAlpha

        public static CIColor colorWithRedGreenBlueAlpha​(double r,
                                                         double g,
                                                         double b,
                                                         double a)
        Create a new color object in CI's default RGB colorspace which is kCGColorSpaceSRGB or, if running on OSX before 10.10, kCGColorSpaceGenericRGB.
      • colorWithRedGreenBlueAlphaColorSpace

        public static CIColor colorWithRedGreenBlueAlphaColorSpace​(double r,
                                                                   double g,
                                                                   double b,
                                                                   double a,
                                                                   CGColorSpaceRef colorSpace)
        Create a new color object in a given colorspace. Will return null if the colorspace is not kCGColorSpaceModelRGB.
      • colorWithRedGreenBlueColorSpace

        public static CIColor colorWithRedGreenBlueColorSpace​(double r,
                                                              double g,
                                                              double b,
                                                              CGColorSpaceRef colorSpace)
      • colorWithString

        public static CIColor colorWithString​(java.lang.String representation)
        Create a new color object, 'representation' should be a string in one of the formats returned by the stringRepresentation method.
      • cyanColor

        public static CIColor cyanColor()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • grayColor

        public static CIColor grayColor()
      • greenColor

        public static CIColor greenColor()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • magentaColor

        public static CIColor magentaColor()
      • new_objc

        public static java.lang.Object new_objc()
      • redColor

        public static CIColor redColor()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • whiteColor

        public static CIColor whiteColor()
      • yellowColor

        public static CIColor yellowColor()
      • alpha

        public double alpha()
        Return the alpha value of the color.
      • blue

        public double blue()
      • colorSpace

        public CGColorSpaceRef colorSpace()
        Return the color space object associated with the color.
      • components

        public org.moe.natj.general.ptr.ConstNFloatPtr components()
        Return the color components (including alpha).
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • green

        public double green()
      • initWithCGColor

        public CIColor initWithCGColor​(CGColorRef c)
        Initialize a new color object.
      • initWithRedGreenBlue

        public CIColor initWithRedGreenBlue​(double r,
                                            double g,
                                            double b)
      • initWithRedGreenBlueAlpha

        public CIColor initWithRedGreenBlueAlpha​(double r,
                                                 double g,
                                                 double b,
                                                 double a)
        Initialize a new color object in CI's default RGB colorspace which is kCGColorSpaceSRGB or, if running on OSX before 10.10, kCGColorSpaceGenericRGB.
      • initWithRedGreenBlueAlphaColorSpace

        public CIColor initWithRedGreenBlueAlphaColorSpace​(double r,
                                                           double g,
                                                           double b,
                                                           double a,
                                                           CGColorSpaceRef colorSpace)
        Initialize a new color object in a given colorspace. Will return null if the colorspace is not kCGColorSpaceModelRGB.
      • initWithRedGreenBlueColorSpace

        public CIColor initWithRedGreenBlueColorSpace​(double r,
                                                      double g,
                                                      double b,
                                                      CGColorSpaceRef colorSpace)
      • numberOfComponents

        public long numberOfComponents()
        Return the number of color components (including alpha).
      • red

        public double red()
        Return the (unpremultiplied) red, green or blue components of the color.
      • stringRepresentation

        public java.lang.String stringRepresentation()
        Returns a formatted string with the components of the color. The string is suitable for passing to [CIColor colorWithString:]. This property is not KVO-safe because it returns a new NSString each time. The value of the NSString will be the same each time it is called.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding