We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › success with Tango Project SVG icons
Page Index Toggle Pages: 1
success with Tango Project SVG icons (Read 366 times)
success with Tango Project SVG icons
Jan 9th, 2008, 12:31am
 
I have created a processing library for loading Tango Project icons from a java project built on Apache Batik.

http://tango-project.org

http://dishevelled.org/iconbundle-tango

http://xmlgraphics.apache.org/batik/

The library will load Extra Small and Small icons from 16x16 and 22x22 pixel .png files and will load Large and any other size icons from scalable .svg files.  All variants of these icons, for different text directions, sizes, and states (normal, active, mouseover, selected, dragging, and disabled) are available from this icon bundle.

Code:

import org.dishevelled.iconbundle.*;
import org.dishevelled.iconbundle.tango.*;

void setup()
{
IconBundle iconBundle = TangoProject.COMPUTER;
PImage image = ProcessingUtils*.getImage(iconBundle,
IconTextDirection.LEFT_TO_RIGHT,
IconState.NORMAL,
TangoProject.LARGE);
}

void draw()
{
image(pImage, 20, 20);
}

// * actual class name T.B.D.

I still need to work on library packaging with regards to dependencies and licenses, but if you might be interested, please let me know.

Unfortunately this library won't be very useful in an applet environment due to its size, at nearly 10.4 MB.
Page Index Toggle Pages: 1