Class StampTool
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.StampTool
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
,ToolActivationListener
-
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
ConstructorDescriptionStampTool
(Canvas canvas, ColorSelector colorSelector, LayerPanel layerPanel, VersionManager versionManager, MCreator window) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doDrawing
(Graphics2D g, int x, int y, Dimension d) getImage()
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
-
StampTool
public StampTool(Canvas canvas, ColorSelector colorSelector, LayerPanel layerPanel, VersionManager versionManager, MCreator window)
-
-
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
-
getImage
-