org.havi.ui
Class HVideoComponent

java.lang.Object
  extended byjava.awt.Component
      extended byorg.havi.ui.HComponent
          extended byorg.havi.ui.HVideoComponent
All Implemented Interfaces:
HMatteLayer, java.awt.image.ImageObserver, java.io.Serializable, TestOpacity

public class HVideoComponent
extends HComponent

HVideoComponent is an opaque class encapsulating the presentation of a video source within an application, i.e. contained within a conventional AWT hierarchy.

An HVideoComponent obeys all conventional java.awt.Component semantics, including being clipped by its parent container, etc. An HVideoComponent also obeys all HComponent semantics including Z-ordering, etc.


The parameters to the constructors are as follows, in cases where parameters are not used, then the constructor should use the default values.

Default parameter values exposed in the constructors

ParameterDescriptionDefault value Set methodGet method
None.

Default parameter values not exposed in the constructors

DescriptionDefault valueSet method Get method
None.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
protected HVideoComponent()
          It is not intended that applications should directly construct HVideoComponent objects.
 
Method Summary
 void addOnScreenLocationModifiedListener(HScreenLocationModifiedListener slml)
          Register a listener to determine if the Component's on-screen location is modified - irrespective of its relative location to its parent Container.
 HVideoDevice getVideoDevice()
          Returns the HVideoDevice that this HVideoComponent is associated with.
 void removeOnScreenLocationModifiedListener(HScreenLocationModifiedListener slml)
          Remove a listener that determines if the Component's on-screen location is modified - irrespective of its relative location to its parent Container.
 
Methods inherited from class org.havi.ui.HComponent
getMatte, isDoubleBuffered, isEnabled, isOpaque, processEvent, setEnabled, setMatte
 
Methods inherited from class java.awt.Component
addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, areFocusTraversalKeysSet, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, doLayout, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getCursor, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, hasFocus, imageUpdate, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, list, list, list, list, list, paint, paintAll, paramString, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, setBackground, setBounds, setBounds, setCursor, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HVideoComponent

protected HVideoComponent()
It is not intended that applications should directly construct HVideoComponent objects.

Creates an HVideoComponent object. See the class description for details of constructor parameters and default values.

Method Detail

getVideoDevice

public HVideoDevice getVideoDevice()
Returns the HVideoDevice that this HVideoComponent is associated with.

Returns:
the HVideoDevice that this HVideoComponent is associated with, or null if this cannot be determined.

addOnScreenLocationModifiedListener

public void addOnScreenLocationModifiedListener(HScreenLocationModifiedListener slml)
Register a listener to determine if the Component's on-screen location is modified - irrespective of its relative location to its parent Container. If the listener has already been added further calls will add further references to the listener, which will then receive multiple copies of a single event.

Parameters:
slml - listener to be notified when the on-screen location of the component is modified.

removeOnScreenLocationModifiedListener

public void removeOnScreenLocationModifiedListener(HScreenLocationModifiedListener slml)
Remove a listener that determines if the Component's on-screen location is modified - irrespective of its relative location to its parent Container. If the specified listener is not registered, the method has no effect. If multiple references to a single listener have been registered it should be noted that this method will only remove one reference per call.

Parameters:
slml - listener to be removed