com.infoteria.asteria.flowbuilder2.base
クラス ConnectorSet

java.lang.Object
  |
  +--com.infoteria.asteria.flowbuilder2.base.ConnectorSet
すべての実装インタフェース:
Cloneable

public class ConnectorSet
extends Object
implements Cloneable

入出力のコネクタセットです。 一つのデフォルトコネクタを持ち複数のサブコネクタを持つことができます。


フィールドの概要
static int LOCATION_BOTTOM
           
static int LOCATION_LEFT
           
static int LOCATION_RIGHT
           
static int LOCATION_TOP
           
static int LOCATION_UNKNOWN
           
static String STATE_DEFAULT
           
 
コンストラクタの概要
ConnectorSet(Connector def, int location)
           
ConnectorSet(Connector def, int location, String state, boolean bDefault)
           
 
メソッドの概要
 void addSubConnector(Connector con)
          サブコネクタを追加します。
 Object clone()
           
 Connector getConnector(String name)
          名前を指定してコネクタを取得します。
 int getConnectorCount()
          所持するコネクタ数を返します。
 Connector[] getConnectors()
          所持するコネクタを配列で返します。
 Connector getDefaultConnector()
          デフォルトコネクタを返します。
 int getLocation()
          コネクタセットのアイコン上での位置を返します。
 BaseObject getOwner()
          コネクタセットを所持するオーナーオブジェクトを返します。
 String getState()
          コネクタセットのState(分岐に対応)を返します。
 int indexOfSubConnector(Connector con)
          サブコネクタの位置を返します。
 void insertSubConnector(Connector con, int idx)
          サブコネクタを挿入します。
 boolean isDefaultState()
          デフォルトのStateであるかどうかを返します。
static String locationToString(int loc)
           
 void removeSubConnector(Connector con)
          サブコネクタを削除します。
 void setOwner(BaseObject owner)
          コネクタセットを所持するオーナーオブジェクトを設定します。
 void setState(String state)
          コネクタセットのState(分岐に対応)を設定します。
static int strToLocation(String s)
           
 String toString()
           
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

STATE_DEFAULT

public static String STATE_DEFAULT

LOCATION_UNKNOWN

public static final int LOCATION_UNKNOWN

LOCATION_TOP

public static final int LOCATION_TOP

LOCATION_LEFT

public static final int LOCATION_LEFT

LOCATION_BOTTOM

public static final int LOCATION_BOTTOM

LOCATION_RIGHT

public static final int LOCATION_RIGHT
コンストラクタの詳細

ConnectorSet

public ConnectorSet(Connector def,
                    int location)

ConnectorSet

public ConnectorSet(Connector def,
                    int location,
                    String state,
                    boolean bDefault)
メソッドの詳細

strToLocation

public static int strToLocation(String s)

locationToString

public static String locationToString(int loc)

getOwner

public BaseObject getOwner()
コネクタセットを所持するオーナーオブジェクトを返します。

setOwner

public void setOwner(BaseObject owner)
コネクタセットを所持するオーナーオブジェクトを設定します。

getState

public String getState()
コネクタセットのState(分岐に対応)を返します。

setState

public void setState(String state)
コネクタセットのState(分岐に対応)を設定します。

isDefaultState

public boolean isDefaultState()
デフォルトのStateであるかどうかを返します。

getDefaultConnector

public Connector getDefaultConnector()
デフォルトコネクタを返します。

getConnector

public Connector getConnector(String name)
名前を指定してコネクタを取得します。

getConnectorCount

public int getConnectorCount()
所持するコネクタ数を返します。

getConnectors

public Connector[] getConnectors()
所持するコネクタを配列で返します。

addSubConnector

public void addSubConnector(Connector con)
サブコネクタを追加します。

insertSubConnector

public void insertSubConnector(Connector con,
                               int idx)
サブコネクタを挿入します。

removeSubConnector

public void removeSubConnector(Connector con)
サブコネクタを削除します。

indexOfSubConnector

public int indexOfSubConnector(Connector con)
サブコネクタの位置を返します。

getLocation

public int getLocation()
コネクタセットのアイコン上での位置を返します。

clone

public Object clone()
オーバーライド:
クラス Object 内の clone

toString

public String toString()
オーバーライド:
クラス Object 内の toString