Hey Guy's i got the following Problem.


alt text


I got the Viewport, i want create the view, and move it, i know how to move it, but how to create, and how to make the Viewport un-resizable i dont know. I want this, because in my Application you can zoom In and Out. And now i want that the user have the opinion to move the view at the viewport via Drag&Drop(this is easy).\nmaybe someone of you could tell me how it could work.

asked 02 Jun '11, 04:11

ImproSnake's gravatar image

accept rate: 0%

edited 02 Jun '11, 04:22

Ok, i solved the Problem myself with :

Component tView = mxGraphComponent.getViewport().getView();\n

If i zoom know, it somm automatically in the View not in the Viewport.\nAnd i move the vie around with.


This maybe help some other.


answered 02 Jun '11, 23:59

ImproSnake's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 02 Jun '11, 04:11

Seen: 2,406 times

Last updated: 02 Jun '11, 23:59