public abstract class ALcdAPP6AGXYNewControllerModel extends ALcdGXYNewControllerModel2
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.
ALcdGXYNewControllerModel2.CreationStatus, ALcdGXYNewControllerModel2.SnapTargetInfo
Constructor and Description |
---|
ALcdAPP6AGXYNewControllerModel()
Creates a new
ALcdAPP6AGXYNewControllerModel . |
Modifier and Type | Method and Description |
---|---|
ILcdGXYLayer |
getGXYLayer(Graphics aGraphics,
MouseEvent aMouseEvent,
ILcdGXYLayerSubsetList aILcdGXYLayerSubsetList,
ILcdGXYContext aContext)
Returns a suitable layer for creating an object.
|
addUndoableListener, cancel, commit, create, createCommitUndoable, edit, fireUndoableHappened, getCreationStatus, getStringTranslator, mouseCursor, paint, removeUndoableListener, setStringTranslator, shouldCommit, shouldEdit, shouldUndo, snapTarget
public ALcdAPP6AGXYNewControllerModel()
ALcdAPP6AGXYNewControllerModel
.public ILcdGXYLayer getGXYLayer(Graphics aGraphics, MouseEvent aMouseEvent, ILcdGXYLayerSubsetList aILcdGXYLayerSubsetList, ILcdGXYContext aContext)
ILcdAPP6AModelDescriptor
is
returned. The layer is made available in the other method calls through the
ILcdGXYContext
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 return
aContext.getGXYLayer when this is not null.
getGXYLayer
in class ALcdGXYNewControllerModel2
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 informationILcdAPP6AModelDescriptor
ALcdGXYNewControllerModel2.create(int, java.awt.Graphics, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYLayerSubsetList, com.luciad.view.gxy.ILcdGXYContext)