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 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.boolean
isAreaChangeEvent(java.lang.String eventName)
Indicates ifAdaptedArea
change event.boolean
isPalettePrototype()
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:
true
if the palette prototype.
-
getAdaptedAreas
java.util.List<AdaptedArea<?>> getAdaptedAreas()
Obtains theAdaptedArea
instances.- Returns:
AdaptedArea
instances.
-
isAreaChangeEvent
boolean isAreaChangeEvent(java.lang.String eventName)
Indicates ifAdaptedArea
change event.- Parameters:
eventName
- Name of the event.- Returns:
true
ifAdaptedArea
change event.
-
getAdapter
<T> T getAdapter(java.lang.Class<T> classKey)
Obtains the adapter.- Type Parameters:
T
- Adapted type.- Parameters:
classKey
-Class
key.- Returns:
- Adapter or
null
if no adapter available.
-
changeLocation
void changeLocation(int x, int y)
Changes the location of theModel
.- Parameters:
x
- X.y
- Y.
-
-