Made getPuzzleFont() public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2895 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PuzzleBoardView.java,v 1.4 2003/11/26 23:06:05 mdb Exp $
|
// $Id: PuzzleBoardView.java,v 1.5 2003/12/05 05:15:03 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.puzzle.client;
|
package com.threerings.puzzle.client;
|
||||||
|
|
||||||
@@ -287,6 +287,17 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
|||||||
return FONT_SIZES.length;
|
return FONT_SIZES.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the puzzle font of the specified size.
|
||||||
|
*
|
||||||
|
* @param size the desired font size; a value between 0 and {@link
|
||||||
|
* #getPuzzleFontCount} - 1.
|
||||||
|
*/
|
||||||
|
public static Font getPuzzleFont (int size)
|
||||||
|
{
|
||||||
|
return _fonts[size];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Positions the supplied animation so as to avoid any active
|
* Positions the supplied animation so as to avoid any active
|
||||||
* animations previously registered with this method, and adds the
|
* animations previously registered with this method, and adds the
|
||||||
@@ -377,17 +388,6 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
|||||||
*/
|
*/
|
||||||
protected abstract void renderBoard (Graphics2D gfx, Rectangle dirty);
|
protected abstract void renderBoard (Graphics2D gfx, Rectangle dirty);
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the puzzle font of the specified size.
|
|
||||||
*
|
|
||||||
* @param size the desired font size; a value between 0 and {@link
|
|
||||||
* #getPuzzleFontCount} - 1.
|
|
||||||
*/
|
|
||||||
protected static Font getPuzzleFont (int size)
|
|
||||||
{
|
|
||||||
return _fonts[size];
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Our client context. */
|
/** Our client context. */
|
||||||
protected PuzzleContext _ctx;
|
protected PuzzleContext _ctx;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user