com.mamarce.mhp.mf.components
Class MContainer

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by org.havi.ui.HContainer
              extended by com.mamarce.mhp.mf.components.MContainer
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, org.dvb.ui.TestOpacity, org.havi.ui.HComponentOrdering, org.havi.ui.HMatteLayer
Direct Known Subclasses:
ExitContainer, SlideContrainer

public class MContainer
extends org.havi.ui.HContainer

A graphical container that can be displayed on the TV screen.

Version:
1.0
Author:
frattallone
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
MContainer(java.awt.Point point, java.awt.Polygon p, java.awt.Color color)
          Alloacates a new MContainer at a specified position with a shape described by polygon and a backgroundColor.
MContainer(java.awt.Rectangle rectangle)
          Alloacates a new Container with a shape described by rectangle and a backgroundColor.
MContainer(java.awt.Rectangle rectangle, java.awt.Color color)
          Alloacates a new MContainer with a shape described by rectangle and a backgroundColor.
 
Method Summary
 void activate()
          Sets all the necessary resources to display a container.
 void paint(java.awt.Graphics g)
          It paints background color if it exists.
 void passivate()
          Sets all the necessary resources to hide a container.
 void setBackgroundColor(java.awt.Color color)
          Sets background color for this container.
 
Methods inherited from class org.havi.ui.HContainer
addAfter, addBefore, getMatte, group, isDoubleBuffered, isGrouped, isOpaque, pop, popInFrontOf, popToFront, push, pushBehind, pushToBack, setMatte, ungroup
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MContainer

public MContainer(java.awt.Point point,
                  java.awt.Polygon p,
                  java.awt.Color color)
Alloacates a new MContainer at a specified position with a shape described by polygon and a backgroundColor.

Parameters:
point - where to point the container.
p - the shape for the container.
color - background color for the container.

MContainer

public MContainer(java.awt.Rectangle rectangle,
                  java.awt.Color color)
Alloacates a new MContainer with a shape described by rectangle and a backgroundColor.

Parameters:
rectangle - coordinates for the container.
color - background color for the container.

MContainer

public MContainer(java.awt.Rectangle rectangle)
Alloacates a new Container with a shape described by rectangle and a backgroundColor.

Parameters:
rectangle - coordinates for the container.
Method Detail

setBackgroundColor

public final void setBackgroundColor(java.awt.Color color)
Sets background color for this container.

Parameters:
color - a Color instance representing background color for a container.

activate

public void activate()
Sets all the necessary resources to display a container.


passivate

public void passivate()
Sets all the necessary resources to hide a container.


paint

public void paint(java.awt.Graphics g)
It paints background color if it exists.

Overrides:
paint in class java.awt.Container
Parameters:
g - a Graphics object.