The core functionality of the Trident library can be extended to address custom needs of the specific applications. Out of the box Trident supports:
- The timeline pulses being fired by a dedicated thread that wakes up every 40ms and updates all the timelines
- Interpolating float and integer fields of any Java object that provides the matching public setter methods
- Swing UI toolkit, respecting the threading rules and providing interpolators for the custom graphic classes
Interested applications can use Trident configuration APIs to:
- Provide a custom pulse source to drive the timeline updates
- Provide additional property interpolators for custom application classes
- Support additional Java-based UI toolkits
The org.pushingpixels.trident.TridentConfig
class contains the published configuration APIs. The TridentConfig.getInstance()
API retrieves an instance of this class which can then be used for:
- Setting a custom pulse source
- Adding, removing and querying property interpolators
- Adding, removing and querying UI toolkit handlers