Java DTV API 1.0
12-Dec-2008

com.sun.dtv.ui
Class MatteEnabledComponent

java.lang.Object
  extended bycom.sun.lwuit.Component
      extended bycom.sun.dtv.ui.MatteEnabledComponent
All Implemented Interfaces:
Animated, MatteEnabled, StyleListener
Direct Known Subclasses:
ViewOnlyComponent

public abstract class MatteEnabledComponent
extends Component
implements MatteEnabled

This class extends the com.sun.lwuit.Component class by implementing the MatteEnabled interface.

See Also:
MatteEnabled

Field Summary
 
Fields inherited from class com.sun.lwuit.Component
BOTTOM, BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER, CENTER, LEFT, RIGHT, TOP
 
Fields inherited from interface com.sun.dtv.ui.Animated
ALTERNATING, LOOP, REPEATING
 
Constructor Summary
MatteEnabledComponent()
           
 
Method Summary
 Matte getMatte()
          Return the Matte currently associated with the component.
 boolean isDoubleBuffered()
          Returns true if double buffering is available and activated.
 boolean isOpaque()
          Returns true if the whole area of the Component (as returned by the com.sun.lwuit.Component#getBounds method, is opaque.
protected  void processEvent(AWTEvent event)
          Handle the specified AWTEvent.
 void setMatte(Matte matte)
          Adds an Matte to this component in order to enable matte compositing.
 
Methods inherited from class com.sun.lwuit.Component
addFocusListener, animate, calcPreferredSize, contains, deinitialize, fireClicked, getAbsoluteX, getAbsoluteY, getAnimationMode, getBaseline, getBaselineResizeBehavior, getBorder, getBottomGap, getBounds, getClientProperty, getComponentForm, getDelay, getHeight, getNextFocusDown, getNextFocusLeft, getNextFocusRight, getNextFocusUp, getParent, getPosition, getPreferredSize, getRepetitionMode, getScrollAnimationSpeed, getScrollX, getScrollY, getSideGap, getStyle, getUIID, getWidth, getX, getY, handlesInput, hasFocus, initComponent, isEnabled, isFocusable, isFocusPainted, isInitialized, isRunning, isScrollable, isScrollableX, isScrollableY, isScrollVisible, isSelectableInteraction, isSmoothScrolling, isVisible, jumpTo, keyPressed, keyReleased, keyRepeated, longKeyPress, paint, paintBackground, paintBackgrounds, paintBorder, paintComponent, paintComponent, paintScrollbars, paintScrollbarX, paintScrollbarY, paramString, pointerDragged, pointerPressed, pointerReleased, putClientProperty, refreshTheme, refreshTheme, removeFocusListener, repaint, repaint, requestFocus, scrollRectToVisible, setAnimationMode, setCellRenderer, setDelay, setEnabled, setFocus, setFocusable, setFocusPainted, setHandlesInput, setHeight, setInitialized, setIsScrollVisible, setNextFocusDown, setNextFocusLeft, setNextFocusRight, setNextFocusUp, setPreferredSize, setRepetitionMode, setScrollAnimationSpeed, setScrollX, setScrollY, setShouldCalcPreferredSize, setSize, setSmoothScrolling, setStyle, setVisible, setWidth, setX, setY, start, stop, styleChanged, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatteEnabledComponent

public MatteEnabledComponent()
Method Detail

setMatte

public void setMatte(Matte matte)
              throws MatteException
Adds an Matte to this component in order to enable matte compositing. If there is already a Matte assigned to the component, and this Matte is animated, it has to be stopped before any call to this method.

Specified by:
setMatte in interface MatteEnabled
Parameters:
matte - the Matte to be assigned to the component. At any point of time there can only be one matte associated to the component, that's way any matte that has been associated before will be overriden by a call to this method. The Matte parameter can also be null, in this case there is no matte associated with the component after the call, even if there had been one before.
Throws:
MatteException - if the Matte has an unsupported type, the platform does not support mattes at all, or an animated matte is associated with the component and is still running
See Also:
getMatte(), Matte

getMatte

public Matte getMatte()
Return the Matte currently associated with the component.

Specified by:
getMatte in interface MatteEnabled
Returns:
the Matte currently associated with the component or null if there is none
See Also:
setMatte(com.sun.dtv.ui.Matte)

isDoubleBuffered

public boolean isDoubleBuffered()
Returns true if double buffering is available and activated.

Returns:
true if double buffering is available and activated, and false otherwise

isOpaque

public boolean isOpaque()
Returns true if the whole area of the Component (as returned by the com.sun.lwuit.Component#getBounds method, is opaque.

Returns:
true if all the pixels within the area defined by the com.sun.lwuit.Component#getBounds method are opaque, i.e. all pixels are painted in an opaque color, false otherwise.

processEvent

protected void processEvent(AWTEvent event)
Handle the specified AWTEvent.

Parameters:
event - a java.awt.AWTEvent to handle.

Java DTV API 1.0
12-Dec-2008

Copyright © 2008 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.