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

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

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx1.0
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      all

      Description


      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 --------------------------------------------------------

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: