Examples of fromScreen()


Examples of org.jgraph.JGraph.fromScreen()

            double dx = 0, dy = 0;

            // Cloned via Drag and Drop
            if (nested != null) {
              if (p != null && bounds != null) {
                Point2D insert = graph.fromScreen(graph
                    .snap((Point2D) p.clone()));
                dx = insert.getX() - bounds.getX();
                dy = insert.getY() - bounds.getY();

                // Cloned via Clipboard
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

          } else {

            // Moved via Drag and Drop
            if (p != null) {
              // Scale insertion location
              Point2D insert = graph.fromScreen(graph
                  .snap(new Point(p)));

              // Compute translation vector and translate all
              // attribute maps.
              if (bounds != null && nested != null) {
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

            "MarqueeHandler cannot "
              + "handle event from unknown source: "
              + e);
        JGraph graph = (JGraph) e.getSource();
        Rectangle2D bounds =
          graph.fromScreen((Rectangle2D) marqueeBounds.clone());
        handleMarqueeEvent(e, graph, bounds);
        graph.setCursor(previousCursor);
        Rectangle dirty =
          new Rectangle(
            (int) marqueeBounds.getX(),
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

            double dx = 0, dy = 0;

            // Cloned via Drag and Drop
            if (nested != null) {
              if (p != null && bounds != null) {
                Point2D insert = graph.fromScreen(graph
                    .snap((Point2D) p.clone()));
                dx = insert.getX() - bounds.getX();
                dy = insert.getY() - bounds.getY();

                // Cloned via Clipboard
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

          else {

            // Moved via Drag and Drop
            if (p != null) {
              // Scale insertion location
              Point2D insert = graph.fromScreen(graph
                  .snap(new Point(p)));

              // Compute translation vector and translate all
              // attribute maps.
              if (bounds != null && nested != null) {
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

      if (e != null && marqueeBounds != null) {
        if (!(e.getSource() instanceof JGraph))
          throw new IllegalArgumentException("MarqueeHandler cannot "
              + "handle event from unknown source: " + e);
        JGraph graph = (JGraph) e.getSource();
        Rectangle2D bounds = graph
            .fromScreen((Rectangle2D) marqueeBounds.clone());
        handleMarqueeEvent(e, graph, bounds);
        graph.setCursor(previousCursor);
        Rectangle dirty = new Rectangle((int) marqueeBounds.getX(),
            (int) marqueeBounds.getY(), (int) marqueeBounds
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

            double dx = 0, dy = 0;

            // Cloned via Drag and Drop
            if (nested != null) {
              if (p != null && bounds != null) {
                Point2D insert = graph.fromScreen(graph
                    .snap((Point2D) p.clone()));
                dx = insert.getX() - bounds.getX();
                dy = insert.getY() - bounds.getY();

                // Cloned via Clipboard
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

          else {

            // Moved via Drag and Drop
            if (p != null) {
              // Scale insertion location
              Point2D insert = graph.fromScreen(graph
                  .snap(new Point(p)));

              // Compute translation vector and translate all
              // attribute maps.
              if (bounds != null && nested != null) {
View Full Code Here

Examples of org.jgraph.JGraph.fromScreen()

      if (e != null && marqueeBounds != null) {
        if (!(e.getSource() instanceof JGraph))
          throw new IllegalArgumentException("MarqueeHandler cannot "
              + "handle event from unknown source: " + e);
        JGraph graph = (JGraph) e.getSource();
        Rectangle2D bounds = graph
            .fromScreen((Rectangle2D) marqueeBounds.clone());
        handleMarqueeEvent(e, graph, bounds);
        graph.setCursor(previousCursor);
        Rectangle dirty = new Rectangle((int) marqueeBounds.getX(),
            (int) marqueeBounds.getY(), (int) marqueeBounds
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.