Class CreationTool

All Implemented Interfaces:
Tool, PropertyBean, Disableable
Direct Known Subclasses:
ImageCreationTool, LineCreationTool

public class CreationTool extends AbstractCreationTool<Figure>
CreationTool.
Author:
Werner Randelshofer
  • Field Details

    • x1

      protected double x1
      The rubber band.
    • y1

      protected double y1
      The rubber band.
    • x2

      protected double x2
      The rubber band.
    • y2

      protected double y2
      The rubber band.
  • Constructor Details

  • Method Details

    • getDefaultHeight

      public double getDefaultHeight()
    • setDefaultHeight

      public void setDefaultHeight(double defaultHeight)
    • getDefaultWidth

      public double getDefaultWidth()
    • setDefaultWidth

      public void setDefaultWidth(double defaultWidth)
    • stopEditing

      protected void stopEditing()
      Overrides:
      stopEditing in class AbstractTool
    • onMousePressed

      protected void onMousePressed(javafx.scene.input.MouseEvent event, DrawingView view)
      Overrides:
      onMousePressed in class AbstractTool
    • onMouseReleased

      protected void onMouseReleased(javafx.scene.input.MouseEvent event, DrawingView dv)
      Overrides:
      onMouseReleased in class AbstractTool
    • reshapeInLocal

      protected void reshapeInLocal(Figure figure, CssPoint2D c1, CssPoint2D c2, DrawingModel dm)
    • onMouseDragged

      protected void onMouseDragged(javafx.scene.input.MouseEvent event, DrawingView dv)
      Overrides:
      onMouseDragged in class AbstractTool
    • activate

      public void activate(DrawingEditor editor)
      This implementation is empty.
      Specified by:
      activate in interface Tool
      Overrides:
      activate in class AbstractTool
      Parameters:
      editor - the editor
    • getHelpText

      public String getHelpText()
      Description copied from interface: Tool
      Returns a localized help text for this tool.
      Returns:
      the help text