Added a method that exists in VirtualMediaPanel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3853 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -116,6 +116,15 @@ public class MediaPanel extends JComponent
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the bounds of the viewport, in media coordinates. For the base
|
||||||
|
* MediaPanel, this will always be (0, 0, width, height).
|
||||||
|
*/
|
||||||
|
public Rectangle getViewBounds ()
|
||||||
|
{
|
||||||
|
return new Rectangle(getWidth(), getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a reference to the animation manager used by this media
|
* Returns a reference to the animation manager used by this media
|
||||||
* panel.
|
* panel.
|
||||||
|
|||||||
Reference in New Issue
Block a user