Skip navigation links
oracle.ide.controls
Class ForegroundSwappedIcon
java.lang.Object
javax.swing.ImageIcon
oracle.ide.controls.ForegroundSwappedIcon
- All Implemented Interfaces:
- java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon
-
public final class ForegroundSwappedIcon
- extends javax.swing.ImageIcon
An imageicon that swaps black for whatever the current foreground color is.
- Since:
- 11.0
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.ImageIcon |
javax.swing.ImageIcon.AccessibleImageIcon |
Fields inherited from class javax.swing.ImageIcon |
component, tracker |
Methods inherited from class javax.swing.ImageIcon |
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ForegroundSwappedIcon
public ForegroundSwappedIcon(javax.swing.Icon baseIcon,
java.awt.Color foregroundColor)
getBaseIcon
public javax.swing.Icon getBaseIcon()
getIconHeight
public int getIconHeight()
-
- Specified by:
getIconHeight
in interface javax.swing.Icon
- Overrides:
getIconHeight
in class javax.swing.ImageIcon
getIconWidth
public int getIconWidth()
-
- Specified by:
getIconWidth
in interface javax.swing.Icon
- Overrides:
getIconWidth
in class javax.swing.ImageIcon
getImage
public java.awt.Image getImage()
-
- Overrides:
getImage
in class javax.swing.ImageIcon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
-
- Specified by:
paintIcon
in interface javax.swing.Icon
- Overrides:
paintIcon
in class javax.swing.ImageIcon
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.