128 reapplyCSS(childParent, stylesheetPath);
129 } else if (child instanceof SubScene) {
130 final SubScene childSubScene = (SubScene) child;
131 reapplyCSS(childSubScene.getRoot(), stylesheetPath);
132 }
133 }
134 }
135
136 @SuppressWarnings("rawtypes")
137 public static List<Style> getMatchingStyles(CssMetaData cssMetaData, Styleable styleable) {
138 // return Node.impl_getMatchingStyles(cssMetaData, styleable);
139 System.err.println("Error: impl_getMatchingStyles is no longer publicly accessible");
140 return null;
141 }
142
143 // Deprecated stuff in Parent
144
145 // Deprecated stuff in FXMLLoader
146 // RT-21226 : Promote setStaticLoad to public API
147 public static void setStaticLoad(FXMLLoader loader, boolean staticLoad) {
148 loader.impl_setStaticLoad(staticLoad);
149 }
150
151 // RT-20184 : FX should provide a Parent.pick() routine
152 public static Node pick(Node node, double sceneX, double sceneY) {
153 Point2D p = node.sceneToLocal(sceneX, sceneY, true /* rootScene */);
154
155 // check if the given node has the point inside it, or else we drop out
156 if (!node.contains(p)) return null;
157
158 // at this point we know that _at least_ the given node is a valid
159 // answer to the given point, so we will return that if we don't find
160 // a better child option
161 if (node instanceof Parent) {
162 // we iterate through all children (recursively). We don't stop
163 // iteration when we hit the first child that also contains the bounds,
164 // as we know that later nodes have a higher z-ordering, so they
165 // should be picked before the earlier nodes.
166 Node bestMatchingChild = null;
167 for (Node child : ((Parent)node).getChildrenUnmodifiable()) {
168 p = child.sceneToLocal(sceneX, sceneY, true /* rootScene */);
|
128 reapplyCSS(childParent, stylesheetPath);
129 } else if (child instanceof SubScene) {
130 final SubScene childSubScene = (SubScene) child;
131 reapplyCSS(childSubScene.getRoot(), stylesheetPath);
132 }
133 }
134 }
135
136 @SuppressWarnings("rawtypes")
137 public static List<Style> getMatchingStyles(CssMetaData cssMetaData, Styleable styleable) {
138 // return Node.impl_getMatchingStyles(cssMetaData, styleable);
139 System.err.println("Error: impl_getMatchingStyles is no longer publicly accessible");
140 return null;
141 }
142
143 // Deprecated stuff in Parent
144
145 // Deprecated stuff in FXMLLoader
146 // RT-21226 : Promote setStaticLoad to public API
147 public static void setStaticLoad(FXMLLoader loader, boolean staticLoad) {
148 // loader.impl_setStaticLoad(staticLoad);
149 System.err.println("Error: impl_setStaticLoad is no longer publicly accessible");
150 }
151
152 // RT-20184 : FX should provide a Parent.pick() routine
153 public static Node pick(Node node, double sceneX, double sceneY) {
154 Point2D p = node.sceneToLocal(sceneX, sceneY, true /* rootScene */);
155
156 // check if the given node has the point inside it, or else we drop out
157 if (!node.contains(p)) return null;
158
159 // at this point we know that _at least_ the given node is a valid
160 // answer to the given point, so we will return that if we don't find
161 // a better child option
162 if (node instanceof Parent) {
163 // we iterate through all children (recursively). We don't stop
164 // iteration when we hit the first child that also contains the bounds,
165 // as we know that later nodes have a higher z-ordering, so they
166 // should be picked before the earlier nodes.
167 Node bestMatchingChild = null;
168 for (Node child : ((Parent)node).getChildrenUnmodifiable()) {
169 p = child.sceneToLocal(sceneX, sceneY, true /* rootScene */);
|