fi.hut.tml.xsmiles.mlfc.smil.viewer.awt
Class AWTDecorator

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.awt.AWTDecorator
All Implemented Interfaces:
Decorator

public class AWTDecorator
extends java.lang.Object
implements Decorator


Constructor Summary
AWTDecorator()
           
 
Method Summary
 void addToContainer(java.awt.Container scrollPanel, java.awt.Container container)
           
 java.awt.Container createRootLayout()
           
 java.awt.Container createScrollPanel(java.awt.Container rootLayout)
           
 void createSecondaryBorders(java.awt.Container rootLayout, java.awt.Container scrollPanel)
           
 BrushHandler getNewBrushHandler(Viewer v)
          Returns a new BrushHandler for SMIL core logic.
 DrawingArea getNewDrawingArea(int type, boolean block, java.awt.Container rootLayout, boolean layoutModel)
          Returns a new DrawingArea for SMIL core logic.
 MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
          Returns a new ForeignHandler for SMIL core logic.
 LinkHandler getNewLinkHandler()
          Returns a new LinkHandler for SMIL core logic.
 MediaHandler getNewMediaHandler()
          Returns a new MediaHandler for SMIL core logic.
 boolean isJMFAvailable(MLFCListener listener)
          Check if JMF class is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTDecorator

public AWTDecorator()
Method Detail

createRootLayout

public java.awt.Container createRootLayout()
Specified by:
createRootLayout in interface Decorator

createScrollPanel

public java.awt.Container createScrollPanel(java.awt.Container rootLayout)
Specified by:
createScrollPanel in interface Decorator

createSecondaryBorders

public void createSecondaryBorders(java.awt.Container rootLayout,
                                   java.awt.Container scrollPanel)
Specified by:
createSecondaryBorders in interface Decorator

addToContainer

public void addToContainer(java.awt.Container scrollPanel,
                           java.awt.Container container)
Specified by:
addToContainer in interface Decorator

getNewMediaHandler

public MediaHandler getNewMediaHandler()
Returns a new MediaHandler for SMIL core logic.

Specified by:
getNewMediaHandler in interface Decorator

getNewBrushHandler

public BrushHandler getNewBrushHandler(Viewer v)
Returns a new BrushHandler for SMIL core logic.

Specified by:
getNewBrushHandler in interface Decorator

getNewLinkHandler

public LinkHandler getNewLinkHandler()
Returns a new LinkHandler for SMIL core logic.

Specified by:
getNewLinkHandler in interface Decorator

getNewDrawingArea

public DrawingArea getNewDrawingArea(int type,
                                     boolean block,
                                     java.awt.Container rootLayout,
                                     boolean layoutModel)
Returns a new DrawingArea for SMIL core logic.

Specified by:
getNewDrawingArea in interface Decorator
Parameters:
type - ROOTLAYOUT for the broswer container, TOPLAYOUT for a new frame.
block - CSS: used to create a JBlockPanel (true) instead of JPanel (false)

getNewForeignHandler

public MediaHandler getNewForeignHandler(org.w3c.dom.Element e)
Returns a new ForeignHandler for SMIL core logic.

Specified by:
getNewForeignHandler in interface Decorator

isJMFAvailable

public boolean isJMFAvailable(MLFCListener listener)
Check if JMF class is available. At the same time, set the hint...

Specified by:
isJMFAvailable in interface Decorator
Returns:
true if JMF is available, false otherwise


X-Smiles 1.2