<?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.91">
  <channel>
    <title>フリーソフト指向::開発日記</title>
    <description>2007/03/04開始。ソフトウェア管理やDelerer SEの作者であるおにぎりくんの試行錯誤の記録です。</description>
    <link>http://freesoftoriented.blog.shinobi.jp/</link>
    <language>ja</language>
    <copyright>Copyright (C) NINJATOOLS ALL RIGHTS RESERVED.</copyright>

    <item>
      <title>[Vue.js]時計？タイムコードを表示するWebアプリ</title>
      <description>タイムコードを表示するWebアプリを作りました。&lt;br /&gt;
&lt;a href=&quot;https://heterotactic-locati.000webhostapp.com/timer.html&quot; title=&quot;&quot;&gt;https://heterotactic-locati.000webhostapp.com/timer.html&lt;br /&gt;
&lt;br /&gt;
&lt;/a&gt;
&lt;blockquote&gt;複数台のカメラで同時に撮影するときに、最初または最後にこのアプリを撮っておくと、映像同士の時刻を合わせやすくなります。 機材がなくてもいい、お手軽な同期アプリとしてご利用ください。&lt;/blockquote&gt;
&lt;br /&gt;
【使い方】&lt;br /&gt;
使い方はここにあるとおり、ビデオカメラでWebアプリの画面を撮影することで、映像の時刻をフレーム単位で割り出せるというものです。&lt;br /&gt;
カチンコという、いわゆる「アクション！（カンッ）」ってやるやつの代わりに使います。&lt;br /&gt;
ちゃんとした撮影機材があれば、専用の機材と線でつないで時刻を同期するのですが、そのような機材は手元になく・・・家庭用ビデオカメラで似たようなことをするためにこのWebアプリを作成しました。複数のカメラで同時に撮影し、あとで編集するようなケースではこれがめちゃめちゃ役に立ちます。&lt;br /&gt;
&lt;br /&gt;
時刻同期の機能は作っていないため、29.7 fpsみたいなことはできません。&lt;br /&gt;
代わりではないですが、タイムコードの上にバーを表示しています。これで、画面表示されたタイミングが1frameのなかのどのタイミングだったのかが分かるようになっています。&lt;br /&gt;
たとえば30fpsで動かすとき、画面やブラウザはたいてい60fpsなので、同じタイムコードを2回表示することになるわけです。それを撮影したとしても、２回表示したうちのどちらが撮影されたのかまではわかりませんので、複数カメラの映像をつなげるときに若干のズレが起こります。（音がずれるので少し違和感が出ます）&lt;br /&gt;
もし印がバーの左側なら表示された値の通り、中央なら0.5frameのあたり、右側なら次のフレームに近いと判断でき、1frame未満も調整できるようになっているわけです。&lt;br /&gt;
&lt;br /&gt;
別の使い方ですが、Clockモードを選ぶと、時計として使えます。&lt;br /&gt;
&lt;br /&gt;
【使ったテクノロジー】&lt;br /&gt;
フレームワークはVue.js＋Vuerifyを使っています。npmでビルドするのが面倒だったので、CDNから持ってくるだけになっています。思ったよりVuerifyはサイズ小さい。&lt;br /&gt;
&lt;br /&gt;
</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/-vue.js-%E6%99%82%E8%A8%88%EF%BC%9F%E3%82%BF%E3%82%A4%E3%83%A0%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8Bweb%E3%82%A2%E3%83%97%E3%83%AA</link> 
    </item>
    <item>
      <title>ポエム</title>
      <description>学生のころは、自分で勉強しながらフリーソフトを作っていました。そのころは、意欲と好奇心で楽しかったのですが、いまはお仕事でシステム開発をしています。チームでの開発、他人からもらった要求で開発する、という違いはあるけれど、技術的にはひとりでやっていたときよりも現代的で、面白みのあるものを扱っています。&lt;br /&gt;
あの頃のような意欲はなかったとしても、今は知識と経験があって、また違った面で技術習得したくなる&amp;hellip;反面、ちょっと自分にはムリかなと思ってしまうこともある&amp;hellip;。&lt;br /&gt;
&lt;br /&gt;
readpro6&lt;br /&gt;
&lt;a href=&quot;https://github.com/LapisCactus/readpro6&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;https://github.com/LapisCactus/readpro6&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
readpro6というツールはそういう意味で、いまでもフリーソフトを作りたい気持ちがある、手の届く範囲の技術で、いまの自分の要求を叶えるツールを作ってみたい、そんな気持ちの現れなのかも、と思ったのでした。</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E3%83%9D%E3%82%A8%E3%83%A0</link> 
    </item>
    <item>
      <title>メトロノームアプリをリリース</title>
      <description>&lt;p&gt;Androidアプリ「練習用メトロノーム バージョン0.1」をリリースしました。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://play.google.com/store/apps/details?id=jp.fsoriented.cactusmetronome&amp;amp;hl=ja&quot; target=&quot;_blank&quot;&gt;練習用メトロノーム - Google Play の Android アプリ&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;【特徴】
・タップしてテンポを計測できる
・テンポとリズムパターンを保存でき、曲名とメモを残せる
・クリック音を音声ファイルとして保存できる
・シンプル

【想定するユースケース】
・課題曲のテンポをお気に入りにいれておき、練習のときに使う
・セットリストとして使う
・設定したテンポの音声ファイルを作成し、レコーディングのクリック音として使う
&lt;/pre&gt;
&lt;p&gt;以前作った、メトロノームライブラリを使っています。&lt;br /&gt;
趣味の時間がとれたら、いろいろ作ってみたいものです。&lt;/p&gt;</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/android/%E3%83%A1%E3%83%88%E3%83%AD%E3%83%8E%E3%83%BC%E3%83%A0%E3%82%A2%E3%83%97%E3%83%AA%E3%82%92%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9</link> 
    </item>
    <item>
      <title>Sikulix勉強中：便利関数</title>
      <description>&lt;p&gt;「sikulix」というアプリを使うことがあって、ちょっと遊んでいます。 sikulixは、画面に表示されているボタンやリンクを画像認識するソフトウェアです。テスト自動化にも使えます。&lt;/p&gt;
&lt;p&gt;sikulixの勉強がてら、便利関数を幾つか作りました。現状の成果ということで、ここに添付して説明したいと思います。&lt;/p&gt;
&lt;pre class=&quot;python&quot; name=&quot;code&quot;&gt;# utility function
import time

# wait and click
# @param picture a string of picture file name or a Pattern instance
# @param time a integer of timeout
# @throws Exception when timeout
def wc(picture, time):
    pic_name = picture
    if isinstance(picture, Pattern):
        pic_name = picture.getFilename()
    print &quot;&amp;gt; wc &quot; + pic_name
    target = exists(picture, time)
    if target:
        click(target)
    else:
        print &quot;&amp;gt; -&amp;gt;wc pic not found:&quot;+pic_name
        raise Exception(&quot;wc error. pic not found &quot;+pic_name)

# find and click
# @param picture a string of picture file name or a Pattern instance
# @param time a integer of timeout
def fc(picture, timeout):
    pic_name = picture
    if isinstance(picture, Pattern):
        pic_name = picture.getFilename()
    print &quot;&amp;gt; fc %s %d&quot;%(pic_name, timeout)
    start_time = time.time()
    while(start_time + (timeout/1000.0) &amp;gt; time.time()):
        try:
            icons = findAll(picture)
            sorted_icons = sorted(icons, key=lambda m:m.y)
            print &quot;&amp;gt; -&amp;gt;found:&quot;+pic_name
            target = sorted_icons[0]
            click(target)
            return
        except:
            print &quot;&amp;gt; -&amp;gt;not found... continue:&quot;+pic_name
            continue
    print &quot;&amp;gt; -&amp;gt;not found... timeout!&quot;
    raise Exception(&quot;fc timeout&quot;)

# wait and keep clicking until the specified picture appears
# @param picture a string of picture file name or a Pattern instance
# @param loc a Location instance specifying a point to click untile picture appears
def wkc(picture, loc):
    while(True):
        if exists(picture):
            print &quot;&amp;gt; wkc end&quot;
            return
        else:
            print &quot;&amp;gt; wkc click (%d, %d)&quot; % (loc.x, loc.y)
            click(loc)
&lt;/pre&gt;
&lt;p&gt;※引数の「画像」について&lt;br /&gt;
画像となっている部分は、パターンオブジェクト、画像ファイル名のどちらの型でも受け付けます。Sikulixの関数には、見つけたい画像を画像ファイル名だけでも指定できますが、Patternクラスのインスタンスを作成して類似度(similarity)や、オフセット(targetOffset)を合わせて指定することができます。そのため、作成した便利関数では、ファイル名、Patternオブジェクトのどちらも受け付けるようにしました。&lt;/p&gt;
&lt;h2&gt;wc関数&lt;/h2&gt;
&lt;p&gt;指定された画像が表示されるまで、画像認識を続けます。見つけたら、見つかった部分をクリックします。&lt;br /&gt;
最初の3行はログ出力のための画像ファイル名の取得を行っています。&lt;br /&gt;
5行目の&lt;a target=&quot;_blank&quot; href=&quot;http://doc.sikuli.org/region.html#Region.exists&quot;&gt;exists関数&lt;/a&gt;呼び出しで、画像認識を行います。戻り値はMatchオブジェクトで、見つからなかった場合はNoneが得られます。見つかった場合は、Matchオブジェクトをクリック対象とします。見つからなかった場合は、エラーを出力して例外を発生させます。&lt;br /&gt;
exists関数の代わりに&lt;a target=&quot;_blank&quot; href=&quot;http://doc.sikuli.org/region.html#Region.wait&quot;&gt;wait関数&lt;/a&gt;を使っても良かったのですが、独自のログを出力して分かりやすくしたかったため、exists関数を使用しています。&lt;/p&gt;
&lt;h2&gt;fc関数&lt;/h2&gt;
&lt;p&gt;指定された画像が表示されるまで、画像認識を続けます。複数見つかった場合、一番上にあるものをクリックします。wc関数を発展させたものです。&lt;br /&gt;
最初の3行は同じく、ログ出力のための画像ファイル名の取得を行っています。&lt;br /&gt;
5行目では、タイムアウトを計算するために、現在時刻を取得しています。次の行で、タイムアウトの判定を行っています。（time.time関数では、秒単位で時刻を返すため、timeout引数を1000で割っています）&lt;br /&gt;
8行目では画像認識にて見つかったすべてのMatchオブジェクトを返す&lt;a target=&quot;_blank&quot; href=&quot;http://doc.sikuli.org/region.html#Region.findAll&quot;&gt;findAll関数&lt;/a&gt;を呼び出しています。得られた結果を、次の行でソートしています。ソートに使うキーの指定は、&lt;code&gt;key=lambda m:m.y&lt;/code&gt;であり、Matchオブジェクトの属性&quot;y&quot;でソートされることになります。&lt;br /&gt;
ソートされたMatchオブジェクトのリストのうち、先頭のオブジェクトを取り出してクリック対象としています。クリック後は、関数を抜けます。画像認識で見つからなかった場合は、findAll関数にて例外が発生します。ログを出力して、whileの中をループします。&lt;br /&gt;
whileのループが終わるのは、タイムアウトしたときになりますので、ログを出力して、例外を発生させます。&lt;/p&gt;
&lt;h2&gt;wkc関数&lt;/h2&gt;
&lt;p&gt;指定された画像が表示されるまで、画像認識とクリックを続けます。クリックする場所は引数で指定します。画像が見つかっても、その場所はクリックしません。&lt;br /&gt;
1行目から無限ループになっています。ループの終了条件は、2行目の「画像が見つかったら」です。&lt;br /&gt;
画像が見つからない場合は、5行目のelse節に入ります。引数で指定された位置(Locationオブジェクト)をクリックします。&lt;/p&gt;</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/20170225</link> 
    </item>
    <item>
      <title>[JavaFX]学習メモ</title>
      <description>JavaFXについて学習中です。&lt;br /&gt;
まとまった資料がほしいので、こちらにメモを残したいと思います&amp;hellip;。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;JavaFXアプリケーションについて&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．アプリケーションの構成とクラス&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;JavaFXは、Javaでアプレットや画面をもったアプリケーションを作成するためのフレームワークである。画面を表すクラス（Stage）やコントロールを表すクラス（Control）、コントロールのレイアウトを管理するクラス（XxxPane）、見た目をカスタマイズするクラス（Xxxxx）を組み合わせつつ、アプリケーション（Application）を作成する。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．１．アプリケーション(Application)&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;JavaFxアプリケーションは、Applicationクラスが中心となる。（エントリポイントは通常のmainメソッドだが、通常ここではApplication.launch()メソッドを呼び出して、フレームワークに制御を委ねる。mainメソッドがなければ、launchが呼ばれたとされる・・・？暗黙の実装があるのかもしれない。）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;Applicationクラスは、以下の３つのメソッドをオーバーライドする。（ライフサイクルメソッドとして、適切なタイミングで呼び出される）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;initメソッド：JavaFxの初期化を行う前に呼び出される。ロジックなど、JavaFxに関係のない部分の初期化を行うことができる）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;startメソッド：JavaFxの初期化後に呼び出される。画面の構築などを行うことができる。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;stopメソッド：アプリケーションが終了（Platform.exit()による)する前に呼び出される。JavaFxが破棄されたあとに呼ばれるため、ロジックの終了処理を行う場所となる。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．２．ステージ(Stage)&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;画面クラス。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;Stageは一つのScene（&lt;/span&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/Scene.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/Scene.html&lt;/a&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;）を持つ（setSceneメソッドを用いる）。Sceneはシーングラフ全体を管理するためのオブジェクトであり、ドラッグ・アンド・ドロップやサイズの取得などをサポートする。シーングラフは、図形やUIコントロールを階層にしたものである。GroupクラスやRegionクラス、レイアウト関連のクラス（XxxPane）は子要素を持つことができる(これらはParentクラスのサブクラスである)。他のUIコントロールや図形は、子要素を持たない。これらが複雑に構成され、または動的に変更されるとき、表示も更新される。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;ここでクラスの関連を整理しておく。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;[Stage] 1--&amp;gt;1 [Scene] 1--&amp;gt;1 [Node] &amp;lt;-extends,has- [Parent]&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．２．１．プロパティ（Property）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;Java Beanで使われているプロパティの仕組み（java.beanにあります）をベースに、拡張を加えたプロパティの仕組みがJavaFXでは使われています。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;プロパティは、通常のフィールド（属性）を、一定のルールにもとづいて定義するようになっています。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;ルール１：getter/setterを持つ。名前はgetXxx/setXxx。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;ルール２：プロパティオブジェクトを返すメソッドを持つ。名前はxxxProperty。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;プロパティオブジェクトは、プリミティブのラッパーになっていて、以下の機能を持ちます。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;・変更監視（リスナーを登録して、変更時になにかしら処理できる）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;・バインディング（プロパティ同士の関連を表現できる。例えば、常にAとBの和となるようなCを作れる。位置関係や金額の総和などの関係をオブジェクトとして表現できる。）（UIコントロールのプロパティ同士を連動させられる。ユーザーが入力すればプロパティも更新され、その変更をバインドした別のプロパティに反映させられる。）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;バインディングオブジェクト（？）には、変更監視のリスナー登録に加えて、値が変更されたInvalidationListenerを登録できる。Bindingクラスのサブクラスを作れば、オリジナルの関係性を作ることができる。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．３．コントロール&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;Scene上に配置するNodeについて。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;Nodeには図形やUIコントロール、コンテナがある。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;図形：四角や丸といった図形&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;UIコントロール：ボタンやテキストフィールド、ラベルなど。ユーザーに情報を提示したり、操作を提供したりする。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;コンテナ：他のNodeを包含する。レイアウト機能を持つ（Groupは何もレイアウトを行わない）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;UIコントロール&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/user-interface-tutorial/ui_components.htm#JFXUI101&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/user-interface-tutorial/ui_components.htm#JFXUI101&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;コンテナ（レイアウト）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.oracle.com/pls/topic/lookup?ctx=javase80&amp;amp;id=JFXLY&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;http://www.oracle.com/pls/topic/lookup?ctx=javase80&amp;amp;id=JFXLY&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．４．FXML&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;（FXMLLoaderクラスで読み込める。コントローラクラスをセットすると、FXMLのイベント（？）を受け取ることができる）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;（FXMLからイベントをセットするには、コントロールにonActionといった属性を記述する。これで、fx:controlで指定されたクラスのメソッドと紐付く）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://krr.blog.shinobi.jp/javafx/fxml%E3%82%92%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B%EF%BC%88%EF%BC%91%EF%BC%89%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E4%BD%BF%E3%81%84%E6%96%B9&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;http://krr.blog.shinobi.jp/javafx/fxml%E3%82%92%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B%EF%BC%88%EF%BC%91%EF%BC%89%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E4%BD%BF%E3%81%84%E6%96%B9&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．５．スタイルシート&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/user-interface-tutorial/css_tutorial.htm#JFXUI733&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/user-interface-tutorial/css_tutorial.htm#JFXUI733&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;１．６．ダイアログ（カスタムダイアログ）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;メッセージダイアログは、Alertクラスが使える。選択ボックスやテキスト入力が必要な場合は、それぞれChoiceDialog, TextInputDialogを使える。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;カスタムダイアログのためには、Stageクラスに独自のコントロールを並べたものを設定する必要がある。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;２．スレッドモデル&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;Swingやその他のGUIフレームワーク同様、シングルスレッドモデルである。JavaFx関連の操作を行う場合は、アプリケーションスレッドと呼ばれる専用のスレッド上で行う必要がある。&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;（きっと、このスレッドを止めると画面の描画が進まなくなる。アプリケーションスレッドではファイルの読み書きやネットワーク通信を行わないこと。）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;３．標準的なアプリケーションの例（公式チュートリアル）&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;------&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;javadoc link&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Application&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/application/Application.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/application/Application.html&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Stage&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/stage/Stage.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/stage/Stage.html&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Scene&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/Scene.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/Scene.html&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Group&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Text&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* FXMLLoader&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/fxml/FXMLLoader.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/api/javafx/fxml/FXMLLoader.html&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;document link&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Overview&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/get-started-tutorial/jfx-overview.htm&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/get-started-tutorial/jfx-overview.htm&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Properties&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/properties-binding-tutorial/binding.htm&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/properties-binding-tutorial/binding.htm&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://itpro.nikkeibp.co.jp/article/COLUMN/20121219/445461/?P=2&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;http://itpro.nikkeibp.co.jp/article/COLUMN/20121219/445461/?P=2&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Scene Graph&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/scene-graph-tutorial/scenegraph.htm#JFXSG107&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/scene-graph-tutorial/scenegraph.htm#JFXSG107&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* UI Controls, Layouts, CSS&lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;https://docs.oracle.com/javase/jp/8/javafx/user-interface-tutorial/ui_components.htm#JFXUI101&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;https://docs.oracle.com/javase/jp/8/javafx/user-interface-tutorial/ui_components.htm#JFXUI101&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Containers &lt;/span&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Screen Transition &lt;/span&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://javafx-trick.appspot.com/article/110001/110009/80051.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;http://javafx-trick.appspot.com/article/110001/110009/80051.html&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Dialogs &lt;/span&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://krr.blog.shinobi.jp/javafx/javafx%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%83%BB%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AD%E3%82%B0&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;http://krr.blog.shinobi.jp/javafx/javafx%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%83%BB%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AD%E3%82%B0&lt;/a&gt;&lt;br style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot; /&gt;&lt;span style=&quot;color: rgba(0, 0, 0, 0.870588); font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;* Samples &lt;/span&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.oracle.com/technetwork/java/javase/overview/javafx-samples-2158687.html&quot; style=&quot;color: #6611cc; cursor: text; pointer-events: none; font-family: 'Roboto Slab', 'Times New Roman', serif; white-space: pre-wrap; background-color: #fafafa;&quot;&gt;http://www.oracle.com/technetwork/java/javase/overview/javafx-samples-2158687.html&lt;/a&gt;</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/-javafx-%E5%AD%A6%E7%BF%92%E3%83%A1%E3%83%A2</link> 
    </item>
    <item>
      <title>メトロノームライブラリ公開</title>
      <description>GithubにAndroid向けメトロノームライブラリを置きました。&lt;br /&gt;
&lt;a href=&quot;https://github.com/LapisCactus/cactus-metronome&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;https://github.com/LapisCactus/cactus-metronome&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Androidアプリでメトロノームの音を鳴らすだけのライブラリです。Viewは付属しません。&lt;br /&gt;
サンプルコードがありますので参考にしていただければと思います。&lt;br /&gt;
&lt;br /&gt;
ライブラリ本体はこちらからダウンロードできます。&lt;br /&gt;
&lt;a href=&quot;https://github.com/LapisCactus/cactus-metronome/tree/master/cactusmetronomelib/release&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;https://github.com/LapisCactus/cactus-metronome/tree/master/cactusmetronomelib/release&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
libsフォルダにcactusmetronomelib.jarを配置すると、使えるようになると思います。&lt;br /&gt;
jarファイルを使う場合は当たり前のことなのかもしれませんが&amp;hellip;こちらのページが参考になりました。&lt;br /&gt;
&lt;a href=&quot;http://sakebook.hatenablog.com/entry/2014/08/17/004540&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://sakebook.hatenablog.com/entry/2014/08/17/004540&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/android/%E3%83%A1%E3%83%88%E3%83%AD%E3%83%8E%E3%83%BC%E3%83%A0%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E5%85%AC%E9%96%8B</link> 
    </item>
    <item>
      <title>メトロノームライブラリ（開発中）</title>
      <description>Android向けのメトロノームライブラリを作成中です。&lt;br /&gt;
ひとまずメトロノームとして使用できることが確認できたため、リリースの準備をしています。&lt;br /&gt;
&lt;br /&gt;
１１月までにはGitHubにソースコードを公開し、JarファイルとJavadocをダウンロードできるようにしようと思っています。</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/android/%E3%83%A1%E3%83%88%E3%83%AD%E3%83%8E%E3%83%BC%E3%83%A0%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%EF%BC%88%E9%96%8B%E7%99%BA%E4%B8%AD%EF%BC%89</link> 
    </item>
    <item>
      <title>Windows Audio サービスの再起動</title>
      <description>私のWindows7 では、休止モードから復帰したときに音がならなくなることがあります。&lt;br /&gt;
そんなときはWindows Audio Endpoint Builderサービスを再起動するのですが、頻繁に発生するのでいちいち再起動するのが面倒です。そこでバッチファイルをこさえてみました。&lt;br /&gt;

&lt;pre&gt;&lt;code&gt;
@echo off

net session &amp;gt; nul 2&amp;gt;&amp;amp;1
if %ERRORLEVEL% == 0 (
    echo administrative privileges! restart audio service
    net stop audiosrv
    net stop audioendpointbuilder
    net start audioendpointbuilder
    net start audiosrv
) else (
    echo not administrative privileges... restart.
    powershell -command start-process &quot;%0&quot; -verb runas
)
&lt;/code&gt;&lt;/pre&gt;
簡単な内容説明： &lt;br /&gt;
最初にnet sessionを実行することで、管理者権限があるかどうか、確認しています。&lt;br /&gt;
管理者権限があれば、所望の処理を実施しています。&lt;br /&gt;
ない場合は、powershell経由でバッチファイル自身を起動しています。このときに管理者権限を要求しており、UACのダイアログが出ます。&lt;br /&gt;
&lt;br /&gt;
この手法は、「バッチファイルを常に管理者権限で実行したい」ときに使えそうです。&lt;br /&gt;
&lt;br /&gt;
参考：&lt;br /&gt;
&lt;a href=&quot;http://okwave.jp/qa/q8634495.html&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;http://okwave.jp/qa/q8634495.html&lt;/a&gt;&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://qiita.com/skkzsh/items/5e03bb7792629927acfa&quot; title=&quot;&quot;&gt;http://qiita.com/skkzsh/items/5e03bb7792629927acfa&lt;/a&gt;&lt;br /&gt;
</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/windows%20audio%20%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%81%AE%E5%86%8D%E8%B5%B7%E5%8B%95</link> 
    </item>
    <item>
      <title>SurfaceRT上でC#プログラムを動かす</title>
      <description>&lt;h2&gt;SurfaceRT上でC#プログラムを動かす&lt;/h2&gt;
&lt;h3&gt;環境&lt;/h3&gt;
ターゲット：SurfaceRT (Windows RT 8.0、jailbroken)&lt;br /&gt;
ホスト：Windows7 + VisualStudio Express 2012 for Windows Desktop&lt;br /&gt;
&lt;br /&gt;

&lt;h3&gt;やったこと&lt;/h3&gt;
自作コンソールアプリを、脱獄済みの初代Surface上で動かす。&lt;br /&gt;
&lt;br /&gt;

&lt;h3&gt;手順&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;VisualStudio Express 2012 for Windows Desktopを起動し、C#のコンソールアプリケーションプロジェクトを作成する&lt;/li&gt;
&lt;li&gt;プログラムを書く&lt;/li&gt;
&lt;li&gt;動作確認する&lt;/li&gt;
&lt;li&gt;Release / Any CPUでビルドする&lt;/li&gt;
&lt;li&gt;binディレクトリにできたexeファイルをSurfaceRTに転送する&lt;/li&gt;
&lt;li&gt;exeファイルを実行する&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;

&lt;h3&gt;結果&lt;/h3&gt;
exeファイルを実行できた&lt;br /&gt;
作成したプログラム&lt;br /&gt;

&lt;pre class=&quot;java&quot; name=&quot;code&quot;&gt;using System;

namespace ConsoleApplication2
{
    class Program
    {
        public static CommandShell MainCommandShell = new CommandShell();
        static void Main(string[] args)
        {
            Console.WriteLine(&quot;=== sample program ===&quot;);
            MainCommandShell.loop();
        }
    }

    /// &lt;summary&gt;
    /// ユーザーからコマンド入力を受け、処理を実行するシェル。
    /// loopメソッドで開始し、exitメソッドで終了する。
    /// &lt;/summary&gt;
    class CommandShell
    {
        /// &lt;summary&gt;
        /// 実行可能なコマンドの配列
        /// &lt;/summary&gt;
        private Command[] Commands = { new HelpCommand(), new ExitCommand() };

        /// &lt;summary&gt;
        /// ループを終了するかどうか
        /// &lt;/summary&gt;
        private Boolean running = false;

        /// &lt;summary&gt;
        /// シェルを開始する
        /// &lt;/summary&gt;
        public void loop()
        {
            running = true;
            while (running)
            {
                Console.Write(&quot;&amp;gt; &quot;);
                string cmd = Console.ReadLine();
                foreach (Command command in Commands)
                {
                    if (command.process(cmd))
                        break;
                }
            }
        }
        /// &lt;summary&gt;
        /// シェルを終了する
        /// &lt;/summary&gt;
        public void exit()
        {
            running = false;
        }
    }
    /// &lt;summary&gt;
    /// シェルで実行できるコマンド
    /// &lt;/summary&gt;
    interface Command
    {
        Boolean process(string cmd);
    }
    /// &lt;summary&gt;
    /// ヘルプコマンド
    /// &lt;/summary&gt;
    class HelpCommand : Command
    {
        public Boolean process(string cmd)
        {
            if (cmd.StartsWith(&quot;help&quot;))
            {
                Console.WriteLine(&quot;help: exit&quot;);
                return true;
            }
            else
            {
                return false;
            }
        }
    }
    /// &lt;summary&gt;
    /// 終了コマンド
    /// &lt;/summary&gt;
    class ExitCommand : Command
    {
        public Boolean process(string cmd)
        {
            if (cmd.StartsWith(&quot;exit&quot;))
            {
                Console.WriteLine(&quot;exit&quot;);
                Program.MainCommandShell.exit();
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
&lt;/pre&gt;
&lt;h3&gt;感想&lt;/h3&gt;
簡単に動いた。&lt;br /&gt;
GUIアプリも書いてみたい。&lt;br /&gt;
C#らしいプログラムの書き方を忘れてる。命名規則？プロパティ？</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/windows_rt/surfacert%E4%B8%8A%E3%81%A7c-%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99</link> 
    </item>
    <item>
      <title>無題</title>
      <description>作成中のAndroidアプリを置いておく場所を作った。&lt;br /&gt;
&lt;br /&gt;
Toishi is an supplemental app for those who want to memorize bible verses.&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/toishi/&quot; target=&quot;_blank&quot;&gt;http://code.google.com/p/toishi/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今月中にGoogle Play登録できるかなぁ・・・</description> 
      <link>http://freesoftoriented.blog.shinobi.jp/android/20130515</link> 
    </item>

  </channel>
</rss>