public class LockIcon
extends javax.swing.ImageIcon
限定符和类型 | 字段和说明 |
---|---|
protected static java.awt.Component |
component |
protected static java.awt.MediaTracker |
tracker |
构造器和说明 |
---|
LockIcon(java.awt.Image mainImage) |
限定符和类型 | 方法和说明 |
---|---|
LockIcon |
getDisabledLockIcon() |
int |
getIconHeight()
Gets the height of the icon.
|
int |
getIconWidth()
Gets the width of the icon.
|
java.awt.Image |
getImage()
Returns this icon's
Image . |
protected void |
loadImage(java.awt.Image image)
Loads the image, returning only when the image is loaded.
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
protected static final java.awt.Component component
protected static final java.awt.MediaTracker tracker
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
在接口中 javax.swing.Icon
paintIcon
在类中 javax.swing.ImageIcon
protected void loadImage(java.awt.Image image)
loadImage
在类中 javax.swing.ImageIcon
image
- the imagepublic java.awt.Image getImage()
Image
.getImage
在类中 javax.swing.ImageIcon
Image
object for this ImageIcon
public LockIcon getDisabledLockIcon()
public int getIconWidth()
getIconWidth
在接口中 javax.swing.Icon
getIconWidth
在类中 javax.swing.ImageIcon
public int getIconHeight()
getIconHeight
在接口中 javax.swing.Icon
getIconHeight
在类中 javax.swing.ImageIcon