MetaDone
|
Classes | |
class | ElementNotLocatableException |
Public Member Functions | |
W_SVG (final Scene scene, final SVGDocument background, final Map< String,?extends Widget > map) | |
Dimension | getBackgroundImageSize () |
Protected Member Functions | |
void | idNotFound (String id, Widget widget) |
Static Protected Member Functions | |
static void | transformPoint (Point2D point, SVGMatrix matrix) |
Private Member Functions | |
SVGDocument | placeContents (SVGDocument doc, Map< String,?extends Widget > map) |
Static Private Member Functions | |
static Rectangle | parseLocation (SVGDocument doc, Element elem) |
Private Attributes | |
SVGImageWidget | background = null |
Static Private Attributes | |
static final String | NS_SODIPODI = "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
static final Logger | logger = Logger.getLogger(W_SVG.class) |
A widget which places other widgets on top of a SVG image.
The layout or the children of this widget should not be modified dynamically.
metadone.client.grasyla2.visuallibrary.widgets.W_SVG.W_SVG | ( | final Scene | scene, |
final SVGDocument | background, | ||
final Map< String,?extends Widget > | map | ||
) |
Initializes this widget.
scene | The scene |
background | The background SVG document |
map | The bindings of IDs to widgets |
NullPointerException | when background or map is null |
ElementNotLocatableException | when an ID replaced by a widget is not locatable |
References metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.addBackground(), metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.createImage(), and metadone.client.grasyla2.visuallibrary.widgets.W_SVG.placeContents().
Dimension metadone.client.grasyla2.visuallibrary.widgets.W_SVG.getBackgroundImageSize | ( | ) |
Gets the size of the background image.
References metadone.client.grasyla2.visuallibrary.widgets.W_SVG.background, and metadone.client.grasyla2.visuallibrary.widgets.backgrounds.SVGImageWidget.getImageSize().
void metadone.client.grasyla2.visuallibrary.widgets.W_SVG.idNotFound | ( | String | id, |
Widget | widget | ||
) | [protected] |
Called when an element with an ID is not found.
id | The id |
widget | The widget to put |
References metadone.client.grasyla2.visuallibrary.widgets.W_SVG.logger.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.W_SVG.placeContents().
static Rectangle metadone.client.grasyla2.visuallibrary.widgets.W_SVG.parseLocation | ( | SVGDocument | doc, |
Element | elem | ||
) | [static, private] |
SVGDocument metadone.client.grasyla2.visuallibrary.widgets.W_SVG.placeContents | ( | SVGDocument | doc, |
Map< String,?extends Widget > | map | ||
) | [private] |
static void metadone.client.grasyla2.visuallibrary.widgets.W_SVG.transformPoint | ( | Point2D | point, |
SVGMatrix | matrix | ||
) | [static, protected] |
Transforms a point using a matrix.
point | The point to transform |
matrix | The transformation matrix |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.W_SVG.parseLocation().
final Logger metadone.client.grasyla2.visuallibrary.widgets.W_SVG.logger = Logger.getLogger(W_SVG.class) [static, private] |
final String metadone.client.grasyla2.visuallibrary.widgets.W_SVG.NS_SODIPODI = "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" [static, private] |