Examples of zoom()


Examples of aimax.osm.viewer.MapViewPane.zoom()

  }

  public void actionPerformed(ActionEvent e) {
    MapViewPane view = frame.getView();
    if (e.getSource() == zoomInButton) {
      view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == zoomOutButton) {
      view.zoom(0.5f, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == leftButton) {
      view.adjust((int) (0.3 * view.getWidth()), 0);
    } else if (e.getSource() == rightButton) {
View Full Code Here

Examples of aimax.osm.viewer.MapViewPane.zoom()

  public void actionPerformed(ActionEvent e) {
    MapViewPane view = frame.getView();
    if (e.getSource() == zoomInButton) {
      view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == zoomOutButton) {
      view.zoom(0.5f, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == leftButton) {
      view.adjust((int) (0.3 * view.getWidth()), 0);
    } else if (e.getSource() == rightButton) {
      view.adjust((int) (-0.3 * view.getWidth()), 0);
    else if (e.getSource() == upButton) {
View Full Code Here

Examples of com.bbn.openmap.MapBean.zoom()

        int rot = e.getWheelRotation();
        if (e.getSource() instanceof MapBean) {
            MapBean mb = (MapBean) e.getSource();
            if (rot > 0) {
                // Positive, zoom out
                mb.zoom(new ZoomEvent(mb, ZoomEvent.RELATIVE, 1.1f));
            } else {
                mb.zoom(new ZoomEvent(mb, ZoomEvent.RELATIVE, .9f));
            }
        }
    }
View Full Code Here

Examples of com.bbn.openmap.MapBean.zoom()

            MapBean mb = (MapBean) e.getSource();
            if (rot > 0) {
                // Positive, zoom out
                mb.zoom(new ZoomEvent(mb, ZoomEvent.RELATIVE, 1.1f));
            } else {
                mb.zoom(new ZoomEvent(mb, ZoomEvent.RELATIVE, .9f));
            }
        }
    }

    /**
 
View Full Code Here

Examples of ehistory.web.server.frontend.MapBean.zoom()

                int mapDeltaX = request.getMapDeltaX() == null ? 0 : request.getMapDeltaX();
                int mapDeltaY = request.getMapDeltaY() == null ? 0 : request.getMapDeltaY();
                mapBean.move(mapDeltaX, mapDeltaY);
            }
            if (request.getMapZoom() != null) {
                mapBean.zoom(request.getMapZoom());
            }
            map.setObjectsTitles(mapBean.getObjectTitles());
            map.setObjectsAreas(mapBean.getObjectsToIntArray());
            response.setMap(map);
        }
View Full Code Here

Examples of ehistory.web.server.frontend.TimeBean.zoom()

            TimeBean timeBean = clientBean.getTimeBean();
            if (request.getTimeDelta() != null) {
                timeBean.move(request.getTimeDelta());
            }
            if (request.getTimeZoom() != null) {
                timeBean.zoom(request.getTimeZoom());
            }
            if (request.getWidthChanged() != null) {
                timeBean.setWidth(request.getWidthChanged());
            }
            ticks.setTicks(timeBean.getTicks());
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPoint.zoom()

    // If the shape is rotated, the handler's position must fit the rotation angle.
    if(!LNumber.equalsDouble(rotAngle, 0.))
      pt = pt.rotatePoint(zoomedGC, rotAngle);

    point.setPoint(pt.zoom(zoom));
    super.update(sh, zoom);
  }


  @Override
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPoint.zoom()

    // If the shape is rotated, the handler's position must fit the rotation angle.
    if(!LNumber.equalsDouble(rotAngle, 0.))
      pt = pt.rotatePoint(zoomedGC, rotAngle);

    point.setPoint(pt.zoom(zoom).getMiddlePoint(zoomedGC));
    super.update(arc, zoom);
  }
}
View Full Code Here

Examples of org.jfree.chart.ChartPanel.zoom()

        JFreeChart chart = ChartFactory.createXYLineChart("TestChart", "X",
                "Y", dataset, PlotOrientation.VERTICAL, false, false, false);
        ChartPanel panel = new ChartPanel(chart);
        chart.addChangeListener(this);
        this.chartChangeEvents.clear();
        panel.zoom(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
        assertEquals(1, this.chartChangeEvents.size());
    }

    /**
     * Checks that a call to the zoomInBoth() method generates just one
View Full Code Here

Examples of org.jfree.chart.ChartPanel.zoom()

        JFreeChart chart = ChartFactory.createXYLineChart("TestChart", "X",
                "Y", dataset, PlotOrientation.VERTICAL, false, false, false);
        ChartPanel panel = new ChartPanel(chart);
        chart.addChangeListener(this);
        this.chartChangeEvents.clear();
        panel.zoom(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
        assertEquals(1, this.chartChangeEvents.size());
    }

    /**
     * Checks that a call to the zoomInBoth() method generates just one
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.