fi.hut.tml.xsmiles.mlfc.smil.viewer
Interface Decorator

All Known Implementing Classes:
AWTDecorator, HaviDecorator, SwingDecorator

public interface Decorator


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.
 

Method Detail

createRootLayout

public java.awt.Container createRootLayout()

createScrollPanel

public java.awt.Container createScrollPanel(java.awt.Container rootLayout)

createSecondaryBorders

public void createSecondaryBorders(java.awt.Container rootLayout,
                                   java.awt.Container scrollPanel)

addToContainer

public void addToContainer(java.awt.Container scrollPanel,
                           java.awt.Container container)

getNewMediaHandler

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


getNewBrushHandler

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


getNewLinkHandler

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


getNewDrawingArea

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

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.


isJMFAvailable

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

Returns:
true if JMF is available, false otherwise


X-Smiles 1.2