public static CGPoint fromDictionary(NSDictionary<NSString, NSNumber> dict) { CGPoint p = new CGPoint(); if (!fromDictionary(dict, p)) { throw new IllegalArgumentException("Failed to create CGPoint from dictionary " + dict); } return p; }
/** * @since Available in iOS 4.2 and later. */ public void drawGlyphs(short[] glyphs, CGPoint[] positions, CGContext context) { ShortPtr gptr = new ShortPtr(); gptr.set(glyphs); CGPoint pos = new CGPoint(); pos.update(positions); drawGlyphs(gptr, pos, positions.length, context); } /**
public Radial(Gradient.Radial cfg) { super(cfg); this.center = new CGPoint(cfg.x, cfg.y); this.r = cfg.r; }
public Radial(float x, float y, float r, int[] colors, float[] positions) { super(colors, positions); this.center = new CGPoint(x, y); this.r = r; }
public static CGPoint fromDictionary(NSDictionary<NSString, NSNumber> dict) { CGPoint p = new CGPoint(); if (!fromDictionary(dict, p)) { throw new IllegalArgumentException("Failed to create CGPoint from dictionary " + dict); } return p; }
public static CGPoint fromDictionary(NSDictionary<NSString, NSNumber> dict) { CGPoint p = new CGPoint(); if (!fromDictionary(dict, p)) { throw new IllegalArgumentException("Failed to create CGPoint from dictionary " + dict); } return p; }
CGPoint sunPos=new CGPoint(); sunPos.set(xRandom, yRandom); CGRect randomLocationGeneratedSun=new CGRect(sunPos,sunSize);
/** * @since Available in iOS 4.2 and later. */ public void drawGlyphs(short[] glyphs, CGPoint[] positions, CGContext context) { ShortPtr gptr = new ShortPtr(); gptr.set(glyphs); CGPoint pos = new CGPoint(); pos.update(positions); drawGlyphs(gptr, pos, positions.length, context); } /**
/** * @since Available in iOS 4.2 and later. */ public void drawGlyphs(short[] glyphs, CGPoint[] positions, CGContext context) { ShortPtr gptr = new ShortPtr(); gptr.set(glyphs); CGPoint pos = new CGPoint(); pos.update(positions); drawGlyphs(gptr, pos, positions.length, context); } /**
CGGradient gradient = new CGGradient(colorSpace, new double[] { 0, 1 }, new double[] { 0, 0, 0, 0, 0, 0, 0, 0.75 }); CGPoint gradCenter = new CGPoint(getBounds().getWidth() / 2, getBounds().getHeight() / 2); double gradRadius = Math.min(getBounds().getWidth(), getBounds().getHeight());