< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/effect/DisplacementMap.java

Print this page

        

@@ -58,29 +58,30 @@
  * the source pixel location from which it is sampled which means that
  * filling the map with all values of {@code 0.5} would displace the
  * image by half of its size towards the upper left since each destination
  * pixel would contain the data that comes from the source pixel below and
  * to the right of it.
+ * </p>
  * <p>
  * Also note that this effect does not adjust the coordinates of input
  * events or any methods that measure containment on a {@code Node}.
  * The results of mouse picking and the containment methods are undefined
  * when a {@code Node} has a {@code DisplacementMap} effect in place.
- *
+ * </p>
  * <p>
  * Example:
  * <pre><code>
  * int width = 220;
  * int height = 100;
  *
  * FloatMap floatMap = new FloatMap();
  * floatMap.setWidth(width);
  * floatMap.setHeight(height);
  *
- * for (int i = 0; i < width; i++) {
+ * for (int i = 0; i &lt; width; i++) {
  *     double v = (Math.sin(i / 20.0 * Math.PI) - 0.5) / 40.0;
- *     for (int j = 0; j < height; j++) {
+ *     for (int j = 0; j &lt; height; j++) {
  *         floatMap.setSamples(i, j, 0.0f, (float) v);
  *     }
  * }
  *
  * DisplacementMap displacementMap = new DisplacementMap();
< prev index next >