- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory<R,O,M,E,A>
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory<R,O,M,E,AdaptedArea<M>>
-
- net.officefloor.gef.editor.internal.models.AdaptedAreaFactory<R,O,M,E>
-
- All Implemented Interfaces:
AdaptedAreaBuilder<R,O,M,E>
,AdaptedConnectableBuilder<R,O,M,E>
public class AdaptedAreaFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>> extends AbstractAdaptedConnectableFactory<R,O,M,E,AdaptedArea<M>> implements AdaptedAreaBuilder<R,O,M,E>
Factory for anAdaptedArea
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdaptedAreaFactory.AdaptedAreaImpl<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
AdaptedArea
implementation.-
Nested classes/interfaces inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory
AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedConnectable<M>,F extends AbstractAdaptedConnectableFactory<R,O,M,E,A>>
-
Nested classes/interfaces inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory
AbstractAdaptedFactory.AbstractAdaptedModel<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedModel<M>,F extends AbstractAdaptedFactory<R,O,M,E,A>>
-
-
Field Summary
-
Fields inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory
connectionFactories, connections, modelPrototype, stylesheetContent, stylesheetUrl
-
-
Constructor Summary
Constructors Constructor Description AdaptedAreaFactory(java.lang.String adaptedPathPrefix, M modelPrototype, AbstractAdaptedFactory<R,O,?,?,?> parentAdaptedFactory, java.util.function.Function<M,org.eclipse.gef.geometry.planar.Dimension> getDimension, java.util.function.BiConsumer<M,org.eclipse.gef.geometry.planar.Dimension> setDimension)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action(ModelAction<R,O,M> action, AdaptedActionVisualFactory visualFactory)
Configures anModelAction
for the areaModel
.void
setMinimumDimension(double width, double height)
Specifies the minimumDimension
.-
Methods inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory
connectMany, connectOne, loadModelToConnection, style, validate
-
Methods inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory
getAdaptedModel, getConfigurationPath, getContentPartFactory, getInjector, getModelClass, getModelFactory, init, newAdaptedModel, 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.AdaptedConnectableBuilder
connectMany, connectOne, getConfigurationPath, getModelClass, style
-
-
-
-
Constructor Detail
-
AdaptedAreaFactory
public AdaptedAreaFactory(java.lang.String adaptedPathPrefix, M modelPrototype, AbstractAdaptedFactory<R,O,?,?,?> parentAdaptedFactory, java.util.function.Function<M,org.eclipse.gef.geometry.planar.Dimension> getDimension, java.util.function.BiConsumer<M,org.eclipse.gef.geometry.planar.Dimension> setDimension)
Instantiate.- Parameters:
adaptedPathPrefix
- Prefix on the configuration path.modelPrototype
-Model
prototype.parentAdaptedFactory
- ParentAbstractAdaptedFactory
.getDimension
- Obtains theDimension
from theModel
.setDimension
- Specifies theDimension
on theModel
.
-
-
Method Detail
-
setMinimumDimension
public void setMinimumDimension(double width, double height)
Description copied from interface:AdaptedAreaBuilder
Specifies the minimumDimension
.- Specified by:
setMinimumDimension
in interfaceAdaptedAreaBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
- Parameters:
width
- Minimum width.height
- Minimum height.
-
action
public void action(ModelAction<R,O,M> action, AdaptedActionVisualFactory visualFactory)
Description copied from interface:AdaptedAreaBuilder
Configures anModelAction
for the areaModel
.- Specified by:
action
in interfaceAdaptedAreaBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
- Parameters:
action
-ModelAction
.visualFactory
-AdaptedActionVisualFactory
.
-
-