zooming

Zooming to a clicked node on a D3 Force Directed Graph

你。 提交于 2019-12-01 08:33:02
问题 I am trying to apply the van Wijk Smooth Zooming example to a D3 force-directed graph I am working that already has the drag+zoom functioning on it. However, I don't know how to get my current position in order to make that the starting point of the transform. The I have the same issue with trying to use a normal transform. I also tried looking at the click-to-zoom-transform but I wasn't sure how to apply that to a force-directed graph. There are a couple things I want to apply it to,

Android MapView - custom Zoom buttons

我与影子孤独终老i 提交于 2019-12-01 06:08:15
do you know, if there is a way how to make custom zoom buttons in Android's mapView? Or there are only prepreared zoom controls? Thanks Hmyzak You can set the default zoom controls to false ( mapView.setBuiltInZoomControls(false) ), add some buttons that are drawn on top of the map and have each button have a listener for when they are pressed. The MapView allows you to set the zoom level. One of the buttons could do a mapView.getController().zoomOut() , the other could do a mapView.getController().zoomIn() . If for some reason you need to find the zoom level, you can do a mapView

Wiki about android-zoom-view.jar

。_饼干妹妹 提交于 2019-12-01 06:05:53
Is there any Wiki or any documents on how to implement android-zoom-view.jar. I found it on http://code.google.com/p/android-zoom-view/ and i wanna try to use it on my application to implement zooming on android scrollview but it's giving me a hard time to do it since i cant find any Wiki about it. Any comments or suggestions are very much appreciated. Thanks in advance I wanna share my code on how to use the android-zoom-view.jar. This is how I use it. Create a new layout (R.layout.zoomable_view) for Views that i want to apply the zooming functionality. Place it inside ZoomView. Then place

Zooming / stretching a picturebox on current mouse position?

十年热恋 提交于 2019-12-01 06:01:28
问题 Q: How can I implement zooming on current mouse position over a picturebox, something like zooming in Google Maps? I am designing a simple GIS / map engine as my thesis work. The application is designed in such a way that the maps are being loaded into tabs of a sligtly modified tabcontrol. Maps are standard JPEG or PNG format digital images and most of them have very high resolutions (2000x2000px and up). They are loaded in pictureboxes that are added as subcontrols of tabpages. I've

What exactly changes in the css rendering, when desktop browsers zoom in or out on a website?

对着背影说爱祢 提交于 2019-12-01 03:09:01
In what way is the design scaled up or down? I'm trying to figure out what exactly happens at the CSS level, and what the consequences are for different sizing methods ( px , em , rem , etc). By the way, I am mainly concerned with zooming behaviour for modern desktop browsers. (I suspect mobile browser to be a straight enlargement of the whole page after rendering it normally, and know that old fashioned browsers just increment the base font-size). What isn't clear however, is what modern browsers (say the latest versions of Chrome or FF) do exactly when the user presses Ctrl + or Ctrl - . Do

Android MapView - custom Zoom buttons

淺唱寂寞╮ 提交于 2019-12-01 03:07:48
问题 do you know, if there is a way how to make custom zoom buttons in Android's mapView? Or there are only prepreared zoom controls? Thanks Hmyzak 回答1: You can set the default zoom controls to false ( mapView.setBuiltInZoomControls(false) ), add some buttons that are drawn on top of the map and have each button have a listener for when they are pressed. The MapView allows you to set the zoom level. One of the buttons could do a mapView.getController().zoomOut() , the other could do a mapView

how can i set maximum and minimum zooming levels for image in android?

六眼飞鱼酱① 提交于 2019-12-01 01:27:29
I have image zooming and dragging in my application my requirement is the image sets maximum and minimum zooming levels. I have used the below code. public class Touch extends Activity implements OnTouchListener { private static final String TAG = "Touch"; // These matrices will be used to move and zoom image Matrix matrix = new Matrix(); Matrix savedMatrix = new Matrix(); // We can be in one of these 3 states static final int NONE = 0; static final int DRAG = 1; static final int ZOOM = 2; int mode = NONE; static final float MAX_ZOOM = 5.0f; static final float MIN_ZOOM = 1.0f; // Remember some

Triple Nested UIScrollView paging issue

谁都会走 提交于 2019-11-30 23:30:05
Backstory I have an iPad app that needs to allow the user to navigate through groups of images. Each group is laid out in its own vertical UIScrollView (paged) so the user can swipe up and down down to see each image. Each of the group UIScrollViews is placed in a single (only one exists in the app) outer horizontal UIScrollView (also paged). This works great.... I can swipe up and down to view the images in a group and swipe left and right to go to the next or previous group. Problem The problem started when I needed to add zooming for each image. I accomplished this by placing each image

Is it possible to set dimensions to a groundOverlay that is independent of the map zoom level?

╄→гoц情女王★ 提交于 2019-11-30 21:26:28
I have a GroundOverlay on my GoogleMap and I want that its dimensions to not change when I zoom in/out on map. Exact like default map markers that always keep their dimensions. I have tried with both forms of the GroundOverlay.setDimensions() but the image is still resize on zoom. Here is my code: Bitmap btm = BitmapFactory.decodeResource(getResources(), R.drawable.map_arrow); BitmapDescriptor arrow = BitmapDescriptorFactory.fromBitmap(btm); float w = btm.getWidth(); float h = btm.getHeight(); if (groundOverlay != null) groundOverlay.remove(); groundOverlay = mMap.addGroundOverlay(new

JavaFX 8 Dynamic Node scaling

 ̄綄美尐妖づ 提交于 2019-11-30 20:17:53
I'm trying to implement a scene with a ScrollPane in which the user can drag a node around and scale it dynamically. I have the dragging and scaling with the mouse wheel working as well as a reset zoom, but I'm having trouble with the calculations to fit the node to the width of the parent. Here is my code as an sscce . (works) Mouse wheel will zoom in and out around the mouse pointer (works) Left or right mouse press to drag the rectangle around (works) Left double-click to reset the zoom (doesn't work) Right double-click to fit the width If I zoom in or out or change the window size, the fit