|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 filepublic FCImageIcon(File file, Image icon, String description)
file
- the file this icon representsicon
- the system icondescription
- system description of the fileMethod Detail |
---|
public int getIconHeight()
getIconHeight
in interface Icon
getIconHeight
in class ImageIcon
public int getIconWidth()
getIconWidth
in interface Icon
getIconWidth
in class ImageIcon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
paintIcon
in class ImageIcon
public File getFile()
public String getDescription()
getDescription
in class ImageIcon
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |