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 void
connect()
Connects the source and target.Model
getAreaModel()
Obtains the areaModel
.Model
getParentModel()
Obtains the parentModel
.boolean
isRemovable()
Indicates if this connection is removable.void
remove()
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:ConnectionModel
Connects the source and target.- Specified by:
connect
in interfaceConnectionModel
-
isRemovable
public boolean isRemovable()
Description copied from interface:ConnectionModel
Indicates if this connection is removable.- Specified by:
isRemovable
in interfaceConnectionModel
- Returns:
- True if may remove the connection.
-
remove
public void remove()
Description copied from interface:ConnectionModel
Removes the connection.- Specified by:
remove
in interfaceConnectionModel
-
-