Package net.officefloor.gef.editor
Interface AdaptedParent<M extends Model>
-
- All Superinterfaces:
AdaptedChild<M>,AdaptedConnectable<M>,AdaptedModel<M>
- All Known Implementing Classes:
AdaptedParentFactory.AdaptedParentImpl
public interface AdaptedParent<M extends Model> extends AdaptedChild<M>
Builder for theAdaptedParent.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract 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.booleanisAreaChangeEvent(java.lang.String eventName)Indicates ifAdaptedAreachange event.booleanisPalettePrototype()Indicates if the palette prototype.-
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
-
-
-
-
Method Detail
-
isPalettePrototype
boolean isPalettePrototype()
Indicates if the palette prototype.- Returns:
trueif the palette prototype.
-
getAdaptedAreas
java.util.List<AdaptedArea<?>> getAdaptedAreas()
Obtains theAdaptedAreainstances.- Returns:
AdaptedAreainstances.
-
isAreaChangeEvent
boolean isAreaChangeEvent(java.lang.String eventName)
Indicates ifAdaptedAreachange event.- Parameters:
eventName- Name of the event.- Returns:
trueifAdaptedAreachange event.
-
getAdapter
<T> T getAdapter(java.lang.Class<T> classKey)
Obtains the adapter.- Type Parameters:
T- Adapted type.- Parameters:
classKey-Classkey.- Returns:
- Adapter or
nullif no adapter available.
-
changeLocation
void changeLocation(int x, int y)Changes the location of theModel.- Parameters:
x- X.y- Y.
-
-