Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

Installing

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

All these dependencies can be downloaded from this directory too.

Warning
titleWarning

Trident and TridentBuilder require Jdk6 to be installed.

Maven

Code Block
   <repository>
    <id>codehaus-release</id>
    <name>Codehaus</name>
    <url>http://repository.codehaus.org</url>
  </repository>

  <dependency>
    <groupId>org.codehaus.griffon</groupId>
    <artifactId>tridentbuilder</artifactId>
    <version>0.5<6</version>
  </dependency>

Gradle

Code Block

repositories {
    mavenRepo name: 'Codehaus', urls: 'http://repository.codehaus.org'
    mavenCentral()
}

dependencies {
    compile 'org.codehaus.griffon:tridentbuilder:0.56'
}

Pre-requisites

Groovy 1.8.0 6 is the required minimum version to run TridentBuilder 0.56
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

An example application can be found at http://github.com/aalmiray/TridentDemo/tree/master, it recreates some of Trident's samples in a friendly Griffon manner.

These are the nodes currently supported by TridentBuilder 0.56, 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.

...

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

Exmaple:

Code Block
   button("One", id: "button", foreground: Color.BLUE)
  timeline(button, duration: 2500, id: 't') {
      interpolatedProperty("foreground", from: Color.BLUE, to: Color.RED)
      mouseTrigger(event: 'enter', autoReverse: true)
  }
  button('Two', id: 'b1', actionTriggerFor: t)

...