Class AdaptedParentFactory.AdaptedParentImpl<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory.AbstractAdaptedModel<R,O,M,E,A,F>
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R,O,M,E,A,AdaptedChildFactory<R,O,M,E,A>>
-
- net.officefloor.gef.editor.internal.models.AdaptedChildFactory.AdaptedChildImpl<R,O,M,E,AdaptedParent<M>>
-
- net.officefloor.gef.editor.internal.models.AdaptedParentFactory.AdaptedParentImpl<R,O,M,E>
-
- All Implemented Interfaces:
AdaptedChild<M>
,AdaptedConnectable<M>
,AdaptedModel<M>
,AdaptedParent<M>
,AdaptedPrototype<M>
,ModelActionContext<R,O,M>
- Enclosing class:
- AdaptedParentFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
public static class AdaptedParentFactory.AdaptedParentImpl<R extends Model,O,M extends Model,E extends java.lang.Enum<E>> extends AdaptedChildFactory.AdaptedChildImpl<R,O,M,E,AdaptedParent<M>> implements AdaptedParent<M>, AdaptedPrototype<M>
AdaptedParent
implementation.
-
-
Constructor Summary
Constructors Constructor Description AdaptedParentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeLocation(int x, int y)
Changes the location of theModel
.java.util.List<AdaptedArea<?>>
getAdaptedAreas()
Obtains theAdaptedArea
instances.<T> T
getAdapter(java.lang.Class<T> classKey)
Obtains the adapter.protected void
init()
Initialises thisAdaptedModel
.boolean
isAreaChangeEvent(java.lang.String eventName)
Indicates ifAdaptedArea
change event.boolean
isPalettePrototype()
Indicates if the palette prototype.void
newAdaptedParent(org.eclipse.gef.geometry.planar.Point location)
Triggers creating a newAdaptedParent
at the location.-
Methods inherited from class net.officefloor.gef.editor.internal.models.AdaptedChildFactory.AdaptedChildImpl
createVisual, getChildrenGroups, getDragLatency, getEditLabel, getLabel, getSelectOnly, getStylesheet, getStylesheetUrl, loadDescendantConnections
-
Methods inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable
action, createAdaptedConnector, createConnection, getAdaptedConnector, getAdaptedConnectors, getAdaptedModel, getConnections, getPotentialConnection, overlay
-
Methods inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory.AbstractAdaptedModel
getChangeExecutor, getErrorHandler, getFactory, getInjector, getModel, getOperations, getParent, getRootModel, position, refreshContent, registerEventListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.gef.editor.AdaptedChild
createVisual, getChildrenGroups, getEditLabel, getLabel
-
Methods inherited from interface net.officefloor.gef.editor.AdaptedConnectable
action, createConnection, getAdaptedConnector, getAdaptedConnectors, getConnections, getDragLatency, getErrorHandler, getPotentialConnection, getSelectOnly, getStylesheet, getStylesheetUrl
-
Methods inherited from interface net.officefloor.gef.editor.AdaptedModel
getModel, getParent
-
Methods inherited from interface net.officefloor.gef.editor.ModelActionContext
getChangeExecutor, getInjector, getModel, getOperations, getRootModel, position
-
-
-
-
Method Detail
-
init
protected void init()
Description copied from class:AbstractAdaptedFactory.AbstractAdaptedModel
Initialises thisAdaptedModel
.
-
isPalettePrototype
public boolean isPalettePrototype()
Description copied from interface:AdaptedParent
Indicates if the palette prototype.- Specified by:
isPalettePrototype
in interfaceAdaptedParent<R extends Model>
- Returns:
true
if the palette prototype.
-
getAdaptedAreas
public java.util.List<AdaptedArea<?>> getAdaptedAreas()
Description copied from interface:AdaptedParent
Obtains theAdaptedArea
instances.- Specified by:
getAdaptedAreas
in interfaceAdaptedParent<R extends Model>
- Returns:
AdaptedArea
instances.
-
isAreaChangeEvent
public boolean isAreaChangeEvent(java.lang.String eventName)
Description copied from interface:AdaptedParent
Indicates ifAdaptedArea
change event.- Specified by:
isAreaChangeEvent
in interfaceAdaptedParent<R extends Model>
- Parameters:
eventName
- Name of the event.- Returns:
true
ifAdaptedArea
change event.
-
getAdapter
public <T> T getAdapter(java.lang.Class<T> classKey)
Description copied from interface:AdaptedParent
Obtains the adapter.- Specified by:
getAdapter
in interfaceAdaptedParent<R extends Model>
- Type Parameters:
T
- Adapted type.- Parameters:
classKey
-Class
key.- Returns:
- Adapter or
null
if no adapter available.
-
changeLocation
public void changeLocation(int x, int y)
Description copied from interface:AdaptedParent
Changes the location of theModel
.- Specified by:
changeLocation
in interfaceAdaptedParent<R extends Model>
- Parameters:
x
- X.y
- Y.
-
newAdaptedParent
public void newAdaptedParent(org.eclipse.gef.geometry.planar.Point location)
Description copied from interface:AdaptedPrototype
Triggers creating a newAdaptedParent
at the location.- Specified by:
newAdaptedParent
in interfaceAdaptedPrototype<R extends Model>
- Parameters:
location
- Location for the newAdaptedParent
.
-
-