ij2x.plugin
Class ColorIcon
java.lang.Object
ij2x.plugin.ColorIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class ColorIcon
- extends java.lang.Object
- implements javax.swing.Icon
Title: ColorIcon
Description: implements Icon to draw a solid "iconWidth x iconHeight" block of the
specified color.
Copyright: Copyright (c)
Company: rawak.de
- Version:
- 1.0
- Author:
- ""
Constructor Summary |
ColorIcon()
|
ColorIcon(java.awt.Color color)
|
ColorIcon(java.awt.Color color,
int iconWidth,
int iconHeight)
|
ColorIcon(java.awt.Color color,
int iconWidth,
int iconHeight,
int iconWidth1,
int iconHeight1,
boolean modal)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorIcon
public ColorIcon(java.awt.Color color,
int iconWidth,
int iconHeight,
int iconWidth1,
int iconHeight1,
boolean modal)
- Parameters:
color
- is selected Icon Color
ColorIcon
public ColorIcon(java.awt.Color color,
int iconWidth,
int iconHeight)
- Parameters:
color
- is selected Icon Color
ColorIcon
public ColorIcon(java.awt.Color color)
- Parameters:
color
- is selected Icon Color
ColorIcon
public ColorIcon()
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color color)
getIconGC
public java.awt.Graphics2D getIconGC()
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
updateShape
public void updateShape()
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener p)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener p)