Class ALcdAPP6AGXYNewControllerModel
java.lang.Object
com.luciad.view.gxy.controller.ALcdGXYNewControllerModel2
com.luciad.symbology.app6a.view.gxy.ALcdAPP6AGXYNewControllerModel
- All Implemented Interfaces:
ILcdUndoableSource
Abstract implementation of
ALcdGXYNewControllerModel2 that contains the logic
for creating new APP-6A objects on an ILcdGXYView.
Extensions of this class need to provide an implementation
for the method create, which is used to
create a new APP-6A object.
- Since:
- 9.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.luciad.view.gxy.controller.ALcdGXYNewControllerModel2
ALcdGXYNewControllerModel2.CreationStatus, ALcdGXYNewControllerModel2.SnapTargetInfo -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newALcdAPP6AGXYNewControllerModel. -
Method Summary
Modifier and TypeMethodDescriptiongetGXYLayer(Graphics aGraphics, MouseEvent aMouseEvent, ILcdGXYLayerSubsetList aILcdGXYLayerSubsetList, ILcdGXYContext aContext) Returns a suitable layer for creating an object.Methods inherited from class com.luciad.view.gxy.controller.ALcdGXYNewControllerModel2
addUndoableListener, cancel, commit, create, createCommitUndoable, edit, fireUndoableHappened, getCreationStatus, getStringTranslator, mouseCursor, paint, removeUndoableListener, setStringTranslator, shouldCommit, shouldEdit, shouldUndo, snapTarget
-
Constructor Details
-
ALcdAPP6AGXYNewControllerModel
public ALcdAPP6AGXYNewControllerModel()Creates a newALcdAPP6AGXYNewControllerModel.
-
-
Method Details
-
getGXYLayer
public ILcdGXYLayer getGXYLayer(Graphics aGraphics, MouseEvent aMouseEvent, ILcdGXYLayerSubsetList aILcdGXYLayerSubsetList, ILcdGXYContext aContext) Returns a suitable layer for creating an object. By default, the first layer in the view that contains a model with a model descriptor of typeILcdAPP6AModelDescriptoris returned. The layer is made available in the other method calls through theILcdGXYContextobject. This method may be called several times during the creation process; upon the first call,aContext.getGXYLayerreturnsnull. If the controller model does not support changing the layer during creation (e.g. due to incompatible objects), it should returnaContext.getGXYLayerwhen this is not null.- Specified by:
getGXYLayerin classALcdGXYNewControllerModel2- Parameters:
aGraphics- the graphics onto which created objects will be paintedaMouseEvent- the mouse event causing the edit operationaILcdGXYLayerSubsetList- the list of potential snap targetsaContext- the GXY context information- Returns:
- the first layer in the view that contains a model with a model descriptor of type
ILcdAPP6AModelDescriptor - See Also:
-