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, prevPointFields 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
ConstructorsConstructorDescriptionStampTool(Canvas canvas, ColorSelector colorSelector, LayerPanel layerPanel, VersionManager versionManager, MCreator window) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoDrawing(Graphics2D g, int x, int y, Dimension d) getImage()protected Dimensionvoidvoidvoidvoidprotected voidvoidvoidMethods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractDrawingTool
processMethods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractModificationTool
mousePressedMethods 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:
preProcessin classAbstractDrawingTool
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classAbstractModificationTool
-
getShapeDimension
- Specified by:
getShapeDimensionin classAbstractDrawingTool
-
doDrawing
- Specified by:
doDrawingin classAbstractDrawingTool
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classAbstractTool
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classAbstractTool
-
toolEnabled
- Specified by:
toolEnabledin interfaceToolActivationListener- Overrides:
toolEnabledin classAbstractTool
-
toolDisabled
- Specified by:
toolDisabledin interfaceToolActivationListener- Overrides:
toolDisabledin classAbstractTool
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classAbstractTool
-
getImage
-