Japanese

Project Looking Glass (LG3D) Page

Contents


SmallToolkit for LG3D



SmallToolkit is a widget set for LG3D environments, SmallToolkit is offering the function to make some buttons, it looks like the buttons for trumplayer and jsaddle.

The following are examples of using smalltoolkit.
            Frame3D frame = new Frame3D();

            ClassLoader loader = this.getClass().getClassLoader();

            CylinderButtonComponent3D cylinder = new CylinderButtonComponent3D(loader.getResource("org/jdesktop/lg3d/apps/smalltoolkit/sample/resources/button_a.png"));
            cylinder.setPressedAction(new ActionBoolean(){
                public void performAction(LgEventSource source, boolean state){
                    component.setRotationAxis(1.0f,0.0f,0.0f);
                    if(state)
                        component.changeRotationAngle((float)Math.PI*2);
                    else
                        component.changeRotationAngle(0.0f);                        
                }
            });
            frame.addChild(cylinder);


Some button components are in the SmallToolkit as follows.


You can download a package when clicked the following link. smalltoolkit.jar, javadoc, source code are in this package.
Please install smalltoolkit.jar into $lg3d/ext/app.
License : GPL
SmallToolkit version 0.101 : smalltoolkit_0.101.zip Updated on 2007/04/16 : changed package's name


JSaddle - PDF Viewer for LG3D


Updated on 07/21/2007

JSaddle is the PDF viewer for LG3D 1.0 and later, based on JPedal(www.jpedal.org).
If you want to get source of the JSaddle, please get from lg3d-incubator.dev.java.net.

Main Viewer


When the mouse cursor is not in the menu area.


When the mouse cursor is in the menu area.


FileChooser View on the back side of the Main Viewer


Thumbnails Viewer (1:default)


Thumbnails Viewer (2)


Thumbnails Viewer (3)


Thumbnails Viewer (4)


Installation

Usage

Please see Usage : jsaddle_usage_en.pdf .

Trumplayer(MP3 Player) for LG3D





Flash Movie of the Early Prototype of the trumplayer (3MB) : No Sounds, Low Quality

Trumplayer is a MP3 player based LG3D and JLayer.

JLayer : http://www.javazoom.net/javalayer/javalayer.html
Trumplayer is in LG3D 1.0 binary package.
Latest daily build binary can be download at
https://lg3d-core.dev.java.net/binary-builds.html
* Trumplayer 1.0 is in the LG3D 0.9.0 daily build after 09-09-2006.
* Trumplayer 1.1(latest JLayer-based version) is in the LG3D 0.9.0 daily build after 09-16-2006.


Latest version binary release : Last Update : 2007/06/13
Changes from Trumplayer 1.1(LG3D 1.0 version):


Icon menu of the trumplayer is in [Media].

First time to run the trumplayer, setup wizard will be start up. Trumplayer search mp3 files from inputed folder/directory, and creates configuration file and playlist file from ID3 tags of mp3 files.




How to play music:
When clicked an album component, the jacket side of the album component is shown. You can change display side of the album component by click the left button on the album component. In case of the jacket side or play list side is shown, drag and drop the album component to the player view, the trumplayer play the music. If right clicked on the album component, the album component move back to the origin.
Jacket side of the Album Component PlayList side of the Album Component


Other features:

Search mode :



AlbumList(Playlist) Editor :




Additional Information: Trumplayer has editor and setup wizard to create configuration files(trumplayer.xml and m3u playlists).
But, of course, you can change configuration file by yourself. Configuration file of trumplayer is "trumplayer.xml". The file path of the trumplayer.xml is as follows.
Solaris or Linux : /home/${user}/trumplayer.xml
Windows : c:\documents and settings\${user}\trumplayer.xml

The format of the trumplayer.xml is as follows.
trumplayer configuration file : trumplayer.xml

<?xml version="1.0" encoding="UTF-8"?>

<root>
    <encode>ISO-8859-1</encode>
    <fontname>HGSGothicE</fontname>
    <album>
        <artist>BoA</artist>
        <title>BEST OF SOUL</title>
        <image>/windows/D/mp3/BoA/BEST OF SOUL.jpg</image>
        <m3u>/windows/D/mp3/BoA/BEST OF SOUL.m3u</m3u>
    </album>
    <album>
        <artist>TWO-MIX</artist>
        <title>dELTA ONE</title>
        <image>/windows/D/mp3/two-mix/dELTA ONE.jpg</image>
        <folder>/windows/D/mp3/two-mix/dELTA ONE</folder>
    </album>
    <album>
        <artist>Mai.K</artist>
        <title>FUSE OF LOVE</title>
        <image>/windows/D/mp3/Mai.K/FUSE OF LOVE.jpg</image>
        <folder recursive="true">/windows/D/mp3/Mai.K/FUSE OF LOVE</folder>
    </album>
</root>

The following table is a detail of tags of the trumplayer.xml.
<encode></encode> Character encode of the m3u files and mp3 ID3 tag. (ID3V1 cannot support to set character encode.)
<fontname></fontname> Specify the font that trumplayer uses.
<album></album> Tag to set album information.
<artist></artist> Artist name
<title></title> Album title
<image></image> Image file that you want to display. (e.g. Set image file of album's jacket. )
When set no image or trumplayer cannot found image, trumplayer display the text, "$artist-$title" instead of the image file.
<m3u></m3u> set m3u file path or extm3u(Winamp's extended m3u) file path
<folder></folder> When trumplayer found m3u tag, trumplayer use setting of the m3u tag. So, if you want to use folder tag, don't use m3u tag.
Trumplayer search mp3 from folder in the folder tag (not recursive), and use these information as album list. Album list is sorted with "track" field of ID3 tag or the file name. (At present, trumplayer supports ID3 Tag V1.0/1.1 only.)

First time to find folder tag, trumplayer search mp3 files and make EXTM3U(Winamp's extended m3u format) as $home/trumplayer/$artist-$title.m3u.
Next time to run trumplayer, trumplayer read this m3u file instead of searching mp3 in the folder.
<folder recursive="true"></folder> Search mp3 files recursively. Trumplayer recognize all mp3 files under this folder to one album. So, if folders under folder tag has some different album's mp3 file, you should not use recursive option.

Installation Support Script

This Installation Support Script is only for Linux, because this script uses some commands, which are not in Solaris.

Installation support script will never update.
Please use Mega Bundle version of LG3D.

Project Looking Glass (LG3D) requires some packages as follows.


Install Support Script is for to install these packages and to set configuration of LG3D.

Installation Support Script pack has no binary packages of JDK, JRE, JAI, Java3D and LG3D. If you want to install these packages, you have to prepare these packages.

Detail usage of this script is written in usage.txt in the Installation Support Script package.
'usage_ja.txt' is written in Japanese UTF-8.


nosrc.rpm

LG3D source packages has ability of build RPM binary package. But, RPM package of Java3D and JAI does not exist. And, JDK and JRE has some other API/Packages.
Current LG3D requires beta API, so it is useful that JDK or JRE is installed in the LG3D directory. So, I built nosrc.rpm of JDK, JRE, JAI, and Java3D for LG3D environment.
You can build RPM binary packages from these nosrc.rpm. RPM Binary packages will install binary into /opt/lg3d.
==
JDK will be installed into /opt/lg3d/jdk1.5.0_06 (JRE will be installed into /opt/lg3d/jre1.5.0_06), and will create symbolic link /opt/lg3d/jre. JAI and Java3D will installed into under /opt/lg3d/jre.
==

These nosrc.rpm files build with RPM version 4.1.1 on Sun Java Desktop System.


Yasuhiro Fujitsuki
Yasuhiro.Fujitsuki_at_Sun.COM