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
ConstructorDescriptionCreates 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 typeILcdAPP6AModelDescriptor
is returned. The layer is made available in the other method calls through theILcdGXYContext
object. This method may be called several times during the creation process; upon the first call,aContext.getGXYLayer
returns
null
. If the controller model does not support changing the layer during creation (e.g. due to incompatible objects), it should returnaContext.getGXYLayer
when this is not null.
- Specified by:
getGXYLayer
in 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:
-