Elliptical gradient
Hi, Is there a way of create an elliptical gradient? The only way I've found is creating a RadialGradient with proportional set as true, and then apply that to a rectangle of the proportions I want. But obviously, that's not very useful if I want to apply it to any shape. If there is no way and this was just an oversight, will it be possible to have a RadialGradient constructor with two points and two radii to cover all the possible cases, like PDF has? We can always adapt the other constructor using the focus angle and length to map to this two points internally, and I'm assuming we do something similar when converting inside Prism (or any of the related subsystems, sorry, I don't know any of the JFX internals yet :D)
hg: openjfx/8u-dev/rt: RT-37959: [Accessibility] Review a11y enums
Changeset: 438fee7942f4 Author:Felipe Heidrich Date: 2014-08-13 16:21 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/438fee7942f4 RT-37959: [Accessibility] Review a11y enums Rename TITLE to TEXT ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ContextMenuContent.java ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/LabeledSkinBase.java ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TabPaneSkin.java ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java ! modules/controls/src/main/java/javafx/scene/control/ChoiceBox.java ! modules/controls/src/main/java/javafx/scene/control/ComboBox.java ! modules/controls/src/main/java/javafx/scene/control/DatePicker.java ! modules/controls/src/main/java/javafx/scene/control/PasswordField.java ! modules/controls/src/main/java/javafx/scene/control/Spinner.java ! modules/controls/src/main/java/javafx/scene/control/TextInputControl.java ! modules/controls/src/main/java/javafx/scene/control/TitledPane.java ! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/win/WinTextRangeProvider.java ! modules/graphics/src/main/java/javafx/scene/AccessibleAction.java ! modules/graphics/src/main/java/javafx/scene/AccessibleAttribute.java ! modules/graphics/src/main/java/javafx/scene/AccessibleRole.java ! modules/graphics/src/main/java/javafx/scene/Node.java ! modules/graphics/src/main/java/javafx/scene/Scene.java ! modules/graphics/src/main/java/javafx/scene/text/Text.java ! modules/graphics/src/main/java/javafx/scene/text/TextFlow.java
hg: openjfx/8u-dev/rt: RT-37959: [Accessibility] Review a11y enums
Changeset: cfac922b8306 Author:Felipe Heidrich Date: 2014-08-13 16:06 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/cfac922b8306 RT-37959: [Accessibility] Review a11y enums Remove AccessibleAction.MOVE and clean up around THUMB. Left (unused) references to ITransformProvider in WinAccessible.java and GlassAccessible.cpp ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ScrollBarSkin.java ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/SliderSkin.java ! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java ! modules/graphics/src/main/java/javafx/scene/AccessibleAction.java ! modules/graphics/src/main/java/javafx/scene/AccessibleRole.java
hg: openjfx/8u-dev/rt: [TEST-ONLY] Ignore StylesheetTest.testRT_31316_with_complex_scenegraph pending RT-38300
Changeset: 1d9d6fb6de7d Author:David Grieve Date: 2014-08-13 18:49 -0400 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/1d9d6fb6de7d [TEST-ONLY] Ignore StylesheetTest.testRT_31316_with_complex_scenegraph pending RT-38300 ! modules/graphics/src/test/java/com/sun/javafx/css/StylesheetTest.java
hg: openjfx/8u-dev/rt: [Accessibility] Update JavaDoc
Changeset: 027b83703d37 Author:Felipe Heidrich Date: 2014-08-13 15:06 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/027b83703d37 [Accessibility] Update JavaDoc ! modules/graphics/src/main/java/javafx/scene/AccessibleAttribute.java ! modules/graphics/src/main/java/javafx/scene/AccessibleRole.java
hg: openjfx/8u-dev/rt: RT-37959: [Accessibility] Review a11y enums
Changeset: 088856d1b79a Author:Felipe Heidrich Date: 2014-08-13 14:50 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/088856d1b79a RT-37959: [Accessibility] Review a11y enums Rename MENU_FOR -> PARENT_MENU Rename MENU -> SUBMENU ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ContextMenuContent.java ! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java ! modules/graphics/src/main/java/javafx/scene/AccessibleAttribute.java
hg: openjfx/8u-dev/rt: Disable failing tests after fix for RT-38012.
Changeset: 46ba065ec37e Author:leifs Date: 2014-08-13 14:31 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/46ba065ec37e Disable failing tests after fix for RT-38012. ! modules/base/src/test/java/javafx/util/converter/DateStringConverterTest.java ! modules/base/src/test/java/javafx/util/converter/DateTimeStringConverterTest.java
hg: openjfx/8u-dev/rt: RT-37418: [CSS] CustomColorDialog cannot be skinned by adding stylesheet to scene
Changeset: 098cfbf48635 Author:David Grieve Date: 2014-08-13 17:20 -0400 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/098cfbf48635 RT-37418: [CSS] CustomColorDialog cannot be skinned by adding stylesheet to scene Reviewed by: jonathan ! modules/controls/src/main/java/com/sun/javafx/scene/control/skin/CustomColorDialog.java ! modules/graphics/src/main/java/javafx/stage/PopupWindow.java
Re: JavaFx roadmap?
Hello Adam, - How will WebView ever keep up with the constantly evolving HTML5 platform? Currently the merge with the WebKit trunk is in progress. I believe this process will be repeated on a regular basis. Regards, Anton. On 12.08.2014 1:08, Adam Granger wrote: The official java fx roadmap on oracle.com seems to have been taken down, without replacement. http://www.oracle.com/technetwork/java/javafx/overview/roadmap-1446331.html I've had a search in JIRA and there is clearly a lot of work going on. - What's the long term plan, target release dates, long term support dates? We're interested in this at work, but need to know oracle is committed to it. - What about features like multi-touch on Linux? - How will WebView ever keep up with the constantly evolving HTML5 platform? - Is Swing development really over? Regards, Adam.
hg: openjfx/8u-dev/rt: RT-38201: [CSS] Enum values should not be treated as value references to be looked up
Changeset: e59c3dfc28e0 Author:David Grieve Date: 2014-08-13 16:29 -0400 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/e59c3dfc28e0 RT-38201: [CSS] Enum values should not be treated as value references to be looked up Reviewed by: kcr ! modules/graphics/src/main/java/com/sun/javafx/css/parser/CSSParser.java
Re: Render bug
This looks like a bug in JavaFX when applying the lighting effect. I was able to reproduce the dirty rect rendering on my system. The bug went away if I commented out the following line: iview.setEffect(lighting); Can you please file a JIRA so that we will fix it? Thanks, - Chien On 8/13/2014 8:33 AM, Jeff Martin wrote: I’m getting a rendering bug with a simple rotating path in front of an ImageView (with lighting effect) on Mac OS with 8u20: http://reportmill.com/examples/Renderbug/Renderbug.jpg Looks like some sort of dirty rect problem. Am I doing something wrong or should I file a bug? The code is below. If anyone has an idea for a quick work around, let me know. jeff import javafx.animation.RotateTransition; import javafx.application.Application; import javafx.scene.*; import javafx.scene.effect.*; import javafx.scene.image.*; import javafx.scene.paint.Color; import javafx.scene.shape.*; import javafx.stage.Stage; import javafx.util.Duration; import snap.web.WebURL; /** * A custom class. */ public class DrawTurd extends Application { public void start(Stage aStage) { // Creat background image - file at http://reportmill.com/examples/Renderbug/Wood.jpg Image image = new Image(getClass().getResourceAsStream("Wood.jpg")); ImageView iview = new ImageView(image); // Create foreground path triangle Path path = new Path(); path.getElements().add(new MoveTo(100,100)); path.getElements().add(new LineTo(180,180)); path.getElements().add(new LineTo(260,100)); path.getElements().add(new ClosePath()); path.setFill(Color.RED); path.setStroke(Color.BLACK); // Create lighting effect and add to ImageView Light.Distant effect = new Light.Distant(); effect.setAzimuth(60); effect.setElevation(120); Lighting lighting = new Lighting(); lighting.setSpecularConstant(.15); lighting.setLight(effect); lighting.setSurfaceScale(10); iview.setEffect(lighting); // Create group, add nodes, set scene root, show stage Group group = new Group(iview, path); aStage.setScene(new Scene(group)); aStage.show(); // Add rotation transition animation RotateTransition rt = new RotateTransition(Duration.millis(3000), path); rt.setByAngle(180); rt.setCycleCount(4); rt.setAutoReverse(true); rt.play(); } }
hg: openjfx/8u-dev/rt: RT-38012: Date/time converters use unwanted format patterns
Changeset: b4880fab246e Author:leifs Date: 2014-08-13 12:02 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/b4880fab246e RT-38012: Date/time converters use unwanted format patterns Reviewed-by: jgiles, kcr, snorthov ! modules/base/src/main/java/javafx/util/converter/DateStringConverter.java ! modules/base/src/main/java/javafx/util/converter/DateTimeStringConverter.java ! modules/base/src/main/java/javafx/util/converter/TimeStringConverter.java ! modules/base/src/test/java/javafx/util/converter/DateStringConverterTest.java ! modules/base/src/test/java/javafx/util/converter/DateTimeStringConverterTest.java ! modules/base/src/test/java/javafx/util/converter/TimeStringConverterTest.java
hg: openjfx/8u-dev/rt: RT-38011: StringConverter support for LocalDate/LocalTime/LocalDateTime
Changeset: 2a469ac93070 Author:leifs Date: 2014-08-13 12:00 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/2a469ac93070 RT-38011: StringConverter support for LocalDate/LocalTime/LocalDateTime Reviewed-by: jgiles, kcr + modules/base/src/main/java/javafx/util/converter/LocalDateStringConverter.java + modules/base/src/main/java/javafx/util/converter/LocalDateTimeStringConverter.java + modules/base/src/main/java/javafx/util/converter/LocalTimeStringConverter.java + modules/base/src/test/java/javafx/util/converter/LocalDateStringConverterTest.java + modules/base/src/test/java/javafx/util/converter/LocalDateTimeStringConverterTest.java + modules/base/src/test/java/javafx/util/converter/LocalTimeStringConverterTest.java ! modules/controls/src/main/java/javafx/scene/control/DatePicker.java ! modules/controls/src/test/java/javafx/scene/control/DatePickerTest.java
Fwd: [8u26] Review request : RT-38169 - [Monocle] Some of pass/fail swipe conditions are problematic
Hi Martin, Please review changes should done in Swipe Gesture implementation in order to fix bug: https://javafx-jira.kenai.com/browse/RT-38169 Link to webrev: http://cr.openjdk.java.net/~ekleyman/RT37822_RT38169/ Thanks, Elina Original Message Subject: [8u26] Review request : RT-38169 - [Monocle] Some of pass/fail swipe conditions are problematic Date: Sun, 10 Aug 2014 16:55:53 +0300 From: elina kleyman Organization: Oracle Corporation To: Daniel Blaukopf , "BIRGER,SEEON" CC: openjfx-dev@openjdk.java.net Hi Daniel, Seeon, Please review proposed fix for: https://javafx-jira.kenai.com/browse/RT-38169 Link to webrev: http://cr.openjdk.java.net/~ekleyman/RT-38169/webrev/ Thanks, Elina
Render bug
I’m getting a rendering bug with a simple rotating path in front of an ImageView (with lighting effect) on Mac OS with 8u20: http://reportmill.com/examples/Renderbug/Renderbug.jpg Looks like some sort of dirty rect problem. Am I doing something wrong or should I file a bug? The code is below. If anyone has an idea for a quick work around, let me know. jeff import javafx.animation.RotateTransition; import javafx.application.Application; import javafx.scene.*; import javafx.scene.effect.*; import javafx.scene.image.*; import javafx.scene.paint.Color; import javafx.scene.shape.*; import javafx.stage.Stage; import javafx.util.Duration; import snap.web.WebURL; /** * A custom class. */ public class DrawTurd extends Application { public void start(Stage aStage) { // Creat background image - file at http://reportmill.com/examples/Renderbug/Wood.jpg Image image = new Image(getClass().getResourceAsStream("Wood.jpg")); ImageView iview = new ImageView(image); // Create foreground path triangle Path path = new Path(); path.getElements().add(new MoveTo(100,100)); path.getElements().add(new LineTo(180,180)); path.getElements().add(new LineTo(260,100)); path.getElements().add(new ClosePath()); path.setFill(Color.RED); path.setStroke(Color.BLACK); // Create lighting effect and add to ImageView Light.Distant effect = new Light.Distant(); effect.setAzimuth(60); effect.setElevation(120); Lighting lighting = new Lighting(); lighting.setSpecularConstant(.15); lighting.setLight(effect); lighting.setSurfaceScale(10); iview.setEffect(lighting); // Create group, add nodes, set scene root, show stage Group group = new Group(iview, path); aStage.setScene(new Scene(group)); aStage.show(); // Add rotation transition animation RotateTransition rt = new RotateTransition(Duration.millis(3000), path); rt.setByAngle(180); rt.setCycleCount(4); rt.setAutoReverse(true); rt.play(); } }
hg: openjfx/8u-dev/rt: RT-38129 - mac.dmg.simple hangs
Changeset: 4f273765662a Author:shemnon Date: 2014-08-13 09:01 -0600 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/4f273765662a RT-38129 - mac.dmg.simple hangs Summary: remove all fancy linkage. DMG is now very simple: .app only. ! modules/fxpackager/src/main/java/com/oracle/tools/packager/mac/MacDmgBundler.java
hg: openjfx/8u/rt: Added tag 8u40-b01 for changeset c96c17dc9a3f
Changeset: 83ac99fd07f2 Author:hudson Date: 2014-08-13 07:51 -0700 URL: http://hg.openjdk.java.net/openjfx/8u/rt/rev/83ac99fd07f2 Added tag 8u40-b01 for changeset c96c17dc9a3f ! .hgtags
hg: openjfx/8u-dev/rt: RT-38055: [Swing, Mac, JFXPanel] Context menu with setOnContextMenuRequested doesn't work properly in Swing embedded JavaFX
Changeset: a02acc706826 Author:Anthony Petrov Date: 2014-08-13 18:49 +0400 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/a02acc706826 RT-38055: [Swing, Mac, JFXPanel] Context menu with setOnContextMenuRequested doesn't work properly in Swing embedded JavaFX Summary: Synthesize UngrabFocus event when a click on JFXPanel's top-level parent window is detected ! modules/swing/src/main/java/javafx/embed/swing/JFXPanel.java
hg: openjfx/8u-dev/rt: Reverted unrelated test comitted with RT-38723 fix
Changeset: d92ede143b5e Author:Martin Sladecek Date: 2014-08-13 10:29 +0200 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/d92ede143b5e Reverted unrelated test comitted with RT-38723 fix ! modules/base/src/test/java/javafx/util/converter/FloatStringConverterTest.java
hg: openjfx/8u-dev/rt: RT-38273 FormatStringConverter should convert only full Strings
Changeset: 6f16716706c3 Author:Martin Sladecek Date: 2014-08-13 10:26 +0200 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/6f16716706c3 RT-38273 FormatStringConverter should convert only full Strings ! modules/base/src/main/java/javafx/util/converter/FormatStringConverter.java ! modules/base/src/test/java/javafx/util/converter/FloatStringConverterTest.java