public class VirtualRangeModel extends Object implements ChangeListener
BoundedRangeModel interface to a virtual media panel
so that it can easily be wired up to scroll bars or other scrolling
controls.| Constructor and Description |
|---|
VirtualRangeModel(VirtualMediaPanel panel)
Creates a virtual media panel range model that will interact with
the supplied virtual media panel.
|
| Modifier and Type | Method and Description |
|---|---|
BoundedRangeModel |
getHorizModel()
Returns a range model that controls the scrollability of the scene
in the horizontal direction.
|
BoundedRangeModel |
getVertModel()
Returns a range model that controls the scrollability of the scene
in the vertical direction.
|
void |
setScrollableArea(int x,
int y,
int width,
int height)
Informs the virtual range model the extent of the area over which
we can scroll.
|
void |
stateChanged(ChangeEvent e) |
public VirtualRangeModel(VirtualMediaPanel panel)
public void setScrollableArea(int x,
int y,
int width,
int height)
public BoundedRangeModel getHorizModel()
public BoundedRangeModel getVertModel()
public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerCopyright © 2015. All rights reserved.