jdk/src/java.desktop/macosx/classes/apple/laf/JRSUIControl.java
changeset 31432 15d0fd22179a
parent 26037 508779ce6619
child 44534 a076dffbc2c1
equal deleted inserted replaced
31431:22615e4a6ab7 31432:15d0fd22179a
   273 //        paintsWithChangesThatOverflowed++;
   273 //        paintsWithChangesThatOverflowed++;
   274         return paintChangesToCGContext(cgContext, cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, localByteBuffer.ptr);
   274         return paintChangesToCGContext(cgContext, cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, localByteBuffer.ptr);
   275     }
   275     }
   276 
   276 
   277 
   277 
   278     Hit getHitForPoint(final double x, final double y, final double w, final double h, final double hitX, final double hitY) {
   278     Hit getHitForPoint(final int x, final int y, final int w, final int h, final int hitX, final int hitY) {
   279         sync();
   279         sync();
   280         // reflect hitY about the midline of the control before sending to native
   280         // reflect hitY about the midline of the control before sending to native
   281         final Hit hit = JRSUIConstants.getHit(getNativeHitPart(cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, hitX, 2 * y + h - hitY));
   281         final Hit hit = JRSUIConstants.getHit(getNativeHitPart(cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, hitX, 2 * y + h - hitY));
   282         priorEncodedProperties = currentEncodedProperties;
   282         priorEncodedProperties = currentEncodedProperties;
   283         return hit;
   283         return hit;
   284     }
   284     }
   285 
   285 
   286     void getPartBounds(final double[] rect, final double x, final double y, final double w, final double h, final int part) {
   286     void getPartBounds(final double[] rect, final int x, final int y, final int w, final int h, final int part) {
   287         if (rect == null) throw new NullPointerException("Cannot load null rect");
   287         if (rect == null) throw new NullPointerException("Cannot load null rect");
   288         if (rect.length != 4) throw new IllegalArgumentException("Rect must have four elements");
   288         if (rect.length != 4) throw new IllegalArgumentException("Rect must have four elements");
   289 
   289 
   290         sync();
   290         sync();
   291         getNativePartBounds(rect, cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, part);
   291         getNativePartBounds(rect, cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, part);
   292         priorEncodedProperties = currentEncodedProperties;
   292         priorEncodedProperties = currentEncodedProperties;
   293     }
   293     }
   294 
   294 
   295     double getScrollBarOffsetChange(final double x, final double y, final double w, final double h, final int offset, final int visibleAmount, final int extent) {
   295     double getScrollBarOffsetChange(final int x, final int y, final int w, final int h, final int offset, final int visibleAmount, final int extent) {
   296         sync();
   296         sync();
   297         final double offsetChange = getNativeScrollBarOffsetChange(cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, offset, visibleAmount, extent);
   297         final double offsetChange = getNativeScrollBarOffsetChange(cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, offset, visibleAmount, extent);
   298         priorEncodedProperties = currentEncodedProperties;
   298         priorEncodedProperties = currentEncodedProperties;
   299         return offsetChange;
   299         return offsetChange;
   300     }
   300     }