Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8098897

RFE : javafx.scene.effect.light.Light API support on Mobile

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • fx1.0
    • javafx
    • all


      The APIs under javafx.scene.effect.light.Light should be supported on Mobile


      Sample code :

      -------------------------------------------------------- Code Begins --------------------------------------------------------

      import javafx.scene.*;
      import javafx.scene.effect.*;
      import javafx.scene.effect.light.*;
      import javafx.scene.paint.*;
      import javafx.scene.shape.*;
      import javafx.scene.text.*;
      import javafx.stage.Stage;

      var gr = Group {
          var t:Text;
          content: [
              Rectangle {
                  width: bind t.layoutBounds.width + 30
                  height: bind t.layoutBounds.height + 20
                  fill: Color.BLACK
              },
              t = Text {
                  effect: Lighting {
                      light: DistantLight {
                          azimuth: -135
                          elevation: 30
                      }
                      surfaceScale: 5
                  }
                  textOrigin: TextOrigin.TOP
                  x: 10
                  y: 10
                  content: "Light"
                  fill: Color.RED
                  font: Font.font(null, FontWeight.BOLD, 50);
              }
          ]
      }

      Stage {
          title: "MyApp"
          scene: Scene {
              fill: Color.BLACK
              width: 240
              height: 320
              content: [
                  gr
              ]
          }
      }


      -------------------------------------------------------- Code Ends --------------------------------------------------------

            jsterbajfx Jan Sterba (Inactive)
            snathsunw Subrata Nath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: