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

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

Best Java code snippets using com.mxgraph.swing.util.mxICellOverlay (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.utilmxICellOverlay

Most used methods

  • getBounds

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Table (org.hibernate.mapping)
    A relational table
  • 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