public static CGColor create(CGColorSpace space, float[] components) { return create(space, components, components != null ? components.length : 0); } public static CGColor create(CGColorSpace space, double[] components) {
public double[] getComponentsD() { return getComponents(this).toDoubleArray((int) getNumberOfComponents()); } public float[] getComponentsF() {
public float[] getComponentsF() { return getComponents(this).toFloatArray((int) getNumberOfComponents()); } /*<methods>*/
public static CGColor create(CGColorSpace space, double[] components) { return create(space, components, components != null ? components.length : 0); } private static CGColor create(CGColorSpace space, Object components, int componentsLength) {
public float[] getComponentsF() { return getComponents(this).toFloatArray((int) getNumberOfComponents()); } /*<methods>*/
public static CGColor create(CGColorSpace space, CGPattern pattern, float[] components) { return create(space, pattern, components, components != null ? components.length : 0); } public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components) {
public double[] getComponentsD() { return getComponents(this).toDoubleArray((int) getNumberOfComponents()); } public float[] getComponentsF() {
public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components) { return create(space, pattern, components, components != null ? components.length : 0); } private static CGColor create(CGColorSpace space, CGPattern pattern, Object components, int componentsLength) {
public double[] getComponentsD() { return getComponents(this).toDoubleArray((int) getNumberOfComponents()); } public float[] getComponentsF() {
private static CGColor create(CGColorSpace space, CGPattern pattern, Object components, int componentsLength) { if (space == null) { throw new NullPointerException("space == null"); } if (components == null) { throw new NullPointerException("components == null"); } if (componentsLength != space.getNumberOfComponents() + 1) { throw new IllegalArgumentException("components.length != space.numberOfComponents + 1"); } return create(space, pattern, VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(components))); }
public float[] getComponentsF() { return getComponents(this).toFloatArray((int) getNumberOfComponents()); } /*<methods>*/
private static CGColor create(CGColorSpace space, Object components, int componentsLength) { if (space == null) { throw new NullPointerException("space == null"); } if (components == null) { throw new NullPointerException("components == null"); } if (componentsLength != space.getNumberOfComponents() + 1) { throw new IllegalArgumentException("components.length != space.numberOfComponents + 1"); } return create(space, VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(components))); }
public static CGColor create(CGColorSpace space, double[] components) { return create(space, components, components != null ? components.length : 0); } private static CGColor create(CGColorSpace space, Object components, int componentsLength) {
public static CGColor create(CGColorSpace space, float[] components) { return create(space, components, components != null ? components.length : 0); } public static CGColor create(CGColorSpace space, double[] components) {
public static CGColor create(CGColorSpace space, float[] components) { return create(space, components, components != null ? components.length : 0); } public static CGColor create(CGColorSpace space, double[] components) {
public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components) { return create(space, pattern, components, components != null ? components.length : 0); } private static CGColor create(CGColorSpace space, CGPattern pattern, Object components, int componentsLength) {
public static CGColor create(CGColorSpace space, double[] components) { return create(space, components, components != null ? components.length : 0); } private static CGColor create(CGColorSpace space, Object components, int componentsLength) {
public static CGColor create(CGColorSpace space, CGPattern pattern, float[] components) { return create(space, pattern, components, components != null ? components.length : 0); } public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components) {
public static CGColor create(CGColorSpace space, CGPattern pattern, float[] components) { return create(space, pattern, components, components != null ? components.length : 0); } public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components) {
public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components) { return create(space, pattern, components, components != null ? components.length : 0); } private static CGColor create(CGColorSpace space, CGPattern pattern, Object components, int componentsLength) {