Results 1 to 2 of 2
- 01-25-2013, 08:28 AM #1
Member
- Join Date
- Jan 2013
- Location
- South-Africa
- Posts
- 1
- Rep Power
- 0
How to scale the scrollpane's Vvalue
Hey
It is my first time using javaFX 2 and I am having problems with the scrollPane's Vvalue.
I am trying to keep track of the top left hand corner of the viewport because I want to render objects as I move around and I need to know the co-ordinates around the viewport.
The current compensation I am trying to use it:
Java Code:double tempX = ((scroll.hvalueProperty().get()) * CANVASSIZE) - ((scroll.hvalueProperty().get()) * scrollPaneWidth); double tempY = ((scroll.vvalueProperty().get()) * CANVASSIZE) - ((scroll.vvalueProperty().get()) * (scrollPaneHeight));
But this attempt is not 100% correct.
After this works I also scaling the scrollPane's content, so I also want to scale the x and y co-oordinates with the scale.
Does anyone have some insight in the problem?
Thanks.
Jacques
- 01-25-2013, 01:45 PM #2
Re: How to scale the scrollpane's Vvalue
Also posted at: How to scale the scrollpane's Vvalue
If you don't understand my response, don't ignore it, ask a question.
Similar Threads
-
forcing scrollpane to autoscroll
By yemista in forum AWT / SwingReplies: 6Last Post: 05-26-2012, 07:59 PM -
scrollPane to handle 24 hours time
By hariza in forum AWT / SwingReplies: 2Last Post: 10-15-2010, 05:56 AM -
how to add a scrollpane to Jframe
By yaminisankar in forum AWT / SwingReplies: 1Last Post: 07-09-2009, 09:56 AM -
ScrollPane Issues..
By hanifa in forum AWT / SwingReplies: 4Last Post: 09-11-2008, 08:18 AM -
scrollpane
By Newb in forum AWT / SwingReplies: 0Last Post: 06-09-2008, 12:14 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks