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

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

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

origin: net.imagej/imagej-ui-swing

private void show(final boolean doShow) {
  final JHotDrawImageCanvas canvas = displayViewer.getCanvas();
  final Drawing drawing = canvas.getDrawing();
  final Figure fig = getFigure();
  if (doShow) {
    if (!drawing.contains(fig)) {
      drawing.add(fig);
    }
  }
  else {
    if (drawing.contains(fig)) {
      drawing.remove(fig);
    }
  }
}
origin: net.imagej/ij-ui-swing

private void show(final boolean doShow) {
  final JHotDrawImageCanvas canvas = displayViewer.getCanvas();
  final Drawing drawing = canvas.getDrawing();
  final Figure fig = getFigure();
  if (doShow) {
    if (!drawing.contains(fig)) {
      drawing.add(fig);
    }
  }
  else {
    if (drawing.contains(fig)) {
      drawing.remove(fig);
    }
  }
}
org.jhotdraw.drawDrawingcontains

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
  • 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.
  • bringToFront
    Brings a figure to the front.
  • basicRemoveAll,
  • bringToFront,
  • changed,
  • clone,
  • draw,
  • drawCanvas,
  • findFigure,
  • findFigureBehind,
  • findFigureExcept

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)
  • 21 Best IntelliJ 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