/**
* {@inheritDoc}
*/
public Object transcode(FXGNode fxgNode)
{
GraphicNode node = (GraphicNode)fxgNode;
DefineSprite sprite = createDefineSprite("Graphic");
spriteStack.push(sprite);
// Process mask (if present)
if (node.mask != null)
mask(node, sprite);
// Handle 'scale 9' grid definition
if (node.definesScaleGrid())
{
DefineScalingGrid grid = createDefineScalingGrid(node.getScalingGrid());
grid.scalingTarget = sprite;
sprite.scalingGrid = grid;
}
// Process child nodes