congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
org.jhotdraw.draw.tool
Code IndexAdd Tabnine to your IDE (free)

How to use org.jhotdraw.draw.tool

Best Java code snippets using org.jhotdraw.draw.tool (Showing top 20 results out of 315)

origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/** Creates a new instance. */
public SelectionTool() {
  tracker = getSelectAreaTracker();
  trackerHandler = new TrackerHandler();
  tracker.addToolListener(trackerHandler);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void deactivate(DrawingEditor editor) {
  super.deactivate(editor);
  tracker.deactivate(editor);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void activate(DrawingEditor editor) {
  super.activate(editor);
  clearHoverHandles();
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

protected void setTracker(Tool newTracker) {
  if (tracker != null) {
    tracker.deactivate(getEditor());
    tracker.removeToolListener(trackerHandler);
  }
  tracker = newTracker;
  if (tracker != null) {
    tracker.activate(getEditor());
    tracker.addToolListener(trackerHandler);
  }
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void deactivate(DrawingEditor editor) {
  endEdit();
  super.deactivate(editor);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void activate(DrawingEditor editor) {
  super.activate(editor);
  tracker.activate(editor);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

  @Override
  public void deactivate(DrawingEditor editor) {
    super.deactivate(editor);
    clearHoverHandles();
  }
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void deactivate(DrawingEditor editor) {
  endEdit();
  super.deactivate(editor);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * Method to get a {@code HandleTracker} which handles user interaction
 * for the specified handle.
 */
protected HandleTracker getHandleTracker(Handle handle) {
  if (handleTracker == null) {
    handleTracker = new DefaultHandleTracker();
  }
  handleTracker.setHandles(handle, getView().getCompatibleHandles(handle));
  return handleTracker;
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * Method to get a {@code DragTracker} which handles user interaction
 * for dragging the specified figure.
 */
protected DragTracker getDragTracker(Figure f) {
  if (dragTracker == null) {
    dragTracker = new DefaultDragTracker();
  }
  dragTracker.setDraggedFigure(f);
  return dragTracker;
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void deactivate(DrawingEditor editor) {
  endEdit();
  super.deactivate(editor);
}
/**
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void deactivate(DrawingEditor editor) {
  endEdit();
  super.deactivate(editor);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void mouseEntered(MouseEvent evt) {
  super.mouseEntered(evt);
  tracker.mouseEntered(evt);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void mouseExited(MouseEvent evt) {
  super.mouseExited(evt);
  tracker.mouseExited(evt);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void mousePressed(MouseEvent evt) {
  super.mousePressed(evt);
  clearRubberBand();
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void actionPerformed(ActionEvent event) {
  endEdit();
  fireToolDone();
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void actionPerformed(ActionEvent event) {
  endEdit();
  fireToolDone();
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * This method allows subclasses to do perform additonal user interactions
 * after the new figure has been created.
 * The implementation of this class just invokes fireToolDone.
 */
protected void creationFinished(Figure createdFigure) {
  if (isToolDoneAfterCreation()) {
    fireToolDone();
  }
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * Sets the selectBehindEnabled property.
 * This is a bound property.
 *
 * @param newValue The new value.
 */
public void setSelectBehindEnabled(boolean newValue) {
  boolean oldValue = isSelectBehindEnabled;
  isSelectBehindEnabled = newValue;
  firePropertyChange(SELECT_BEHIND_ENABLED_PROPERTY, oldValue, newValue);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
      public void actionPerformed(ActionEvent aevt) {
        handlePopupMenu(evt);
        popupTimer = null;
      }
    });
org.jhotdraw.draw.tool

Most used classes

  • AbstractTool
    This abstract class can be extended to implement a Tool. -------------------------------------------
  • BezierTool
    A Tool which allows to create a new BezierFigure by drawing its path.
  • CreationTool
    A Tool to create a new figure by drawing its bounds. The figure to be created is specified by a prot
  • ConnectionTool
    A tool to create a connection between two figures. The ConnectionFigure to be created is specified b
  • DefaultDragTracker
    DefaultDragTracker implements interactions with the content area of aFigure. The DefaultDragTracker
  • DefaultSelectAreaTracker,
  • DelegationSelectionTool,
  • DnDTracker,
  • DragTracker,
  • HandleTracker,
  • ImageTool,
  • SelectionTool$TrackerHandler,
  • SelectionTool,
  • TextAreaCreationTool,
  • TextAreaEditingTool,
  • TextCreationTool,
  • TextEditingTool,
  • Tool
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now