| com.sun.perseus.demo.picturedecorator.ItemPicker
ItemPicker | public class ItemPicker extends Canvas (Code) | | The ItemPicker canvas creates thumbnails of the various props
from its associated props images and displays them in a grid.
The user can use the arrow keys to select a thumbnail (which gets highlighted)
and use the fire button to select the desired item or the '*' key to cancel
the picker.
|
Method Summary | |
public void | keyPressed(int keyCode) | static SVGRect | pad(SVGRect bbox) Helper method. | public void | paint(Graphics g) Repaints this canvas with the current item selected. |
SVG_NAMESPACE_URI | final public static String SVG_NAMESPACE_URI(Code) | | The SVG Namespace URI.
|
THUMBNAIL_HEIGHT | final public static int THUMBNAIL_HEIGHT(Code) | | Desired thumbnail height
|
THUMBNAIL_PADDING | final public static int THUMBNAIL_PADDING(Code) | | The desired padding for each thumbnail
|
THUMBNAIL_WIDTH | final public static int THUMBNAIL_WIDTH(Code) | | Desired thumbnail width
|
XLINK_NAMESPACE_URI | final public static String XLINK_NAMESPACE_URI(Code) | | The XLink Namespace URI.
|
ItemPicker | public ItemPicker(PhotoFrame frame, SVGImage svgImage, Display display)(Code) | | Parameters: frame - the associated PhotoFrame instance. Parameters: svgImage - the svgImage where items are defined. Parameters: svgImage - the SVGImage containing all the props definitions. |
keyPressed | public void keyPressed(int keyCode)(Code) | | |
pad | static SVGRect pad(SVGRect bbox)(Code) | | Helper method. Pads the input bounding box.
Parameters: bbox - the box to pad. |
paint | public void paint(Graphics g)(Code) | | Repaints this canvas with the current item selected.
Parameters: g - the Graphics to paint into. |
|
|