< prev index next >

apps/samples/Ensemble8/src/samples/java/ensemble/samples/scenegraph/nodeproperties/NodePropertiesApp.java

Print this page




  23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31  */
  32 package ensemble.samples.scenegraph.nodeproperties;
  33 
  34 import javafx.application.Application;
  35 import javafx.scene.Parent;
  36 import javafx.scene.Scene;
  37 import javafx.scene.layout.Pane;
  38 import javafx.scene.paint.Color;
  39 import javafx.scene.shape.Rectangle;
  40 import javafx.stage.Stage;
  41 
  42 /**
  43  * A sample that demonstrates some properties of nodes. Use the radio buttons
  44  * to send any of the rectangles to the front or back. Use the controls to
  45  * change opacity or horizontal position.
  46  *
  47  * @sampleName Node Properties
  48  * @preview preview.png
  49  * @see javafx.scene.Node
  50  * @see javafx.scene.layout.Pane
  51  * @see javafx.scene.paint.Color
  52  * @see javafx.scene.shape.Rectangle
  53  * @playground rectA.translateX (name="Rectangle A translate X", min=0, max=50)
  54  * @playground rectB.translateX (name="Rectangle B translate X", min=0, max=50)
  55  * @playground rectC.translateX (name="Rectangle C translate X", min=0, max=50)
  56  * @playground rectA.opacity (name="Rectangle A Opacity", min=0, max=1)
  57  * @playground rectB.opacity (name="Rectangle B Opacity", min=0, max=1)
  58  * @playground rectC.opacity (name="Rectangle C Opacity", min=0, max=1)
  59  *
  60  * @related /Scenegraph/Custom Node
  61  * @related /Graphics 2d/Shapes/Rectangle
  62  * @related /Scenegraph/Stage
  63  */
  64 public class NodePropertiesApp extends Application {




  23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31  */
  32 package ensemble.samples.scenegraph.nodeproperties;
  33 
  34 import javafx.application.Application;
  35 import javafx.scene.Parent;
  36 import javafx.scene.Scene;
  37 import javafx.scene.layout.Pane;
  38 import javafx.scene.paint.Color;
  39 import javafx.scene.shape.Rectangle;
  40 import javafx.stage.Stage;
  41 
  42 /**
  43  * A sample that demonstrates some properties of nodes. Use the controls to

  44  * change opacity or horizontal position.
  45  *
  46  * @sampleName Node Properties
  47  * @preview preview.png
  48  * @see javafx.scene.Node
  49  * @see javafx.scene.layout.Pane
  50  * @see javafx.scene.paint.Color
  51  * @see javafx.scene.shape.Rectangle
  52  * @playground rectA.translateX (name="Rectangle A translate X", min=0, max=50)
  53  * @playground rectB.translateX (name="Rectangle B translate X", min=0, max=50)
  54  * @playground rectC.translateX (name="Rectangle C translate X", min=0, max=50)
  55  * @playground rectA.opacity (name="Rectangle A Opacity", min=0, max=1)
  56  * @playground rectB.opacity (name="Rectangle B Opacity", min=0, max=1)
  57  * @playground rectC.opacity (name="Rectangle C Opacity", min=0, max=1)
  58  *
  59  * @related /Scenegraph/Custom Node
  60  * @related /Graphics 2d/Shapes/Rectangle
  61  * @related /Scenegraph/Stage
  62  */
  63 public class NodePropertiesApp extends Application {


< prev index next >