Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.plaf.basic
Class BasicOptionPaneUI.MessageIcon  view BasicOptionPaneUI.MessageIcon download BasicOptionPaneUI.MessageIcon.java

java.lang.Object
  extended byjavax.swing.plaf.basic.BasicOptionPaneUI.MessageIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
BasicOptionPaneUI

private static class BasicOptionPaneUI.MessageIcon
extends java.lang.Object
implements javax.swing.Icon

A helper class that implements Icon. This is used temporarily until ImageIcons are fixed.


Constructor Summary
private BasicOptionPaneUI.MessageIcon()
           
 
Method Summary
 int getIconHeight()
          This method returns the height of the icon.
 int getIconWidth()
          This method returns the width of the icon.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          This method paints the icon as a part of the given component using the given graphics and the given x and y position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicOptionPaneUI.MessageIcon

private BasicOptionPaneUI.MessageIcon()
Method Detail

getIconWidth

public int getIconWidth()
This method returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
This method returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
This method paints the icon as a part of the given component using the given graphics and the given x and y position.

Specified by:
paintIcon in interface javax.swing.Icon