Class AbstractTool
java.lang.Object
net.mcreator.ui.views.editor.image.tool.tools.AbstractTool
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
,ToolActivationListener
- Direct Known Subclasses:
AbstractModificationTool
,ColorizeTool
,ColorPickerTool
,DesaturateTool
,HSVNoiseTool
,MoveTool
,ResizeCanvasTool
,ResizeTool
,SelectionTool
public abstract class AbstractTool
extends Object
implements MouseListener, MouseMotionListener, ToolActivationListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected Canvas
protected final ColorSelector
protected final String
protected final ImageIcon
protected Layer
protected LayerPanel
protected final String
protected boolean
protected final JPanel
protected boolean
protected final VersionManager
-
Constructor Summary
ConstructorDescriptionAbstractTool
(String name, String description, ImageIcon icon, Canvas canvas, ColorSelector colorSelector, VersionManager versionManager) -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
getLayer()
getName()
void
void
void
void
void
void
void
void
noSettings
(boolean no) abstract boolean
process
(ZoomedMouseEvent mouseEvent) void
void
void
setLayerPanel
(LayerPanel layerPanel) void
setToolPanelButton
(JToggleButton toolPanelButton) void
void
toolDisabled
(ToolActivationEvent event) void
toolEnabled
(ToolActivationEvent event)
-
Field Details
-
name
-
description
-
icon
-
settingsPanel
-
canvas
-
layer
-
colorSelector
-
layerPanel
-
versionManager
-
startSuccess
protected boolean startSuccess -
processSuccess
protected boolean processSuccess
-
-
Constructor Details
-
AbstractTool
public AbstractTool(String name, String description, ImageIcon icon, Canvas canvas, ColorSelector colorSelector, VersionManager versionManager)
-
-
Method Details
-
noSettings
public void noSettings(boolean no) -
getName
-
getDescription
-
getIcon
-
getPropertiesPanel
-
setLayer
-
getLayer
-
setCanvas
-
getCursor
-
getUsingCursor
-
getHoverCursor
-
setLayerPanel
-
process
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
toolActivationChanged
- Specified by:
toolActivationChanged
in interfaceToolActivationListener
-
toolEnabled
- Specified by:
toolEnabled
in interfaceToolActivationListener
-
toolDisabled
- Specified by:
toolDisabled
in interfaceToolActivationListener
-
getToolPanelButton
-
setToolPanelButton
-