Package com.luciad.view.gxy.controller
Interface ILcdGXYNewControllerModel
- All Known Implementing Classes:
ALcdGXYNewControllerModel
public interface ILcdGXYNewControllerModel
Implementation of this interface is required by the
TLcdGXYNewController
for the following:
- to delegate the choice of an
ILcdGXYLayer
where to add a new Object, - to delegate the creation of this new
Object
to be edited/initialized by interacting with the Mouse on anILcdGXYView
, - to delegate the insertion of this
Object
in theILcdModel
that the chosenILcdGXYLayer
refers to.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObjectInGXYLayer
(Object aObject, ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) When calling this method, aTLcdGXYNewController
delegates the insertion of theObject
created by makeNewInstanceForGXYLayer in theILcdModel
the chosenILcdGXYLayer
refers to.chooseGXYLayer
(ILcdGXYView aGXYView) When calling this method, aTLcdGXYNewController
asks to get anILcdGXYLayer
in order to know where to add the Object created by makeNewInstanceForGXYLayer and how to get a validILcdGXYEditor
for editing the createdObject
with Mouse interactions.makeNewInstanceForGXYLayer
(ILcdGXYLayer aGXYLayer, ILcdGXYView aGXYView) When calling this method, aTLcdGXYNewController
asks to get a new instance of theObject
to initialize with Mouse interactions.
-
Method Details
-
makeNewInstanceForGXYLayer
When calling this method, aTLcdGXYNewController
asks to get a new instance of theObject
to initialize with Mouse interactions. The initialization with Mouse interactions is done by theTLcdGXYNewController
by delegating to theILcdGXYEditor
returned byILcdGXYLayer.getGXYEditor(Object)
. TheILcdGXYLayer
is the one returned by chooseGXYLayer. This requires that it returns a nonnull
and validILcdGXYEditor
for editing theObject
returned by this method. -
chooseGXYLayer
When calling this method, aTLcdGXYNewController
asks to get anILcdGXYLayer
in order to know where to add the Object created by makeNewInstanceForGXYLayer and how to get a validILcdGXYEditor
for editing the createdObject
with Mouse interactions. -
addObjectInGXYLayer
When calling this method, aTLcdGXYNewController
delegates the insertion of theObject
created by makeNewInstanceForGXYLayer in theILcdModel
the chosenILcdGXYLayer
refers to.
-