JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

A wipe-supporting container. This node class acts like any other JavaFX container, except it can only have once child, that can be changed using an assigned wipe effect.

This class is at the heart of the wipe library. A WipePanel can be plugged into the scene graph like any other container, except for two things: a Wipe subclass can be assigned to act as a transition effect, and an event function can be declared to run when the transition is over. To kick off a wipe transition, and change the WipePanel's contents, call the next() function,

wiper = WipePanel {
   content: [ node1 ]
   wipe: FadeWipe { time: 1s }
   action: function() { println("Done"); }
 }
 // ...
 wiper.next(node2);

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicactionfunction():Void

Function to call when wipe is finished.

publicwipeWipe

Wipe effect to apply whenever next() is called.

Inherited Variables

Function Summary

public next(to: Node) : Void

Change the node content of the WipePanel, using the assigned wipe effect,

Change the node content of the WipePanel, using the assigned wipe effect,

Parameters
to
Wipe the existing node content to this node.
 

Inherited Functions