uk.ac.nott.cs.g54dia.library
Class DefaultTankerViewerIconFactory
java.lang.Object
uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
- All Implemented Interfaces:
- TankerViewerIconFactory
public class DefaultTankerViewerIconFactory
- extends java.lang.Object
- implements TankerViewerIconFactory
A default implementation of the TankerViewerIconFactory interface.
Field Summary |
(package private) static javax.swing.ImageIcon |
fuelpumpIcon
|
(package private) static javax.swing.ImageIcon |
stationIcon
|
(package private) static javax.swing.ImageIcon |
stationWithTaskIcon
|
(package private) static javax.swing.ImageIcon |
tankerIcon
|
(package private) static javax.swing.ImageIcon |
taskIcon
|
(package private) static javax.swing.ImageIcon |
wellIcon
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tankerIcon
static javax.swing.ImageIcon tankerIcon
fuelpumpIcon
static javax.swing.ImageIcon fuelpumpIcon
wellIcon
static javax.swing.ImageIcon wellIcon
taskIcon
static javax.swing.ImageIcon taskIcon
stationIcon
static javax.swing.ImageIcon stationIcon
stationWithTaskIcon
static javax.swing.ImageIcon stationWithTaskIcon
DefaultTankerViewerIconFactory
public DefaultTankerViewerIconFactory()
createImageIcon
protected static javax.swing.ImageIcon createImageIcon(java.lang.String path)
getIconForCell
public javax.swing.Icon getIconForCell(Cell cell)
- Description copied from interface:
TankerViewerIconFactory
- Select a suitable icon for the given cell.
- Specified by:
getIconForCell
in interface TankerViewerIconFactory
- Parameters:
cell
- The cell to select an icon for.
- Returns:
- An icon representing the cell.
getIconForTanker
public javax.swing.Icon getIconForTanker(Tanker tanker)
- Description copied from interface:
TankerViewerIconFactory
- Select an icon for a tanker.
- Specified by:
getIconForTanker
in interface TankerViewerIconFactory
- Parameters:
tanker
- The tanker to select an icon for.
- Returns:
- An icon representing the tanker.