<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/bdjen/">
    <title>BD-J Programming@ wiki</title>
    <link>http://w.atwiki.jp/bdjen/</link>
    <atom:link href="https://w.atwiki.jp/bdjen/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>BD-J Programming@ wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2009-09-28T21:29:00+09:00</dc:date>
    <utime>1254140940</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/4.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/5.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bdjen/pages/6.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/16.html">
    <title>Font</title>
    <link>https://w.atwiki.jp/bdjen/pages/16.html</link>
    <description>
      Although BD Players contains minimum font data for rendering text, the variety of fonts is very limited. This page explains basic information on how to utilize font on BD media

The following two methods are provided for mapping font names to font data: 
+ Resident font
+ Downloadable font

The remaining part summarizes how to prepare fonts and use those for each method.

* Resident font
- How to prepare font: place [[Font file]]s under /BDMV/AUXDATA, and then store five digits of the Font file name in [[terminalInfo]]-&gt;defaultFontFile field of [[BD-J Object file]].
- How to use font: Graphics context refers to the font by default, so no additional method calls are needed.

* Downloadable font
- How to prepare font: place [[Font file]]s and [[Font Index file]] storing the mapping information between the [[Font file]]s and font names under /BDMV/AUXDATA.
- How to use font: create a Font instance by using FontFactory.createFont(font name, font style, font size) and then set it to graphics context.

----
* See also
- [[BDA]]: gives overvew in &quot;BD-J Baseline Application and Logical Model Definition for BD-ROM&quot; 
- [[Font file]]: explains Font format
#right(){Tag list: &amp;tags() &amp;counter()}
----
* Message board
#pcomment()
#javascript(){{
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-10857512-1&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;
}}    </description>
    <dc:date>2009-09-28T21:29:00+09:00</dc:date>
    <utime>1254140940</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/15.html">
    <title>Instructions and notes</title>
    <link>https://w.atwiki.jp/bdjen/pages/15.html</link>
    <description>
      This page describes important notes and instructions how to use sample codes on the site.
* Important notes
- Error handlings and resource deallocations are ommited to concentrate on how to realize functions.
- Operation check has been done only on PS3. Please let me know if you find problems on other platforms.
* Instructions
There are two options:
- [[Minimal BD-J (Java) Devkit for PS3]](MBDfP), and
- [[HD Cookbook]]
but you should choose HD Cookbook at this time rom scalability and extensibity viewpoint.

The following table summarizes the procesure for each option.
||MBDfP|HD Cookbook|
||||
|Preparation|Obtain and install stub file and MBDfP|Obtain and install stub file and HD Cookbook|
|Editing code|Change class name to MyXlet, save it as file name &quot;MyXlet.java&quot;, and compile it|replace &quot;xlets/tests/functional/Playground/Main.java with sample code|
|Building package|Generate 00000.jar based on MyXlet.class and bluray.MyXlet.permコ, sign 00000.jar with sign.bat, and then copy 00000.jar to the directory BDMV/JAR in &quot;disc files&quot; of MBDfP|Execute [[Ant]]|
|Writing the package to recording media|Rename INDEX.BDM and MOVIEOBJ.BDM to index.bdmv andMovieObject.bdmv, respectively、and copy the directory tree just under AVCHD directory in MBDfP to root of BD-RE/R media|Copy directory tree just under dist directory to the root of BD-RE/R media|
----
* See also
----
#right(){Tag list: &amp;tags() &amp;counter()}
* Message board
#comment(title_name=Name:,title_ms=Comment:)

&amp;html(&lt;a href=&quot;http://w1.ax.xrea.com/c.f?id=100104052&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://w1.ax.xrea.com/l.f?id=100104052&amp;url=X&quot; alt=&quot;AX&quot; border=&quot;0&quot;&gt;&lt;/a&gt;)

#javascript(){{
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-10857512-1&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;
}}    </description>
    <dc:date>2009-09-27T19:55:59+09:00</dc:date>
    <utime>1254048959</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/2.html">
    <title>Menu</title>
    <link>https://w.atwiki.jp/bdjen/pages/2.html</link>
    <description>
      ** Menu for all
- What&#039;s BD-J?
- [[Sample code]]
- Tools
- Know-how
- Links&amp;Books
- Miscellaneous information

** Menu only for members
- Difference among players
- Trouble shooting
- PS3 BD-J Analysis



----
** Menu for the administrator
- [[Back-up &gt;http://www39.atwiki.jp/_mng/backup2.php]]
- Pages to be filled

&amp;link_editmenu(text=Edit this pane)    </description>
    <dc:date>2009-09-27T19:47:54+09:00</dc:date>
    <utime>1254048474</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/14.html">
    <title>Text rendering using downloadable font</title>
    <link>https://w.atwiki.jp/bdjen/pages/14.html</link>
    <description>
      This sample code shows how to render text with [[downloadable font&gt;Font]].
In addition to the program, the following files are needed:
- [[Font file]]: file containing font pattern
- [[Font Index file]]: file defining the mapping between [[Font file]] and font name

#center(){Main.java}
#highlight(java){
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

import javax.tv.xlet.Xlet;
import javax.tv.xlet.XletContext;

import org.dvb.ui.FontFactory;
import org.havi.ui.HScene;
import org.havi.ui.HSceneFactory;
import org.havi.ui.HScreen;

public class Main  implements Xlet{
    int x = 100, y = 100;
    public void initXlet(XletContext context){
        try {
            Font f;
            HScene hs= HSceneFactory.getInstance().getFullScreenScene(
                    HScreen.getDefaultHScreen().getDefaultHGraphicsDevice());
            hs.setVisible(true);
            Graphics g = hs.getGraphics();
            g.setColor(Color.white);
            // Obtaining font instance
            f = new FontFactory().createFont(&quot;mika&quot;, java.awt.Font.PLAIN, 48);
            g.setFont(f);
            g.drawString(&quot;test&quot;, x, y); y += 50;
        } catch (Throwable thr){
        }
    }
    public void startXlet(){    }
    public void pauseXlet(){    }
    public void destroyXlet(boolean unconditional){}
}
}
----
* See also
- [[Font]]:describes Downloadable Font
#right(){Tag list: &amp;tags() &amp;counter()}
----
* Message board
#pcomment()
#javascript(){{
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-10857512-1&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;
}}    </description>
    <dc:date>2009-09-27T19:42:40+09:00</dc:date>
    <utime>1254048160</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/13.html">
    <title>Sample code</title>
    <link>https://w.atwiki.jp/bdjen/pages/13.html</link>
    <description>
      This page is a list of sample codes which demonstrate various BD-J functions. Please refer to [[Instructions and notes]] before you run these codes.
&amp;color(red){Under construction}
* Graphics, UI
- [[Text rendering using downloadable font]]
- JPEG rendering to background plane
- Obtaining configuration change event and resolution of plane
- Enabling coexistence of Quarter HD(QHD) Graphics and HD video
- Enabling coexistence of HD/QHD graphics and SD video(KEEP_RESOLUTION)
- Setting HScene area: How to set the area of HScene.
- Setting HScene background color
- Z-order control of HScenes
- Z-order control of Components
- Text button widget(HTextButton)
- Graphics button widget(HGraphicsButton]]
- Progress bar widget(HRange)
- Receiving key event from component without focus
- Receiving key event exclusively
- Receiving playback key event
- Obtaining various information on key buttons
#co(){
- AV Playback
-- [[Movie PlayListの再生]]: アプリケーションからの[[Movie PlayList]]再生
-- [[Autostart PlayListを使用する設定]]: アプリケーション起動と同時の[[Movie PlayList]]再生
-- [[Autostart PlayListに対応するJMF Playerの取得]]
-- [[再生状態の取得]]
-- [[再生時間と再生時刻の取得]]
-- [[再生速度の変更]]:一時停止や高速再生を行うサンプルコード
-- [[指定再生時刻でのイベント発生]]
-- [[ビデオ表示サイズ・位置の変更]]
-- [[指定チャプターへのジャンプ]]
-- [[チャプター境界およびPlayItem境界でのイベント発生]]
-- [[字幕表示の制御]]
-- [[字幕変更イベントの取得]]
-- [[Primary Audioの切り替え]]
-- [[UOMaskTableの取得]]: キー入力マスクを指定するテーブルである[[UOMaskTable]]を取得するサンプルコード
-- [[マスクされたキーの入力イベントの取得]]
-- [[Interactive Audioの再生]]: [[sound.bdmv&gt;Sound data file]]の再生
-- [[Interactive Audioの再生-2]]: JARファイル中の[[Sound data file]]の再生
-- [[Interactive Audioの再生-3]]: 任意ディレクトリの[[Sound data file]]の再生
-- [[Interactive Audioの定位制御]]
-- [[Primary Audioの音量設定]]
-- [[全体音量の設定]]
-- [[PSR値の取得]]: [[Player Status Register(PSR)&gt;PSR]]と呼ばれるプレーヤーの状態を保持するレジスタの値を取得するサンプルコード 
- ファイルI/O・ネットワーク
-- [[Local Storageアクセスに必要な各種情報の取得]]
-- [[ADAの読み書き]]: ゲームのハイスコアなどを記録することを想定した不揮発記録領域であるApplication Data Area(ADA)の読み書きのサンプルコード
-- [[BDメディアからのファイル読み込み]]: JARファイル外のファイルにアクセスするサンプルコード
-- [[BUDAへのファイルの追加]]: [[Binding Unit Data Area&gt;Local Storage]]にファイルを追加するサンプルコード
-- [[VFSのアップデート]]: [[BUDA&gt;Local Storage]]に追加したファイルで、BDメディアを擬似的にアップデートするサンプルコード
-- [[Local Storageの容量取得]]: [[ADA&gt;Local Storage]]および[[BUDA&gt;Local Storage]]の容量および残容量を取得するサンプルコード
-- [[BDメディア挿入排出イベントの取得]]
- [[Title]] management
-- [[Titleリストの取得]]
-- [[現在再生中のTitleに関する情報の取得]]
-- [[Title Typeの取得]]
-- [[アクセス可能なMovie PlayList情報の取得]]
-- [[PlayItem情報の取得]]
-- [[別のTitleへの切り替え]]
-- [[Titleの再スタート]]
-- [[Title状態遷移イベントの取得]]
-- [[Titleの自己終了]]
- [[Application&gt;Xlet]] control
-- [[Xlet情報の取得]]
-- [[同一Title内で別Xletを起動する場合の設定]]
-- [[Xletの制御とXlet状態遷移イベントの取得]]
-- [[Xletの自己終了]]
-- [[Xlet間の通信]]
-- [[Title unbound application用設定]]
-- [[Disc unbound application用設定]]
- Miscellaneous
-- [[User Preferenceの取得]]: 言語設定などを取得するサンプルコード
-- [[GPRの読み書き]]
-- [[既存パッケージを使用する設定]]
-- [[XMLの解析]]
}
#right(){Tag list: &amp;tags() &amp;counter()}
----
* Message board
#pcomment(reply,below2)

#javascript(){{
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-10857512-1&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;
}}    </description>
    <dc:date>2009-09-27T19:38:34+09:00</dc:date>
    <utime>1254047914</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/1.html">
    <title>Top page</title>
    <link>https://w.atwiki.jp/bdjen/pages/1.html</link>
    <description>
      #right(){&amp;color(red){All rights reserved}}
This wiki is an aggregate of BD-J Programming related information.
#right(){Today：&amp;counter(today), Yesterday：&amp;counter(yesterday), Total：&amp;counter()}
#right(){# of members：&amp;count_members()}
----
* Message board
- Your comments and requests are appreciated.
#pcomment(title_name=name, reply,below2,20)
#javascript(){{
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-10857512-1&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;
}}    </description>
    <dc:date>2009-09-27T19:36:20+09:00</dc:date>
    <utime>1254047780</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/bdjen/pages/3.html</link>
    <description>
      ** Update history
#recent(50)


&amp;link_editmenu2(text=Edit this pane)    </description>
    <dc:date>2009-09-27T19:21:32+09:00</dc:date>
    <utime>1254046892</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/bdjen/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_174_ja.html


-----


たとえば、#news(wiki)と入力すると以下のように表示されます。


#news(wiki)
    </description>
    <dc:date>2009-09-27T19:21:32+09:00</dc:date>
    <utime>1254046892</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/5.html">
    <title>まとめサイト作成支援ツール</title>
    <link>https://w.atwiki.jp/bdjen/pages/5.html</link>
    <description>
      * まとめサイト作成支援ツールについて
@wikiには[[まとめサイト作成を支援するツール&gt;&gt;http://atwiki.jp/matome/]]があります。
また、
 #matome_list
と入力することで、注目の掲示板が一覧表示されます。

利用例）#matome_listと入力すると下記のように表示されます
#matome_list
    </description>
    <dc:date>2009-09-27T19:21:32+09:00</dc:date>
    <utime>1254046892</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bdjen/pages/6.html">
    <title>プラグイン/編集履歴</title>
    <link>https://w.atwiki.jp/bdjen/pages/6.html</link>
    <description>
      * 更新履歴
@wikiのwikiモードでは
 #recent(数字)
と入力することで、wikiのページ更新履歴を表示することができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_117_ja.html


-----


たとえば、#recent(20)と入力すると以下のように表示されます。


#recent(20)
    </description>
    <dc:date>2009-09-27T19:21:32+09:00</dc:date>
    <utime>1254046892</utime>
  </item>
  </rdf:RDF>
