fi.hut.tml.xsmiles.mlfc.smil.viewer.havi
Class HaviDecorator

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.havi.HaviDecorator
All Implemented Interfaces:
Decorator, FocusableLinkHandler

public class HaviDecorator
extends java.lang.Object
implements Decorator, FocusableLinkHandler


Constructor Summary
HaviDecorator()
           
 
Method Summary
 void addFocusableLink(HNavigable link)
          Add a link component to a focus list.
 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.
 void removeFocusableLink(HNavigable link)
          Remove a link component from a focus list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaviDecorator

public HaviDecorator()
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

addFocusableLink

public void addFocusableLink(HNavigable link)
Add a link component to a focus list.

Specified by:
addFocusableLink in interface FocusableLinkHandler
Parameters:
link - Link component, HNavigable

removeFocusableLink

public void removeFocusableLink(HNavigable link)
Remove a link component from a focus list. Causes the whole focus path to be recalculated.

Specified by:
removeFocusableLink in interface FocusableLinkHandler
Parameters:
link - Link component, HNavigable


X-Smiles 1.2