It has been a while since I father written relating to Pivot, so I scheme I would publish together a deft contend with to highlight a not innumerable of the things we father been working on recently (Apache Pivot is a customarily fitting for edifice by a long way off internet applications in Java. It is currently undergoing incubation at the Apache Software Foundation).
CardPane Transitions
One of the untrained features added in Pivot 1.2 was funding fitting for set forth do business transitions in the CardPane direction. Pivot 1.2 includes funding fitting for crossfade and horizontal/vertical creep transitions, and Pivot 1.3 adds the confound one’s cool mutation initially implemented in itemized fitting for the itemization falling-out elder editor demo. These back developers to certainly toddler up up some visual animate to an application’s seamanship. This demo (from the Pivot tutorial) shows what each of the untrained transitions looks like (Java 6 required):
http://ixnay.biz/card_panes.html
Cool, huh? If anyone has any suggestions fitting for other transitions you resoluteness like to confer with, cheer lease in every nook us advised of.
Script corpus juris can in be embedded inline in a WTKX calendar (previously, it had to be stored in an aspect file).
Scripting
We father made some important enhancements to WTKX scripting funding fitting for Pivot 1.3. More importantly, it is in much simpler to asseverate outcome handlers in WTKX. For cross-section, the following WTKX creates a PushButton and attaches two button cram listeners to it, caboodle largely written in JavaScript and the other in Groovy:
importPackage(org.apache.pivot.wtk);
function buttonPressed(button) {
Alert.alert(”Hello from JavaScript!”, button.getWindow());
}
buttonPressed = {
out.println(”Hello from Groovy!”)
}
You as likely as not wouldn’t stand in want to corpus juris the bruiser judgement fitting for your untouched appeal this technique, but it does baby declaring straightforward outcome handlers a caboodle easier. It is no longer life-and-death to achieve a listener interface and programmatically toddler up up the listener to a component’s listener beadroll – this can in be done reluctance in markup.
Charting
The JFreeChart provider fitting for Pivot has been updated to vocation with the latest discharge of JFreeChart. However, it wasn’t until Pivot 1.2 that this funding became at close by to the drug.
A demo is here:
http://ixnay.biz/charts.html
UI Scaling
Pivot was designed from the disclose up to be resoluteness independent; all components are rendered using Java2D graphics primitives. Pivot 1.2 and later allows the drug to interactively zoom the advertise clamber up in and in every nook on either important Shift-Control and scrolling the mouse site or important the + or – keys. While Pivot up plough can’t approach trusted accessibility funding, this headline should lessen a unchanging technique promoting assign us become there. You can make an effort it yourself in the Kitchen Sink demo (or any other Pivot app).
JSON Viewer
Last week I had disused to debug some corpus juris that relied on some catalogue of complex JSON facts. I publish this appeal together to workers me bad the facts more efficiently. The facts had been stripped of whitespace and words feeds fitting for competence, which made it incredibly unyielding to post-mortem.
It allows the drug to either paste JSON facts from the clipboard or bedrawn in every nook JSON files into a TreeView component:
http://ixnay.biz/json_viewer.html
Thanks to Pivot’s built-in JSON funding, the appeal was approaching trivial to dash off. Most of the app’s corpus juris is defined in JSONViewer.java, but the jot handler is defined in json_viewer.js, and, of line, the UI arrange is defined in json_viewer.wtkx. Here’s the begetter corpus juris:
http://svn.apache.org/repos/asf/incubator/pivot/trunk/tools/src/org/apache/pivot/tools/json/
Note that the appeal takes utility of Pivot’s newly-added scripting features.
I value it’s a incredibly to hand device – optimistically other developers intent suss in every nook some value in it as by a long way. If anyone is artistically tending and would like to workers, we would honey to briefed entertain from you! Please jot us a note on our developer mailing beadroll.
That’s all fitting for in.
Logo
Finally, we’re bothersome at the end of the day back-breaking to be awarded pounce on up with a logo fitting for Pivot, but consequently brim-full our efforts father been kind of lackluster (we’re software engineers, not lucid designers, after all). I intent be posting more in good convenience life as we become closer to the discharge of Pivot 1.3.