Examples of scrollRectToVisible()


Examples of com.dci.intellij.dbn.editor.data.ui.table.DatasetEditorTable.scrollRectToVisible()

        getRow().getModel().notifyCellUpdated(getRow().getIndex(), getIndex());
    }

    public void scrollToVisible() {
        DatasetEditorTable table = getEditorTable();
        table.scrollRectToVisible(table.getCellRect(getRow().getIndex(), getIndex(), true));
    }

    /*********************************************************
     *                    ChangeListener                     *
     *********************************************************/
 
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

            if (rect.height < 20) {
                rect.y -= 20;
                rect.height += 40;
            }

            com.scrollRectToVisible(rect);
        }
    }
   
    //gh start
    public PropertyChangeListener getCurrentCustomizationVersionChangeLisenter() {
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

            if (rect.height < 20) {
                rect.y -= 20;
                rect.height += 40;
            }

            com.scrollRectToVisible(rect);
        }
    }
   
    //gh start
    public PropertyChangeListener getCurrentCustomizationVersionChangeLisenter() {
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

      viewPort.putClientProperty(ViewController.SLOW_SCROLLING, Boolean.TRUE);
    final Dimension d = viewPort.getExtentSize();
    final JComponent content = nodeToBeCentered.getContent();
    final Rectangle rect = new Rectangle(content.getWidth() / 2 - d.width / 2, content.getHeight() / 2 - d.height
            / 2, d.width, d.height);
    content.scrollRectToVisible(rect);
    nodeToBeCentered = null;
    this.slowScroll = false;
    this.anchorContentLocation = getAnchorCenterPoint();
    }
 
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

    final int VERT_SPACE2 = 10;
    final JComponent nodeContent = node.getContent();
    int width = nodeContent.getWidth();
    if (extraWidth < 0) {
      width -= extraWidth;
      nodeContent.scrollRectToVisible(new Rectangle(-HORIZ_SPACE + extraWidth, -VERT_SPACE, width + HORIZ_SPACE2,
          nodeContent.getHeight() + VERT_SPACE2));
    }
    else {
      width += extraWidth;
      nodeContent.scrollRectToVisible(new Rectangle(-HORIZ_SPACE, -VERT_SPACE, width + HORIZ_SPACE2, nodeContent
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

      nodeContent.scrollRectToVisible(new Rectangle(-HORIZ_SPACE + extraWidth, -VERT_SPACE, width + HORIZ_SPACE2,
          nodeContent.getHeight() + VERT_SPACE2));
    }
    else {
      width += extraWidth;
      nodeContent.scrollRectToVisible(new Rectangle(-HORIZ_SPACE, -VERT_SPACE, width + HORIZ_SPACE2, nodeContent
          .getHeight()
              + VERT_SPACE2));
    }
  }
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

            if (component instanceof JComponent) {
                JComponent jcomponent = (JComponent) component;
                scrollComponentIntoView(component.getParent(), component.getLocation());
                Rectangle visibleRect = jcomponent.getVisibleRect();
                if (!visibleRect.contains(point)) {
                    jcomponent.scrollRectToVisible(new Rectangle(point, visibleRect.getSize()));
                }
            }
        } catch (Exception e) {
            // Ignore - this is only beutification anyhow. - Unsimulatable bug
            // reported on Help forum
View Full Code Here

Examples of javax.swing.JComponent.scrollRectToVisible()

                        newFocusOwner != lastFocusedSection) {

                        // If it's a new section make sure the top title is visible
                        if (lastFocusedSection != newFocusOwner) {
                            JComponent expander = ((NavEditorSection) newFocusOwner).getExpander();
                            expander.scrollRectToVisible(expander.getBounds());
                        }

                        lastFocusedSection = newFocusOwner;
                   
                    } else if (newFocusOwner != lastFocusedComponent) {
View Full Code Here

Examples of javax.swing.JEditorPane.scrollRectToVisible()

      }
    });

    SwingUtilities.invokeLater(new Runnable(){
      public void run() {
        infoPanel.scrollRectToVisible(new Rectangle(0,0));
      }
    });

    panel.add(ok, cc.xy(2,3));
View Full Code Here

Examples of javax.swing.JEditorPane.scrollRectToVisible()

    panel.setBorder(BorderFactory.createTitledBorder("FindBugs analysis run configuration"));
    dialogBuilder.setCenterPanel(panel);

    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        jEditorPane.scrollRectToVisible(new Rectangle(0, 0));
      }
    });

    return dialogBuilder;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.