com.infoteria.asteria.flowbuilder2.base
Class BaseObject

java.lang.Object
  |
  +--com.infoteria.asteria.flowbuilder2.base.BaseObject
All Implemented Interfaces:
Cloneable, com.infoteria.gui.property.inspector.PropertyEditable, PropertyHolder, com.infoteria.asteria.flowbuilder2.util.Releasable
Direct Known Subclasses:
SimpleObject

public abstract class BaseObject
extends Object
implements com.infoteria.gui.property.inspector.PropertyEditable, PropertyHolder, Cloneable, com.infoteria.asteria.flowbuilder2.util.Releasable

ComponentやFunctionの基底となるベースクラスです。


Field Summary
static String CATEGORY_OBJECT
           
static String CATEGORY_SYSTEM
           
 
Constructor Summary
protected BaseObject(BaseObjectMetaData meta)
           
 
Method Summary
 void addAdditionalProperty(AdditionalPropertyInterface prop)
          拡張プロパティを追加します。
 void addProperty(Property prop)
          プロパティを追加します。
 UndoableEdit assign(BaseObject target)
           
 boolean canDelete()
          オブジェクトが削除可能であるかどうかを返します。
 boolean canDescriptionVisible()
          説明が表示可能かどうかを返します。
 Object clone()
           
 boolean contains(Point p)
          オブジェクトの境界にPointが含まれているかどうかを返します。
 boolean contains(Point p, boolean bIncludeDecolation)
          オブジェクトの境界にPointが含まれているかどうかを返します。
protected  void doAssign(List list, BaseObject target)
           
 UndoableEdit doDropAction()
           
 void firePropertyValueChanged(PropertyChangeEvent event)
          プロパティ値の変更があったことを通知します。
 void fireStateChanged()
          状態変更のあったことを通知します。
 void fireStructureChanged()
          構造の変更があったことを通知します。
 Iterator getAdditionalProperties()
          拡張プロパティの一覧を返すIterator。
 AdditionalPropertyInterface getAdditionalProperty(String name)
          名前を指定して拡張プロパティを取得します。
 AdditionalPropertyInterface getAdditionalPropertyByDisplayName(String name)
          表示名を指定して拡張プロパティを取得します。
 Object getAttribute(String key)
          keyにヒモづけられた任意のオブジェクトを取得します。
 Color getBorderColor()
          オブジェクトの枠線の色を返します。
 Rectangle getBounds()
          オブジェクトの境界を返します。
abstract  Connector getConnectorByPoint(Point p)
          指定のポイントにあるコネクタを返します。
abstract  Connector getConnectorByPoint(Point p, boolean bInput)
          指定のポイントにあるコネクタを返します。
abstract  Point getConnectorPoint(Connector con)
          コネクタの位置を返します。
abstract  Iterator getConnectors()
          コネクタの位置を返します。
 Icon getDefaultIcon()
          オブジェクトのデフォルトのアイコンを返します。
abstract  Connector getDefaultInputConnector()
          デフォルトの入力コネクタを返します。
abstract  Connector getDefaultOutputConnector()
          デフォルトの出力コネクタを返します。
 com.infoteria.gui.description.Description getDescription()
          説明を返します。
 String getDisplayName()
          オブジェクトの表示名を返します。
 Icon getIcon()
          アイコンを返します。
 Rectangle getIconBounds()
          オブジェクトの境界を返します。
 Point getIconLocation()
          オブジェクトの位置を返します。
 String getLayer()
          オブジェクトのあるレイヤー名を返します。
 BaseObjectMetaData getMetaData()
          オブジェクトのメタデータを返します。
 String getName()
          オブジェクト名を返します。
 StringProperty getNameProperty()
          NamePropertyを返します。
 String getObjectName()
          オブジェクトのタイプ名を返します。
 Iterator getProperties()
          プロパティのイテレータを返します。
PropertyGroupは展開されません
 Iterator getProperties(boolean bExpandGroup)
          プロパティの一覧を返すIterator。
bExpandGroupをtrueにした場合はPropertyGroupは展開されます。
 Property getProperty(String name)
          名前を指定してプロパティを取得します。
 Property getPropertyByDisplayName(String name)
          表示名を指定してプロパティを取得します。
 int getPropertyCount()
          プロパティの数を返します。
 Properties getSystemProperties()
          システムプロパティのホルダを返します。
 String getTooltip()
          ツールチップを返します。
 boolean isDescriptionVisible()
          説明が表示されているか否かを返します。
 boolean isLoading()
          オブジェクトがロード中の場合はtrueを返します。
 boolean isReadOnly()
          オブジェクトが編集可能かどうかを返します。
 boolean isSelected()
          オブジェクトが選択されているかどうかを返します。
 void putAttribute(String key, Object value)
          任意のオブジェクトをkeyにヒモづけらて保存します。
 void removeAdditionalProperty(AdditionalPropertyInterface prop)
          拡張プロパティを削除します。
 Object removeAttribute(String key)
          keyにヒモづけられた任意のオブジェクトを削除します。
 void removeProperty(Property prop)
          プロパティを削除します。
 void setBorderColor(Color c)
          オブジェクトの枠線の色を設定します。
 void setDescription(com.infoteria.gui.description.Description desc)
          説明を設定します。
 void setDescriptionLocationToDefault()
          説明をデフォルト位置に移動します。
 void setDescriptionVisible(boolean b)
          説明が表示されているか否かを設定します。
 void setIcon(Icon icon)
          アイコンを設定します。
 void setIcon(String filename)
          アイコン(pngファイル)を設定します。
 void setIconLocation(Point p)
          オブジェクトの位置を設定します。
 void setLayer(String s)
          オブジェクトのあるレイヤー名を設定します。
 void setName(String value)
          オブジェクト名を設定します。
 void setReadOnly(boolean b)
          オブジェクトが編集可能かどうかを設定します。
 void setSelected(boolean b)
          オブジェクトが選択されているかどうかを設定します。
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.infoteria.gui.property.inspector.PropertyEditable
addPropertyEditableListener, getCategoryNames, getDisplayCategoryName, getPropertyHolder, removePropertyEditableListener
 
Methods inherited from interface com.infoteria.asteria.flowbuilder2.util.Releasable
release
 

Field Detail

CATEGORY_SYSTEM

public static final String CATEGORY_SYSTEM

CATEGORY_OBJECT

public static final String CATEGORY_OBJECT
Constructor Detail

BaseObject

protected BaseObject(BaseObjectMetaData meta)
Method Detail

isReadOnly

public boolean isReadOnly()
オブジェクトが編集可能かどうかを返します。
Specified by:
isReadOnly in interface com.infoteria.gui.property.inspector.PropertyEditable

setReadOnly

public void setReadOnly(boolean b)
オブジェクトが編集可能かどうかを設定します。

getObjectName

public String getObjectName()
オブジェクトのタイプ名を返します。

getMetaData

public BaseObjectMetaData getMetaData()
オブジェクトのメタデータを返します。

getNameProperty

public StringProperty getNameProperty()
NamePropertyを返します。

getName

public String getName()
オブジェクト名を返します。
Specified by:
getName in interface PropertyHolder

setName

public void setName(String value)
オブジェクト名を設定します。

getLayer

public String getLayer()
オブジェクトのあるレイヤー名を返します。

setLayer

public void setLayer(String s)
オブジェクトのあるレイヤー名を設定します。

getIcon

public Icon getIcon()
アイコンを返します。

setIcon

public void setIcon(String filename)
             throws PropertyException
アイコン(pngファイル)を設定します。

setIcon

public void setIcon(Icon icon)
アイコンを設定します。

getDefaultIcon

public Icon getDefaultIcon()
オブジェクトのデフォルトのアイコンを返します。

getDisplayName

public String getDisplayName()
オブジェクトの表示名を返します。

canDelete

public boolean canDelete()
オブジェクトが削除可能であるかどうかを返します。

isSelected

public boolean isSelected()
オブジェクトが選択されているかどうかを返します。

setSelected

public void setSelected(boolean b)
オブジェクトが選択されているかどうかを設定します。

getBorderColor

public Color getBorderColor()
オブジェクトの枠線の色を返します。

setBorderColor

public void setBorderColor(Color c)
オブジェクトの枠線の色を設定します。

getIconLocation

public Point getIconLocation()
オブジェクトの位置を返します。

setIconLocation

public void setIconLocation(Point p)
オブジェクトの位置を設定します。

getBounds

public Rectangle getBounds()
オブジェクトの境界を返します。

getIconBounds

public Rectangle getIconBounds()
オブジェクトの境界を返します。

contains

public boolean contains(Point p)
オブジェクトの境界にPointが含まれているかどうかを返します。

contains

public boolean contains(Point p,
                        boolean bIncludeDecolation)
オブジェクトの境界にPointが含まれているかどうかを返します。

getConnectorByPoint

public abstract Connector getConnectorByPoint(Point p)
指定のポイントにあるコネクタを返します。

getConnectorByPoint

public abstract Connector getConnectorByPoint(Point p,
                                              boolean bInput)
指定のポイントにあるコネクタを返します。
Parameters:
bInput - 対象コネクタが入力コネクタかどうか

getConnectorPoint

public abstract Point getConnectorPoint(Connector con)
コネクタの位置を返します。

getConnectors

public abstract Iterator getConnectors()
コネクタの位置を返します。

getDefaultInputConnector

public abstract Connector getDefaultInputConnector()
デフォルトの入力コネクタを返します。

getDefaultOutputConnector

public abstract Connector getDefaultOutputConnector()
デフォルトの出力コネクタを返します。

addProperty

public void addProperty(Property prop)
プロパティを追加します。
Specified by:
addProperty in interface PropertyHolder

removeProperty

public void removeProperty(Property prop)
プロパティを削除します。
Specified by:
removeProperty in interface PropertyHolder

getProperty

public Property getProperty(String name)
名前を指定してプロパティを取得します。
Specified by:
getProperty in interface PropertyHolder

getPropertyByDisplayName

public Property getPropertyByDisplayName(String name)
表示名を指定してプロパティを取得します。

getProperties

public Iterator getProperties()
プロパティのイテレータを返します。
PropertyGroupは展開されません
Specified by:
getProperties in interface PropertyHolder

getPropertyCount

public int getPropertyCount()
プロパティの数を返します。
Specified by:
getPropertyCount in interface PropertyHolder

getProperties

public Iterator getProperties(boolean bExpandGroup)
プロパティの一覧を返すIterator。
bExpandGroupをtrueにした場合はPropertyGroupは展開されます。

addAdditionalProperty

public void addAdditionalProperty(AdditionalPropertyInterface prop)
拡張プロパティを追加します。

removeAdditionalProperty

public void removeAdditionalProperty(AdditionalPropertyInterface prop)
拡張プロパティを削除します。

getAdditionalProperties

public Iterator getAdditionalProperties()
拡張プロパティの一覧を返すIterator。

getAdditionalProperty

public AdditionalPropertyInterface getAdditionalProperty(String name)
名前を指定して拡張プロパティを取得します。

getAdditionalPropertyByDisplayName

public AdditionalPropertyInterface getAdditionalPropertyByDisplayName(String name)
表示名を指定して拡張プロパティを取得します。

getAttribute

public Object getAttribute(String key)
keyにヒモづけられた任意のオブジェクトを取得します。

putAttribute

public void putAttribute(String key,
                         Object value)
任意のオブジェクトをkeyにヒモづけらて保存します。

removeAttribute

public Object removeAttribute(String key)
keyにヒモづけられた任意のオブジェクトを削除します。

clone

public Object clone()
Overrides:
clone in class Object

getSystemProperties

public Properties getSystemProperties()
システムプロパティのホルダを返します。

getTooltip

public String getTooltip()
ツールチップを返します。

fireStateChanged

public void fireStateChanged()
状態変更のあったことを通知します。

firePropertyValueChanged

public void firePropertyValueChanged(PropertyChangeEvent event)
プロパティ値の変更があったことを通知します。

fireStructureChanged

public void fireStructureChanged()
構造の変更があったことを通知します。

isLoading

public boolean isLoading()
オブジェクトがロード中の場合はtrueを返します。

getDescription

public com.infoteria.gui.description.Description getDescription()
説明を返します。

setDescription

public void setDescription(com.infoteria.gui.description.Description desc)
説明を設定します。

isDescriptionVisible

public boolean isDescriptionVisible()
説明が表示されているか否かを返します。

canDescriptionVisible

public boolean canDescriptionVisible()
説明が表示可能かどうかを返します。

setDescriptionVisible

public void setDescriptionVisible(boolean b)
説明が表示されているか否かを設定します。

setDescriptionLocationToDefault

public void setDescriptionLocationToDefault()
説明をデフォルト位置に移動します。

assign

public UndoableEdit assign(BaseObject target)

doAssign

protected void doAssign(List list,
                        BaseObject target)

doDropAction

public UndoableEdit doDropAction()