Hey Guy's i got the following Problem.

\n

alt text

\n

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

ImproSnake
30416
accept rate: 0%

edited 02 Jun '11, 04:22


Ok, i solved the Problem myself with :

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

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

\n
tView.setLocation(x,y);\n
\n

This maybe help some other.

link

answered 02 Jun '11, 23:59

ImproSnake's gravatar image

ImproSnake
30416
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

By RSS:

Answers

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

Tags:

×228
×194
×22

Asked: 02 Jun '11, 04:11

Seen: 2,406 times

Last updated: 02 Jun '11, 23:59