Skip to end of metadata
Go to start of metadata
TridentBuilder is a Groovy builder for the open source Trident animation library

Description

The goal of this project is to provide a powerful and extensible animation library for Java applications.

Download

tridentbuilder-0.6

Installing

Drop tridentbuilder-0.5 into $GROOVY_HOME/lib along with its dependencies

All these dependencies can be downloaded from this directory too.

Warning

Icon

Trident and TridentBuilder require Jdk6 to be installed.

Maven

Gradle

Pre-requisites

Groovy 1.8.6 is the required minimum version to run TridentBuilder 0.6
It is recommended that you upgrade to the 1.8.x series in order to take advantage of

  • @Bindable and ASTTransformations
  • short binding syntax
  • numerous enhancements made to SwingBuilder and FactoryBuilderSupport

Documentation

These are the nodes currently supported by TridentBuilder 0.6, they are listed in groups. Component groups are a good way to organize nodes, they also serve another purpose when used with Griffon's CompositeBuilder.

Properties

Icon

The following table summarizes the properties required by the node factories, there are other properties that can be set on the built nodes, refer to Trident's javadocs to know more about them.

Trident

 

 

 

 

 

 

Node

Property

Type

Default

Required

Bindable

Notes

timeline
[Timeline]

start

boolean

 

(error)

(error)

 

 

loop

Timeline.RepeatBehavior

 

(error)

(error)

alternative values are [true, "loop", "reverse"]

 

target

Object

 

(error)

(error)

also can be set as the node's value

timelineCallback
[TimelineCallbackFactory]

timelinePulse

Closure

 

(error)

(error)

can be defined as a nested closure
args are (float durationFraction, float timelinePosition)

 

timelineStateChanged

Closure

 

(error)

(error)

can be defined as a nested closure
args are (TimelineState oldState,
TimelineState newState, float durationFraction,
float timelinePosition)

interpolatedProperty

property

String

 

(tick)

(error)

or set the property's as the node's value

 

from

Object

 

(tick)

(error)

 

 

to

Object

 

(error)

(error)

 

 

interpolator

PropertyInterpolator

 

(error)

(error)

 

keyFrames
[List]

property

String

 

(tick)

(error)

or set the property's as the node's value

 

interpolator

PropertyInterpolator

 

(error)

(error)

 

keyFrame

offset

float

 

 

(tick)

(error)

 

 

value

Object

 

 

(tick)

(error)

 

 

ease

TimelineEase

 

 

(error)

(error)

 

linearEase
[Linear]

 

 

 

 

 

 

sineEase
[Sine]

 

 

 

 

 

 

splineEase
[Sine]

amount

float

 

(tick)

(error)

must be in the range [0..1]

timelineScenario
[TimelineScenario]

 

 

 

 

 

 

parallelScenario
[TimelineScenario.Parallel]

 

 

 

 

 

 

sequenceScenario
[TimelineScenario.Sequence]

 

 

 

 

 

 

rendevouzScenario
[TimelineScenario.RendezvousSequence]

 

 

 

 

 

 

timelineScenarioCallback
[TimelineScenarioCallbackFactory]

onDone

Closure

 

(error)

(error)

can be defined as a nested closure

swingRepaintTimeline
[SwingRepaintTimeline]

start

boolean

 

(error)

(error)

 

 

loop

Timeline.RepeatBehavior

 

(error)

(error)

alternative values are [true, "loop", "reverse"]

 

target

Object

 

(error)

(error)

also can be set as the node's value

 

zone

Rectangle

 

(error)

(error)

 

timelineRunnable
[TimelineRunnable] ]

 

 

 

 

 

 

Triggers

 

 

 

 

 

 

Node

Property

Type

Default

Required

Bindable

Notes

actionTrigger

 

 

 

 

 

node value will be used as the event source

focusTrigger

event

FocusTriggerEvent

GAINED

(error)

(error)

values can be literal too ['gained', 'lost']

 

autoReverse

boolean

false

(error)

(error)

 

 

 

 

 

 

 

node value will be used as the event source

mouseTrigger

event

MouseTriggerEvent

CLICK

(error)

(error)

values can be literal too ['enter', 'exit', 'press', 'release', 'click']

 

autoReverse

boolean

false

(error)

(error)

 

 

 

 

 

 

 

node value will be used as the event source

An additional synthetic property is available too:

  • actionTriggerFor - its value must be a Timeline reference. This attribute makes the owner the source of the trigger event.

Exmaple:

Hovering the mouse over button 'One' will trigger the animation. Moving the mouse outside of the button's boundaries will reverse the animation. Clicking on the second button triggers the animation too.

Developers

Andres Almiray

Source Control

https://github.com/griffon/tridentbuilder

Building

TridentBuilder uses Gradle as its build tool.

Contributing

Please contact the Griffon team members by e-mail.

Mailing List(s)

http://griffon.codehaus.org/Mailing+Lists

Issue tracker

http://jira.codehaus.org/browse/GRIFFON

  • No labels