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>
AdaptedParentimplementation.
-
-
Constructor Summary
Constructors Constructor Description AdaptedParentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeLocation(int x, int y)Changes the location of theModel.java.util.List<AdaptedArea<?>>getAdaptedAreas()Obtains theAdaptedAreainstances.<T> TgetAdapter(java.lang.Class<T> classKey)Obtains the adapter.protected voidinit()Initialises thisAdaptedModel.booleanisAreaChangeEvent(java.lang.String eventName)Indicates ifAdaptedAreachange event.booleanisPalettePrototype()Indicates if the palette prototype.voidnewAdaptedParent(org.eclipse.gef.geometry.planar.Point location)Triggers creating a newAdaptedParentat 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.AbstractAdaptedModelInitialises thisAdaptedModel.
-
isPalettePrototype
public boolean isPalettePrototype()
Description copied from interface:AdaptedParentIndicates if the palette prototype.- Specified by:
isPalettePrototypein interfaceAdaptedParent<R extends Model>- Returns:
trueif the palette prototype.
-
getAdaptedAreas
public java.util.List<AdaptedArea<?>> getAdaptedAreas()
Description copied from interface:AdaptedParentObtains theAdaptedAreainstances.- Specified by:
getAdaptedAreasin interfaceAdaptedParent<R extends Model>- Returns:
AdaptedAreainstances.
-
isAreaChangeEvent
public boolean isAreaChangeEvent(java.lang.String eventName)
Description copied from interface:AdaptedParentIndicates ifAdaptedAreachange event.- Specified by:
isAreaChangeEventin interfaceAdaptedParent<R extends Model>- Parameters:
eventName- Name of the event.- Returns:
trueifAdaptedAreachange event.
-
getAdapter
public <T> T getAdapter(java.lang.Class<T> classKey)
Description copied from interface:AdaptedParentObtains the adapter.- Specified by:
getAdapterin interfaceAdaptedParent<R extends Model>- Type Parameters:
T- Adapted type.- Parameters:
classKey-Classkey.- Returns:
- Adapter or
nullif no adapter available.
-
changeLocation
public void changeLocation(int x, int y)Description copied from interface:AdaptedParentChanges the location of theModel.- Specified by:
changeLocationin interfaceAdaptedParent<R extends Model>- Parameters:
x- X.y- Y.
-
newAdaptedParent
public void newAdaptedParent(org.eclipse.gef.geometry.planar.Point location)
Description copied from interface:AdaptedPrototypeTriggers creating a newAdaptedParentat the location.- Specified by:
newAdaptedParentin interfaceAdaptedPrototype<R extends Model>- Parameters:
location- Location for the newAdaptedParent.
-
-