Class LibraryItem

java.lang.Object
  |
  +--LibraryItem
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.Icon
Direct Known Subclasses:
Library, LibrarySymbol

public abstract class LibraryItem
extends java.lang.Object
implements javax.swing.Icon, java.awt.event.ActionListener


Field Summary
(package private) static int DEFAULTHEIGHT
           
(package private) static int DEFAULTWIDTH
           
(package private)  java.io.File file
           
(package private) static java.awt.Font font
           
(package private) static java.lang.String FONTFAMILY
           
(package private) static int FONTSIZE
           
(package private)  int height
           
(package private)  javax.swing.Icon icon
           
(package private)  Symbol iconsym
           
 java.lang.String name
           
(package private)  int nameheight
           
(package private)  int namewidth
           
(package private) static int STYLE
           
(package private)  LibraryUser user
           
 View view
           
(package private)  int width
           
 
Constructor Summary
LibraryItem(java.io.File itemfile, LibraryUser user)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
static LibraryItem getItem(java.io.File file, LibraryUser user)
           
 java.lang.String getName()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
(package private) static void panic(java.lang.Exception e)
           
 void setView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

font

static java.awt.Font font

icon

javax.swing.Icon icon

iconsym

Symbol iconsym

file

java.io.File file

DEFAULTHEIGHT

static int DEFAULTHEIGHT

DEFAULTWIDTH

static int DEFAULTWIDTH

height

int height

width

int width

nameheight

int nameheight

namewidth

int namewidth

view

public View view

user

transient LibraryUser user

name

public java.lang.String name

FONTFAMILY

static java.lang.String FONTFAMILY

STYLE

static int STYLE

FONTSIZE

static int FONTSIZE
Constructor Detail

LibraryItem

public LibraryItem(java.io.File itemfile,
                   LibraryUser user)
Method Detail

getName

public java.lang.String getName()

getItem

public static LibraryItem getItem(java.io.File file,
                                  LibraryUser user)

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

setView

public void setView()

panic

static void panic(java.lang.Exception e)