public void apply(Applier applier) { if (applier == null) { throw new NullPointerException("applier"); } apply(VM.getObjectAddress(applier), VM.getCallbackMethodImpl(cbApplier)); }
public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, float[] lengths) { return createCopyByDashingPath(path, transform, phase, lengths != null ? VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(lengths)) : 0, lengths != null ? lengths.length : 0); } public void apply(Applier applier) {
private static CFArray wrapLines(NSAttributedString astring, float wrapWidth) { CTFramesetter fs = CTFramesetter.create(astring); try { // iOS lays things out from max-y up to zero (inverted coordinate system); so we need to // provide a large height for our rectangle to ensure that all lines "fit" CGPath path = CGPath.createWithRect( new CGRect(0, 0, wrapWidth, Float.MAX_VALUE/2), CGAffineTransform.Identity()); CTFrame frame = fs.createFrame(new CFRange(0, 0), path, null); return frame.getLines(); } finally { fs.dispose(); } }
private static List<CTLine> wrapLines(NSAttributedString astring, float wrapWidth) { CTFramesetter fs = CTFramesetter.create(astring); try { // iOS lays things out from max-y up to zero (inverted coordinate system); so we need to // provide a large height for our rectangle to ensure that all lines "fit" CGPath path = CGPath.createWithRect( new CGRect(0, 0, wrapWidth, Float.MAX_VALUE/2), CGAffineTransform.Identity()); CTFrame frame = fs.createFrame(new CFRange(0, 0), path, null); return frame.getLines(); } finally { fs.dispose(); } }
public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, double[] lengths) { return createCopyByDashingPath(path, transform, phase, lengths != null ? VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(lengths)) : 0, lengths != null ? lengths.length : 0); } public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, float[] lengths) {
public void apply(Applier applier) { if (applier == null) { throw new NullPointerException("applier"); } apply(VM.getObjectAddress(applier), VM.getCallbackMethodImpl(cbApplier)); }
public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, float[] lengths) { return createCopyByDashingPath(path, transform, phase, lengths != null ? VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(lengths)) : 0, lengths != null ? lengths.length : 0); } public void apply(Applier applier) {
public void apply(Applier applier) { if (applier == null) { throw new NullPointerException("applier"); } apply(VM.getObjectAddress(applier), VM.getCallbackMethodImpl(cbApplier)); }
public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, float[] lengths) { return createCopyByDashingPath(path, transform, phase, lengths != null ? VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(lengths)) : 0, lengths != null ? lengths.length : 0); } public void apply(Applier applier) {
public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, double[] lengths) { return createCopyByDashingPath(path, transform, phase, lengths != null ? VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(lengths)) : 0, lengths != null ? lengths.length : 0); } public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, float[] lengths) {
public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, double[] lengths) { return createCopyByDashingPath(path, transform, phase, lengths != null ? VM.getArrayValuesAddress(CoreGraphics.toMachineSizedFloatArray(lengths)) : 0, lengths != null ? lengths.length : 0); } public static CGPath createCopyByDashingPath(CGPath path, CGAffineTransform transform, double phase, float[] lengths) {