Package net.officefloor.gef.editor
Class ParentToAreaConnectionModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.gef.editor.ParentToAreaConnectionModel
-
- All Implemented Interfaces:
ConnectionModel,Model
public class ParentToAreaConnectionModel extends AbstractModel implements ConnectionModel
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ParentToAreaConnectionModel(Model parent, Model area)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()Connects the source and target.ModelgetAreaModel()Obtains the areaModel.ModelgetParentModel()Obtains the parentModel.booleanisRemovable()Indicates if this connection is removable.voidremove()Removes the connection.-
Methods inherited from class net.officefloor.model.AbstractModel
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.model.Model
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
-
-
-
-
Method Detail
-
connect
public void connect()
Description copied from interface:ConnectionModelConnects the source and target.- Specified by:
connectin interfaceConnectionModel
-
isRemovable
public boolean isRemovable()
Description copied from interface:ConnectionModelIndicates if this connection is removable.- Specified by:
isRemovablein interfaceConnectionModel- Returns:
- True if may remove the connection.
-
remove
public void remove()
Description copied from interface:ConnectionModelRemoves the connection.- Specified by:
removein interfaceConnectionModel
-
-