Class DrawingTool
java.lang.Object
net.mcreator.ui.views.editor.image.tool.tools.AbstractTool
net.mcreator.ui.views.editor.image.tool.tools.AbstractModificationTool
net.mcreator.ui.views.editor.image.tool.tools.AbstractDrawingTool
net.mcreator.ui.views.editor.image.tool.tools.DrawingTool
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
,ToolActivationListener
- Direct Known Subclasses:
EraserTool
,PencilTool
-
Field Summary
Fields inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractDrawingTool
aliasing, connect, first, prevPoint
Fields inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractTool
canvas, colorSelector, description, icon, layer, layerPanel, name, processSuccess, settingsPanel, startSuccess, versionManager
-
Constructor Summary
ConstructorDescriptionDrawingTool
(Canvas canvas, ColorSelector colorSelector, LayerPanel layerPanel, String name, String description, ImageIcon icon, VersionManager versionManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doDrawing
(Graphics2D g, int x, int y, Dimension d) protected Dimension
void
void
void
void
protected void
void
void
Methods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractDrawingTool
process
Methods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractModificationTool
mousePressed
Methods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractTool
getCursor, getDescription, getHoverCursor, getIcon, getLayer, getName, getPropertiesPanel, getToolPanelButton, getUsingCursor, mouseClicked, mouseDragged, noSettings, setCanvas, setLayer, setLayerPanel, setToolPanelButton, toolActivationChanged
-
Constructor Details
-
DrawingTool
public DrawingTool(Canvas canvas, ColorSelector colorSelector, LayerPanel layerPanel, String name, String description, ImageIcon icon, VersionManager versionManager)
-
-
Method Details
-
preProcess
- Specified by:
preProcess
in classAbstractDrawingTool
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classAbstractModificationTool
-
getShapeDimension
- Specified by:
getShapeDimension
in classAbstractDrawingTool
-
doDrawing
- Specified by:
doDrawing
in classAbstractDrawingTool
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classAbstractTool
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classAbstractTool
-
toolEnabled
- Specified by:
toolEnabled
in interfaceToolActivationListener
- Overrides:
toolEnabled
in classAbstractTool
-
toolDisabled
- Specified by:
toolDisabled
in interfaceToolActivationListener
- Overrides:
toolDisabled
in classAbstractTool
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classAbstractTool
-