Package uk.ac.starlink.datanode.nodes
Class IconFactory
- java.lang.Object
-
- uk.ac.starlink.datanode.nodes.IconFactory
-
public class IconFactory extends java.lang.Object
ReturnsIcon
s for use in identifying objects.- Version:
- $Id$
- Author:
- Mark Taylor (Starlink)
-
-
Field Summary
Fields Modifier and Type Field Description static short
ARY0
static short
ARY1
static short
ARY2
static short
ARY3
static short
CASCADE
static short
CLOSE
static short
COMPRESSED
static short
DATA
static short
DELETE
static short
DEMO
static short
DIRECTORY
static short
DOWN
static short
ERROR
static short
EXCISE
static short
EXIT
static short
FILE
static short
FITS
static short
FRAME
static short
HANDLE_COLLAPSE
static short
HANDLE_EXPAND
static short
HANDLE1
static short
HANDLE2
static short
HDU
static short
HDX_CONTAINER
static short
HELP
static short
HIERARCH
static short
HISTORY
static short
HISTORY_RECORD
static short
HOME
static java.lang.String
IMAGE_PATH
static short
LEAF
static short
LOAD
static short
MYSPACE
static short
NDF
static short
NDX
static short
NO_ICON
static short
OPEN
static short
PARENT
static short
RELOAD
static short
SCALAR
static short
SKYFRAME
static short
SOG
static short
SPECFRAME
static short
SPLAT
static short
SPLIT_BELOW
static short
SPLIT_BESIDE
static short
SPLIT_NONE
static short
STAR_LOGO
static short
STARLINK_LOGO
static short
STOP
static short
STRUCTURE
static short
TABLE
static short
TARBRANCH
static short
TARFILE
static short
TOPCAT
static short
TREE
static short
TREE_LOGO
static short
UP
static short
VOCOMPONENT
static short
VOTABLE
static short
WCS
static short
WHAT
static short
XML_CDATA
static short
XML_COMMENT
static short
XML_DOCUMENT
static short
XML_DTD
static short
XML_ELEMENT
static short
XML_EREF
static short
XML_PI
static short
XML_STRING
static short
ZIPBRANCH
static short
ZIPFILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static short
getArrayIconID(int ndim)
static javax.swing.Icon
getIcon(short id)
Gets the icon with the given ID.static java.net.URL
getIconURL(short id)
Gets a URL for the icon with the given ID.
-
-
-
Field Detail
-
IMAGE_PATH
public static final java.lang.String IMAGE_PATH
- See Also:
- Constant Field Values
-
NO_ICON
public static final short NO_ICON
- See Also:
- Constant Field Values
-
STOP
public static final short STOP
- See Also:
- Constant Field Values
-
EXIT
public static final short EXIT
- See Also:
- Constant Field Values
-
HELP
public static final short HELP
- See Also:
- Constant Field Values
-
DEMO
public static final short DEMO
- See Also:
- Constant Field Values
-
LOAD
public static final short LOAD
- See Also:
- Constant Field Values
-
SPLIT_NONE
public static final short SPLIT_NONE
- See Also:
- Constant Field Values
-
SPLIT_BELOW
public static final short SPLIT_BELOW
- See Also:
- Constant Field Values
-
SPLIT_BESIDE
public static final short SPLIT_BESIDE
- See Also:
- Constant Field Values
-
CASCADE
public static final short CASCADE
- See Also:
- Constant Field Values
-
EXCISE
public static final short EXCISE
- See Also:
- Constant Field Values
-
OPEN
public static final short OPEN
- See Also:
- Constant Field Values
-
CLOSE
public static final short CLOSE
- See Also:
- Constant Field Values
-
RELOAD
public static final short RELOAD
- See Also:
- Constant Field Values
-
DELETE
public static final short DELETE
- See Also:
- Constant Field Values
-
UP
public static final short UP
- See Also:
- Constant Field Values
-
DOWN
public static final short DOWN
- See Also:
- Constant Field Values
-
HOME
public static final short HOME
- See Also:
- Constant Field Values
-
ARY0
public static final short ARY0
- See Also:
- Constant Field Values
-
ARY1
public static final short ARY1
- See Also:
- Constant Field Values
-
ARY2
public static final short ARY2
- See Also:
- Constant Field Values
-
ARY3
public static final short ARY3
- See Also:
- Constant Field Values
-
WHAT
public static final short WHAT
- See Also:
- Constant Field Values
-
LEAF
public static final short LEAF
- See Also:
- Constant Field Values
-
PARENT
public static final short PARENT
- See Also:
- Constant Field Values
-
SCALAR
public static final short SCALAR
- See Also:
- Constant Field Values
-
STRUCTURE
public static final short STRUCTURE
- See Also:
- Constant Field Values
-
FILE
public static final short FILE
- See Also:
- Constant Field Values
-
DIRECTORY
public static final short DIRECTORY
- See Also:
- Constant Field Values
-
NDF
public static final short NDF
- See Also:
- Constant Field Values
-
ZIPFILE
public static final short ZIPFILE
- See Also:
- Constant Field Values
-
ZIPBRANCH
public static final short ZIPBRANCH
- See Also:
- Constant Field Values
-
WCS
public static final short WCS
- See Also:
- Constant Field Values
-
FITS
public static final short FITS
- See Also:
- Constant Field Values
-
HDU
public static final short HDU
- See Also:
- Constant Field Values
-
FRAME
public static final short FRAME
- See Also:
- Constant Field Values
-
SKYFRAME
public static final short SKYFRAME
- See Also:
- Constant Field Values
-
HISTORY
public static final short HISTORY
- See Also:
- Constant Field Values
-
HISTORY_RECORD
public static final short HISTORY_RECORD
- See Also:
- Constant Field Values
-
TABLE
public static final short TABLE
- See Also:
- Constant Field Values
-
TREE
public static final short TREE
- See Also:
- Constant Field Values
-
ERROR
public static final short ERROR
- See Also:
- Constant Field Values
-
XML_DOCUMENT
public static final short XML_DOCUMENT
- See Also:
- Constant Field Values
-
XML_ELEMENT
public static final short XML_ELEMENT
- See Also:
- Constant Field Values
-
XML_COMMENT
public static final short XML_COMMENT
- See Also:
- Constant Field Values
-
XML_PI
public static final short XML_PI
- See Also:
- Constant Field Values
-
XML_CDATA
public static final short XML_CDATA
- See Also:
- Constant Field Values
-
XML_EREF
public static final short XML_EREF
- See Also:
- Constant Field Values
-
XML_STRING
public static final short XML_STRING
- See Also:
- Constant Field Values
-
XML_DTD
public static final short XML_DTD
- See Also:
- Constant Field Values
-
NDX
public static final short NDX
- See Also:
- Constant Field Values
-
HDX_CONTAINER
public static final short HDX_CONTAINER
- See Also:
- Constant Field Values
-
TARFILE
public static final short TARFILE
- See Also:
- Constant Field Values
-
TARBRANCH
public static final short TARBRANCH
- See Also:
- Constant Field Values
-
COMPRESSED
public static final short COMPRESSED
- See Also:
- Constant Field Values
-
DATA
public static final short DATA
- See Also:
- Constant Field Values
-
VOTABLE
public static final short VOTABLE
- See Also:
- Constant Field Values
-
VOCOMPONENT
public static final short VOCOMPONENT
- See Also:
- Constant Field Values
-
SPECFRAME
public static final short SPECFRAME
- See Also:
- Constant Field Values
-
MYSPACE
public static final short MYSPACE
- See Also:
- Constant Field Values
-
HIERARCH
public static final short HIERARCH
- See Also:
- Constant Field Values
-
SPLAT
public static final short SPLAT
- See Also:
- Constant Field Values
-
SOG
public static final short SOG
- See Also:
- Constant Field Values
-
TOPCAT
public static final short TOPCAT
- See Also:
- Constant Field Values
-
HANDLE_EXPAND
public static final short HANDLE_EXPAND
- See Also:
- Constant Field Values
-
HANDLE_COLLAPSE
public static final short HANDLE_COLLAPSE
- See Also:
- Constant Field Values
-
TREE_LOGO
public static final short TREE_LOGO
- See Also:
- Constant Field Values
-
STARLINK_LOGO
public static final short STARLINK_LOGO
- See Also:
- Constant Field Values
-
HANDLE1
public static final short HANDLE1
- See Also:
- Constant Field Values
-
HANDLE2
public static final short HANDLE2
- See Also:
- Constant Field Values
-
STAR_LOGO
public static final short STAR_LOGO
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIcon
public static javax.swing.Icon getIcon(short id)
Gets the icon with the given ID.- Throws:
java.lang.IllegalArgumentException
- if id is not one of the known icon identifiers
-
getIconURL
public static java.net.URL getIconURL(short id)
Gets a URL for the icon with the given ID. Note that the return may be null if the icon does not have a gif (because it is acquired directly from the UIManager for instance).- Parameters:
id
- icon identifier- Returns:
- the URL of the icon, or null
- Throws:
java.lang.IllegalArgumentException
- if id is not one of the known icon identifiers
-
getArrayIconID
public static short getArrayIconID(int ndim)
-
-