org.fest.swing.driver
Class JSliderLocation

java.lang.Object
  extended by org.fest.swing.driver.JSliderLocation

public final class JSliderLocation
extends Object

Understands a location in a JSlider.

Author:
Alex Ruiz, Yvonne Wang

Constructor Summary
JSliderLocation()
           
 
Method Summary
 Point pointAt(JSlider slider, int value)
          Returns the coordinates of the given value in the given JSlider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSliderLocation

public JSliderLocation()
Method Detail

pointAt

@RunsInCurrentThread
public Point pointAt(JSlider slider,
                                         int value)
Returns the coordinates of the given value in the given JSlider.

Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.

Parameters:
slider - the given JSlider.
value - the given value.
Returns:
the coordinates of the given value in the given JSlider.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.