|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.ImageIcon
uic.widgets.filechooser.FCImageIcon
public class FCImageIcon
Special image icon that holds file information. Image icon that holds: a file object system icon system description
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.ImageIcon |
|---|
ImageIcon.AccessibleImageIcon |
| Field Summary |
|---|
| Fields inherited from class javax.swing.ImageIcon |
|---|
component, tracker |
| Constructor Summary | |
|---|---|
FCImageIcon(File file,
Icon icon,
String description)
Constructor. |
|
FCImageIcon(File file,
Image icon,
String description)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compared the filenames/types to make sorting possible. |
String |
getDescription()
Returns system description. |
File |
getFile()
Returns file this icon represents. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Overriden to paint the system icon |
| Methods inherited from class javax.swing.ImageIcon |
|---|
getAccessibleContext, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FCImageIcon(File file,
Icon icon,
String description)
file - the file this icon representsicon - the system icondescription - system description of the file
public FCImageIcon(File file,
Image icon,
String description)
file - the file this icon representsicon - the system icondescription - system description of the file| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface IcongetIconHeight in class ImageIconpublic int getIconWidth()
getIconWidth in interface IcongetIconWidth in class ImageIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface IconpaintIcon in class ImageIconpublic File getFile()
public String getDescription()
getDescription in class ImageIconpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||