MetaDone
metadone.client.grasyla2.visuallibrary.widgets.W_SVG Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.W_SVG:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.W_SVG:

List of all members.

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)

Detailed Description

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.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.W_SVG.W_SVG ( final Scene  scene,
final SVGDocument  background,
final Map< String,?extends Widget >  map 
)

Initializes this widget.

Parameters:
sceneThe scene
backgroundThe background SVG document
mapThe bindings of IDs to widgets
Exceptions:
NullPointerExceptionwhen background or map is null
ElementNotLocatableExceptionwhen 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().


Member Function Documentation

Dimension metadone.client.grasyla2.visuallibrary.widgets.W_SVG.getBackgroundImageSize ( )
void metadone.client.grasyla2.visuallibrary.widgets.W_SVG.idNotFound ( String  id,
Widget  widget 
) [protected]

Called when an element with an ID is not found.

Parameters:
idThe id
widgetThe 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.

Parameters:
pointThe point to transform
matrixThe transformation matrix

Referenced by metadone.client.grasyla2.visuallibrary.widgets.W_SVG.parseLocation().


Member Data Documentation

final String metadone.client.grasyla2.visuallibrary.widgets.W_SVG.NS_SODIPODI = "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations