jp.carabiner.treeeditor.js.model
クラス JSNodeStyles

java.lang.Object
  上位を拡張 jp.carabiner.treeeditor.js.model.JSNodeStyles

public class JSNodeStyles
extends Object

ノードスタイルです。


入れ子のクラスの概要
 class JSNodeStyles.NodeStyleObject
          ノードスタイルオブジェクトです。
 
コンストラクタの概要
JSNodeStyles(ToplevelObject owner, jp.carabiner.treeeditor.TreeEditorModel model)
          構築します。
 
メソッドの概要
 void add(String name, Color foreground, Color background)
          追加します。
 Object findByName(String name)
          名前で検索します。
 Object get(int index)
          値を取得します。
 int getLength()
          サイズを取得します。
 void remove(int index)
          削除します。
 void set(int index, String name, Color foreground, Color background)
          設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JSNodeStyles

public JSNodeStyles(ToplevelObject owner,
                    jp.carabiner.treeeditor.TreeEditorModel model)
構築します。

パラメータ:
owner - オーナー。nullは不可。
model - モデル。nullは不可。
メソッドの詳細

get

public Object get(int index)
値を取得します。

パラメータ:
index - インデックス。
戻り値:
値。

findByName

public Object findByName(String name)
名前で検索します。

パラメータ:
name - 名前。nullは不可。
戻り値:
スタイル。見つからない場合はnull。

getLength

public int getLength()
サイズを取得します。

戻り値:
サイズ。

add

public void add(String name,
                Color foreground,
                Color background)
追加します。

パラメータ:
name - 名前。nullは不可。
foreground - 文字色。null可。
background - 背景色。null可。

remove

public void remove(int index)
削除します。

パラメータ:
index - インデックス。

set

public void set(int index,
                String name,
                Color foreground,
                Color background)
設定します。

パラメータ:
index - インデックス。
name - 名前。nullは不可。
foreground - 文字色。null可。
background - 背景色。null可。