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

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.smil.viewer.havi.HaviFocusManager

public class HaviFocusManager
extends java.lang.Object

Simple focus manager for Havi


Field Summary
protected  java.util.Vector linkFocusList
           
 
Constructor Summary
HaviFocusManager()
           
 
Method Summary
 void addFocusable(HNavigable link)
          Add a link component to a focus list.
protected  int calculateMidX(java.awt.Component comp)
           
protected  int calculateMidY(java.awt.Component comp)
           
 void createFocusGrid()
          Creates the focus grid, for all keys, up, down, left, right.
 void removeFocusable(HNavigable link)
          Remove a link component from a focus list.
protected  HNavigable searchDown(HNavigable origo)
          Searches down for the closest focus traversal.
protected  HNavigable searchLeft(HNavigable origo)
          Searches left for the closest focus traversal.
protected  HNavigable searchRight(HNavigable origo)
          Searches right for the closest focus traversal.
protected  HNavigable searchUp(HNavigable origo)
          Searches up for the closest focus traversal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linkFocusList

protected java.util.Vector linkFocusList
Constructor Detail

HaviFocusManager

public HaviFocusManager()
Method Detail

addFocusable

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

Parameters:
link - Link component, HNavigable

removeFocusable

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

Parameters:
link - Link component, HNavigable

searchUp

protected HNavigable searchUp(HNavigable origo)
Searches up for the closest focus traversal.

Returns:
HNavigable at the direction. (or null if not found)

searchDown

protected HNavigable searchDown(HNavigable origo)
Searches down for the closest focus traversal.

Returns:
HNavigable at the direction. (or null if not found)

searchLeft

protected HNavigable searchLeft(HNavigable origo)
Searches left for the closest focus traversal.

Returns:
HNavigable at the direction. (or null if not found)

searchRight

protected HNavigable searchRight(HNavigable origo)
Searches right for the closest focus traversal.

Returns:
HNavigable at the direction. (or null if not found)

calculateMidX

protected int calculateMidX(java.awt.Component comp)

calculateMidY

protected int calculateMidY(java.awt.Component comp)

createFocusGrid

public void createFocusGrid()
Creates the focus grid, for all keys, up, down, left, right.



X-Smiles 1.2