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
-
newEventsOnly
-
-
JMFPanel()
-
-
JMFPanel(Image)
- Create an Panel using the image specified.
-
debug(String)
- Calls System.out.println if the debug variable
is true; does nothing otherwise.
-
drawRect(Graphics, int, int, int, int, int, Color)
- Draws a rectangle with the specified OUTSIDE
left, top, width, and height.
-
getBorder()
- Gets the border width.
-
getBorderColor()
- Gets the border color.
-
getHeight()
- Gets the height (image height plus 2x border).
-
getImage()
- The Image associated with the ImageLabel.
-
getWidth()
- Gets the width (image width plus twice border).
-
isDebugging()
- Is the debugging flag set?
-
paint(Graphics)
- Draws the image.
-
readJarImage(String)
- Reads a image from a jar file.
-
setBorder(int)
- Sets the border thickness.
-
setBorderColor(Color)
- Sets the border color.
-
setIsDebugging(boolean)
- Set the debugging flag.
newEventsOnly
boolean newEventsOnly
JMFPanel
public JMFPanel()
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
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
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.
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.
getImage
public Image getImage()
- The Image associated with the ImageLabel.
getBorder
public int getBorder()
- Gets the border width.
setBorder
public void setBorder(int border)
- Sets the border thickness.
getBorderColor
public Color getBorderColor()
- Gets the border color.
setBorderColor
public void setBorderColor(Color borderColor)
- Sets the border color.
getWidth
public int getWidth()
- Gets the width (image width plus twice border).
getHeight
public int getHeight()
- Gets the height (image height plus 2x border).
readJarImage
public Image readJarImage(String jarFile)
- Reads a image from a jar file.
- Parameters:
- jar - filepath/name of the jar file.
- Returns:
- Image.
isDebugging
public boolean isDebugging()
- Is the debugging flag set?
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