public class InsertionTool<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends BasicAbstractTool<G,A,R>
Constructor and Description |
---|
InsertionTool(@NotNull SelectedSquareModel<G,A,R> selectedSquareModel,
@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull PickmapSettings pickmapSettings,
@NotNull InsertionModeSet<G,A,R> insertionModeSet,
@NotNull MapViewSettings mapViewSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clicked(@NotNull MouseOpEvent<G,A,R> e)
Mouse was clicked.
|
@Nullable java.awt.Component |
createOptionsView()
Creates a view for changing the options of this tool.
|
void |
dragged(@NotNull MouseOpEvent<G,A,R> e)
Mouse was dragged.
|
void |
moved(@NotNull MouseOpEvent<G,A,R> e)
Mouse was moved.
|
void |
pressed(@NotNull MouseOpEvent<G,A,R> e)
Mouse was pressed.
|
void |
released(@NotNull MouseOpEvent<G,A,R> e)
Mouse was released.
|
getId
public InsertionTool(@NotNull @NotNull SelectedSquareModel<G,A,R> selectedSquareModel, @NotNull @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull @NotNull PickmapSettings pickmapSettings, @NotNull @NotNull InsertionModeSet<G,A,R> insertionModeSet, @NotNull @NotNull MapViewSettings mapViewSettings)
selectedSquareModel
- the selected square modelobjectChooser
- the ObjectChooser to usepickmapSettings
- the pickmap settings to useinsertionModeSet
- the insertion mode set to usemapViewSettings
- the map view settings to usepublic void pressed(@NotNull @NotNull MouseOpEvent<G,A,R> e)
MouseOpListener
e
- the eventpublic void released(@NotNull @NotNull MouseOpEvent<G,A,R> e)
MouseOpListener
e
- the eventpublic void clicked(@NotNull @NotNull MouseOpEvent<G,A,R> e)
MouseOpListener
e
- the eventpublic void dragged(@NotNull @NotNull MouseOpEvent<G,A,R> e)
MouseOpListener
e
- the eventpublic void moved(@NotNull @NotNull MouseOpEvent<G,A,R> e)
MouseOpListener
e
- the event@Nullable public @Nullable java.awt.Component createOptionsView()
Tool
null
if
this tool hasn't any options