
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);
|

| Jacket side of the Album Component | PlayList side of the Album Component |
|---|---|
![]() |
![]() |
<?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>
|
| <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. |
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.
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.