Codota Logo
mxICellOverlay
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Socket (java.net)
    Provides a client-side TCP socket.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now