/** Unset drop line if setVisible to false. * @param boolean aFlag new state */ @Override public void setVisible(boolean aFlag) { super.setVisible(aFlag); if (!aFlag) { setDropLine(null); } }
/** Unset drop line if setVisible to false. * @param boolean aFlag new state */ public void setVisible (boolean aFlag) { super.setVisible(aFlag); if (!aFlag) setDropLine (null); }
/** Unset drop line if setVisible to false. * @param boolean aFlag new state */ public void setVisible (boolean aFlag) { super.setVisible(aFlag); if (!aFlag) setDropLine (null); }
private void removeDropLine() { dropPane.setDropLine(null); if (lastNodeArea != null) { repaint(lastNodeArea); lastNodeArea = null; } }
private void removeDropLine() { if( null != dropPane ) { dropPane.setDropLine(null); } if (lastNodeArea != null) { NodeRenderer.dragExit(); repaint(lastNodeArea); lastNodeArea = null; } }
private void removeDropLine () { dropPane.setDropLine (null); if (lastNodeArea != null) { NodeRenderer.dragExit(); repaint (lastNodeArea); lastNodeArea = null; } }
private void removeDropLine () { dropPane.setDropLine (null); if (lastNodeArea != null) { NodeRenderer.dragExit(); repaint (lastNodeArea); lastNodeArea = null; } }
/** Converts line's bounds by the bounds of the root pane. Drop glass pane * is over this root pane. After covert a given line is set to drop glass pane. * @param line line for show in drop glass pane */ private void convertBoundsAndSetDropLine (final Line2D line) { int x1 = (int)line.getX1 (), x2 = (int)line.getX2 (); int y1 = (int)line.getY1 (), y2 = (int)line.getY2 (); Point p1 = SwingUtilities.convertPoint (tree, x1, y1, tree.getRootPane ()); Point p2 = SwingUtilities.convertPoint (tree, x2, y2, tree.getRootPane ()); line.setLine (p1, p2); dropPane.setDropLine (line); }
/** Converts line's bounds by the bounds of the root pane. Drop glass pane * is over this root pane. After covert a given line is set to drop glass pane. * @param line line for show in drop glass pane */ private void convertBoundsAndSetDropLine (final Line2D line) { int x1 = (int)line.getX1 (), x2 = (int)line.getX2 (); int y1 = (int)line.getY1 (), y2 = (int)line.getY2 (); Point p1 = SwingUtilities.convertPoint (tree, x1, y1, tree.getRootPane ()); Point p2 = SwingUtilities.convertPoint (tree, x2, y2, tree.getRootPane ()); line.setLine (p1, p2); dropPane.setDropLine (line); }
/** Converts line's bounds by the bounds of the root pane. Drop glass pane * is over this root pane. After covert a given line is set to drop glass pane. * @param line line for show in drop glass pane */ private void convertBoundsAndSetDropLine(final Line2D line) { int x1 = (int) line.getX1(); int x2 = (int) line.getX2(); int y1 = (int) line.getY1(); int y2 = (int) line.getY2(); Point p1 = SwingUtilities.convertPoint(tree, x1, y1, tree.getRootPane()); Point p2 = SwingUtilities.convertPoint(tree, x2, y2, tree.getRootPane()); line.setLine(p1, p2); dropPane.setDropLine(line); }
/** Converts line's bounds by the bounds of the root pane. Drop glass pane * is over this root pane. After covert a given line is set to drop glass pane. * @param line line for show in drop glass pane */ private void convertBoundsAndSetDropLine(final Line2D line) { int x1 = (int) line.getX1(); int x2 = (int) line.getX2(); int y1 = (int) line.getY1(); int y2 = (int) line.getY2(); Point p1 = SwingUtilities.convertPoint(table, x1, y1, table.getRootPane()); Point p2 = SwingUtilities.convertPoint(table, x2, y2, table.getRootPane()); line.setLine(p1, p2); dropPane.setDropLine(line); }
dropPane.setDropLine (null); } else {
dropPane.setDropLine (null); } else {
dropPane.setDropLine(null); } else {
dropPane.setDropLine(null); } else {