Examples of mxGraphOutline


Examples of com.mxgraph.swing.mxGraphOutline

        /**
         *
         */
        public void actionPerformed(ActionEvent e)
        {
          final mxGraphOutline outline = editor.getGraphOutline();
          outline.setVisible(!outline.isVisible());
          outline.revalidate();

          SwingUtilities.invokeLater(new Runnable()
          {
            /*
             * (non-Javadoc)
             * @see java.lang.Runnable#run()
             */
            public void run()
            {
              if (outline.getParent() instanceof JSplitPane)
              {
                if (outline.isVisible())
                {
                  ((JSplitPane) outline.getParent())
                      .setDividerLocation(editor
                          .getHeight() - 300);
                  ((JSplitPane) outline.getParent())
                      .setDividerSize(6);
                }
                else
                {
                  ((JSplitPane) outline.getParent())
                      .setDividerSize(0);
                }
              }
            }
          });
View Full Code Here

Examples of com.mxgraph.swing.mxGraphOutline

    undoManager.addListener(mxEvent.UNDO, undoHandler);
    undoManager.addListener(mxEvent.REDO, undoHandler);

    // Creates the graph outline component
    graphOutline = new mxGraphOutline(graphComponent);

    // Creates the library pane that contains the tabs with the palettes
    libraryPane = new JTabbedPane();

    // Creates the inner split pane that contains the library with the
View Full Code Here

Examples of com.mxgraph.swing.mxGraphOutline

  public JViewport getViewport() {
    return graphView.getViewport();
  }

  public JComponent getMinimap() {
    return new mxGraphOutline(graphView);
  }
View Full Code Here

Examples of com.mxgraph.swing.mxGraphOutline

        /**
         *
         */
        public void actionPerformed(ActionEvent e)
        {
          final mxGraphOutline outline = editor.getGraphOutline();
          outline.setVisible(!outline.isVisible());
          outline.revalidate();

          SwingUtilities.invokeLater(new Runnable()
          {
            /*
             * (non-Javadoc)
             * @see java.lang.Runnable#run()
             */
            public void run()
            {
              if (outline.getParent() instanceof JSplitPane)
              {
                if (outline.isVisible())
                {
                  ((JSplitPane) outline.getParent())
                      .setDividerLocation(editor
                          .getHeight() - 300);
                  ((JSplitPane) outline.getParent())
                      .setDividerSize(6);
                }
                else
                {
                  ((JSplitPane) outline.getParent())
                      .setDividerSize(0);
                }
              }
            }
          });
View Full Code Here

Examples of com.mxgraph.swing.mxGraphOutline

    undoManager.addListener(mxEvent.UNDO, undoHandler);
    undoManager.addListener(mxEvent.REDO, undoHandler);

    // Creates the graph outline component
    graphOutline = new mxGraphOutline(graphComponent);

    // Creates the library pane that contains the tabs with the palettes
    libraryPane = new JTabbedPane();

    // Creates the inner split pane that contains the library with the
View Full Code Here

Examples of com.mxgraph.swing.mxGraphOutline

    new mxRubberband(graphComponent);
    // allow use keyboard
    new mxKeyboardHandler(graphComponent);

    // minimap
    graphOutline = new mxGraphOutline(graphComponent);
    MouseWheelListener wheelTracker = new MouseWheelListener() {

      public void mouseWheelMoved(MouseWheelEvent e) {
        if (e.getSource() instanceof mxGraphOutline || e.isControlDown()) {
          if (e.getWheelRotation() < 0) {
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.