congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Drawing.findFigureExcept
Code IndexAdd Tabnine to your IDE (free)

How to use
findFigureExcept
method
in
org.jhotdraw.draw.Drawing

Best Java code snippets using org.jhotdraw.draw.Drawing.findFigureExcept (Showing top 4 results out of 315)

origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

Point2D.Double newPoint = view.viewToDrawing(new Point(x, y));
Figure dropTarget = getDrawing().findFigureExcept(newPoint, transformedFigures);
if (dropTarget != null) {
  boolean snapBack = dropTarget.handleDrop(newPoint, transformedFigures, view);
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

draggedFigures.add(getOwner());
Point2D.Double dropPoint = getView().viewToDrawing(lead);
Figure dropTarget = getView().getDrawing().findFigureExcept(
    dropPoint, draggedFigures);
if (dropTarget != null) {
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * Adjust the created connection.
 */
@Override
public void mouseDragged(java.awt.event.MouseEvent e) {
  repaintConnectors(e);
  if (createdFigure != null) {
    createdFigure.willChange();
    Point2D.Double endPoint = viewToDrawing(new Point(e.getX(), e.getY()));
    getView().getConstrainer().constrainPoint(endPoint);
    Figure endFigure = getDrawing().findFigureExcept(endPoint, createdFigure);
    endConnector = (endFigure == null) ? null : endFigure.findConnector(endPoint, prototype);
    if (endConnector != null && canConnect(createdFigure, startConnector, endConnector)) {
      endPoint = endConnector.getAnchor();
    }
    Rectangle r = new Rectangle(getView().drawingToView(createdFigure.getEndPoint()));
    createdFigure.setEndPoint(endPoint);
    r.add(getView().drawingToView(endPoint));
    r.grow(ANCHOR_WIDTH + 2, ANCHOR_WIDTH + 2);
    getView().getComponent().repaint(r);
    createdFigure.changed();
  }
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

Rectangle2D.Double invalidArea = null;
Point2D.Double targetPoint = viewToDrawing(new Point(evt.getX(), evt.getY()));
Figure aFigure = getDrawing().findFigureExcept(targetPoint, createdFigure);
if (aFigure != null && !aFigure.isConnectable()) {
  aFigure = null;
org.jhotdraw.drawDrawingfindFigureExcept

Javadoc

Finds a top level Figure. Use this call for hit detection that should not descend into the figure's children.

Popular methods of Drawing

  • add
    Adds a figure to the drawing. The drawing sends an addNotify message to the figure after it has been
  • remove
    Removes a figure from the drawing. The drawing sends a removeNotify message to the figure before it
  • contains
  • addAll
    Adds a collection of figures to the drawing. The drawing sends an addNotify message to each figure a
  • addCompositeFigureListener
  • addFigureListener
  • addInputFormat
    Adds an input format to the drawing.
  • addOutputFormat
    Adds an output format to the drawing.
  • addUndoableEditListener
    Adds a listener for undooable edit events.
  • basicAdd
    Reinserts a figure which was temporarily removed using basicRemove. This is a convenience method for
  • basicAddAll
    Reinserts the specified figures which were temporarily removed from the drawing.
  • basicRemoveAll
    Removes the specified figures temporarily from the drawing.
  • basicAddAll,
  • basicRemoveAll,
  • bringToFront,
  • changed,
  • clone,
  • draw,
  • drawCanvas,
  • findFigure,
  • findFigureBehind

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 17 Free Sublime Text Plugins
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