All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.jmf.MultiPlayer.JMFPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.jmf.MultiPlayer.JMFPanel

public class JMFPanel
extends Panel
Sets the JMF icon in the center of the bean panel


Variable Index

 o newEventsOnly

Constructor Index

 o JMFPanel()
 o JMFPanel(Image)
Create an Panel using the image specified.

Method Index

 o debug(String)
Calls System.out.println if the debug variable is true; does nothing otherwise.
 o drawRect(Graphics, int, int, int, int, int, Color)
Draws a rectangle with the specified OUTSIDE left, top, width, and height.
 o getBorder()
Gets the border width.
 o getBorderColor()
Gets the border color.
 o getHeight()
Gets the height (image height plus 2x border).
 o getImage()
The Image associated with the ImageLabel.
 o getWidth()
Gets the width (image width plus twice border).
 o isDebugging()
Is the debugging flag set?
 o paint(Graphics)
Draws the image.
 o readJarImage(String)
Reads a image from a jar file.
 o setBorder(int)
Sets the border thickness.
 o setBorderColor(Color)
Sets the border color.
 o setIsDebugging(boolean)
Set the debugging flag.

Variables

 o newEventsOnly
 boolean newEventsOnly

Constructors

 o JMFPanel
 public JMFPanel()
 o JMFPanel
 public JMFPanel(Image image)
Create an Panel using the image specified. The other constructors eventually call this one, but you may want to call it directly if you already have an image (e.g. created via createImage).

Parameters:
image - The image

Methods

 o paint
 public void paint(Graphics g)
Draws the image. If you override this in a subclass, be sure to call super.paint.

Overrides:
paint in class Container
 o drawRect
 protected void drawRect(Graphics g,
                         int left,
                         int top,
                         int width,
                         int height,
                         int lineThickness,
                         Color rectangleColor)
Draws a rectangle with the specified OUTSIDE left, top, width, and height. Used to draw the border.

 o debug
 protected void debug(String message)
Calls System.out.println if the debug variable is true; does nothing otherwise.

Parameters:
message - The String to be printed.
 o getImage
 public Image getImage()
The Image associated with the ImageLabel.

 o getBorder
 public int getBorder()
Gets the border width.

 o setBorder
 public void setBorder(int border)
Sets the border thickness.

 o getBorderColor
 public Color getBorderColor()
Gets the border color.

 o setBorderColor
 public void setBorderColor(Color borderColor)
Sets the border color.

 o getWidth
 public int getWidth()
Gets the width (image width plus twice border).

 o getHeight
 public int getHeight()
Gets the height (image height plus 2x border).

 o readJarImage
 public Image readJarImage(String jarFile)
Reads a image from a jar file.

Parameters:
jar - filepath/name of the jar file.
Returns:
Image.
 o isDebugging
 public boolean isDebugging()
Is the debugging flag set?

 o setIsDebugging
 public void setIsDebugging(boolean debug)
Set the debugging flag. Verbose messages will be printed to System.out if this is true.


All Packages  Class Hierarchy  This Package  Previous  Next  Index