Class AbstractDrawingTool
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
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
,ToolActivationListener
- Direct Known Subclasses:
DrawingTool
,StampTool
-
Field Summary
Modifier and TypeFieldDescriptionprotected JCheckBox
protected JCheckBox
protected boolean
protected Point
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
ConstructorDescriptionAbstractDrawingTool
(String name, String description, ImageIcon icon, Canvas canvas, ColorSelector colorSelector, VersionManager versionManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
doDrawing
(Graphics2D g, int x, int y, Dimension d) protected abstract Dimension
protected abstract void
boolean
Methods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractModificationTool
mousePressed, mouseReleased
Methods inherited from class net.mcreator.ui.views.editor.image.tool.tools.AbstractTool
getCursor, getDescription, getHoverCursor, getIcon, getLayer, getName, getPropertiesPanel, getToolPanelButton, getUsingCursor, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, noSettings, setCanvas, setLayer, setLayerPanel, setToolPanelButton, toolActivationChanged, toolDisabled, toolEnabled
-
Field Details
-
prevPoint
-
first
protected boolean first -
aliasing
-
connect
-
-
Constructor Details
-
AbstractDrawingTool
public AbstractDrawingTool(String name, String description, ImageIcon icon, Canvas canvas, ColorSelector colorSelector, VersionManager versionManager)
-
-
Method Details
-
preProcess
-
process
- Specified by:
process
in classAbstractTool
-
getShapeDimension
-
doDrawing
-