Tabnine Logo
mxICellOverlay.getBounds
Code IndexAdd Tabnine to your IDE (free)

How to use
getBounds
method
in
com.mxgraph.swing.util.mxICellOverlay

Best Java code snippets using com.mxgraph.swing.util.mxICellOverlay.getBounds (Showing top 2 results out of 315)

origin: com.github.vlsi.mxgraph/jgraphx

/**
 * Notified when an overlay has been removed from the graph. This
 * implementation removes the given overlay from its parent if it is a
 * component inside a component hierarchy.
 */
protected void updateCellOverlayComponent(mxCellState state,
    mxICellOverlay overlay)
{
  if (overlay instanceof Component)
  {
    Component comp = (Component) overlay;
    if (comp.getParent() == null)
    {
      getGraphControl().add(comp, 0);
    }
    mxRectangle rect = overlay.getBounds(state);
    if (rect != null)
    {
      comp.setBounds(rect.getRectangle());
      comp.setVisible(true);
    }
    else
    {
      comp.setVisible(false);
    }
  }
}
origin: org.tinyjee.jgraphx/jgraphx

/**
 * Notified when an overlay has been removed from the graph. This
 * implementation removes the given overlay from its parent if it is a
 * component inside a component hierarchy.
 */
protected void updateCellOverlayComponent(mxCellState state,
    mxICellOverlay overlay)
{
  if (overlay instanceof Component)
  {
    Component comp = (Component) overlay;
    if (comp.getParent() == null)
    {
      getGraphControl().add(comp, 0);
    }
    mxRectangle rect = overlay.getBounds(state);
    if (rect != null)
    {
      comp.setBounds(rect.getRectangle());
      comp.setVisible(true);
    }
    else
    {
      comp.setVisible(false);
    }
  }
}
com.mxgraph.swing.utilmxICellOverlaygetBounds

Popular methods of mxICellOverlay

    Popular in Java

    • Finding current android device location
    • requestLocationUpdates (LocationManager)
    • scheduleAtFixedRate (Timer)
    • getExternalFilesDir (Context)
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • Hashtable (java.util)
      A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • Timer (java.util)
      Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • DateTimeFormat (org.joda.time.format)
      Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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