Package uk.ac.starlink.topcat
Class ResourceIcon
- java.lang.Object
-
- uk.ac.starlink.topcat.ResourceIcon
-
- All Implemented Interfaces:
javax.swing.Icon
public class ResourceIcon extends java.lang.Object implements javax.swing.Icon
Handles the procurement of icons and other graphics for the TableViewer and related classes. All the icons required by these classes are provided as static final members of this class.This class should really implement
Icon
rather than extendingImageIcon
. However in Sun's J2SE1.4 AbstractButton implementation there is a bit where it will only grey out the icon if it actually is an ImageIcon. So we inherit from there.- Author:
- Mark Taylor (Starlink)
-
-
Field Summary
Fields Modifier and Type Field Description static javax.swing.ImageIcon
ACTIVATE
static javax.swing.ImageIcon
ACTIVATE_SEQ
static javax.swing.ImageIcon
ACTIVATE_SEQ_ALL
static javax.swing.ImageIcon
ADD
static javax.swing.ImageIcon
ADD_COLORS
static javax.swing.ImageIcon
ADD_CONTROL
static javax.swing.ImageIcon
ADD_TAB
static javax.swing.ImageIcon
ADDSKY
static javax.swing.ImageIcon
ANTIALIAS
static javax.swing.ImageIcon
APPLY_SUBSET
static javax.swing.ImageIcon
APPROVE_ALL
static javax.swing.ImageIcon
ASTROGRID_LOGO
static javax.swing.ImageIcon
AUX_LOCK
static javax.swing.ImageIcon
AXIS_CONFIG
static javax.swing.ImageIcon
AXIS_EDIT
static javax.swing.ImageIcon
AXIS_LOCK
static javax.swing.ImageIcon
BACKWARD
static javax.swing.ImageIcon
BASTI
static javax.swing.Icon
BLANK
Blank icon.static javax.swing.ImageIcon
BLOB_SUBSET
static javax.swing.ImageIcon
BLOB_SUBSET_END
static javax.swing.ImageIcon
BRISTOL_LOGO
static javax.swing.ImageIcon
BROADCAST
static javax.swing.ImageIcon
CANCEL_SEQ
static javax.swing.ImageIcon
CDSXMATCH
static javax.swing.ImageIcon
CLASSIFY
static javax.swing.ImageIcon
CLEAR
static javax.swing.ImageIcon
CLOSE
static javax.swing.ImageIcon
COLLAPSED
static javax.swing.ImageIcon
COLOR
static javax.swing.ImageIcon
COLOR_LOG
static javax.swing.ImageIcon
COLORS
static javax.swing.ImageIcon
COLUMNS
static javax.swing.ImageIcon
CONCAT
static javax.swing.ImageIcon
CONNECT
static javax.swing.ImageIcon
CONSTANT_NODE
static javax.swing.ImageIcon
CONTROL
static javax.swing.ImageIcon
COPY
static javax.swing.ImageIcon
COUNT
static javax.swing.ImageIcon
CUMULATIVE
static javax.swing.ImageIcon
DATALINK
static javax.swing.ImageIcon
DELETE
static javax.swing.ImageIcon
DELETE_COLUMN
static javax.swing.ImageIcon
DELETE_INACTIVE
static javax.swing.ImageIcon
DEMO
static javax.swing.ImageIcon
DENSITY
static javax.swing.ImageIcon
DISCONNECT
static javax.swing.ImageIcon
DO_WHAT
static javax.swing.ImageIcon
DOWN
static javax.swing.ImageIcon
DOWN_TRIM
static javax.swing.ImageIcon
dummy
static javax.swing.ImageIcon
EQUATION
static javax.swing.ImageIcon
ESA_LOGO
static javax.swing.ImageIcon
EU_LOGO
static javax.swing.ImageIcon
EXCLUDE_ROWS
static javax.swing.ImageIcon
EXIT
static javax.swing.ImageIcon
EXPANDED
static javax.swing.ImageIcon
EXPLODE
static javax.swing.ImageIcon
FINE
static javax.swing.ImageIcon
FITS
static javax.swing.ImageIcon
FLOAT
static javax.swing.ImageIcon
FOG
static javax.swing.ImageIcon
FOLDER_NODE
static javax.swing.ImageIcon
FOOTPRINT
static javax.swing.ImageIcon
FORWARD
static javax.swing.ImageIcon
FRAME_CONFIG
static javax.swing.ImageIcon
FUNCTION
static javax.swing.ImageIcon
FUNCTION_NODE
static javax.swing.ImageIcon
GAVO
static javax.swing.ImageIcon
GAVO_LOGO
static javax.swing.ImageIcon
GRID_OFF
static javax.swing.ImageIcon
GRID_ON
static javax.swing.ImageIcon
HEAD
static javax.swing.ImageIcon
HELP
static javax.swing.ImageIcon
HELP_BROWSER
static javax.swing.ImageIcon
HIDE
static javax.swing.ImageIcon
HIDE_ALL
static javax.swing.ImageIcon
HIDE_ALL_TINY
static javax.swing.ImageIcon
HIDE_WINDOWS
static javax.swing.ImageIcon
HIGHLIGHT
static javax.swing.ImageIcon
HISTO_IMPORT
static javax.swing.ImageIcon
HISTO_SAVE
static javax.swing.ImageIcon
HISTOBARS
static javax.swing.ImageIcon
HISTOGRAM
static javax.swing.ImageIcon
HOME
static javax.swing.ImageIcon
IMAGE
static javax.swing.ImageIcon
IMPORT
static javax.swing.ImageIcon
IMPORT_OVERLAY
static javax.swing.ImageIcon
INCLUDE_ROWS
static javax.swing.ImageIcon
INVERT
static javax.swing.ImageIcon
JEL_VISIBLE_SUBSET
static javax.swing.ImageIcon
JPEG
static javax.swing.ImageIcon
KEEP_OPEN
static javax.swing.ImageIcon
LABEL
static javax.swing.ImageIcon
LEGEND
static javax.swing.ImageIcon
LIBRARY_NODE
static javax.swing.ImageIcon
LISTEN
static javax.swing.ImageIcon
LOAD
static javax.swing.ImageIcon
LOCK
static javax.swing.ImageIcon
LOG
static javax.swing.ImageIcon
MANUAL
static javax.swing.ImageIcon
MANUAL_BROWSER
static javax.swing.ImageIcon
MANUAL1_BROWSER
static javax.swing.ImageIcon
MATCH1
static javax.swing.ImageIcon
MATCH2
static javax.swing.ImageIcon
MATCHN
static javax.swing.ImageIcon
MATCHPLOT
static javax.swing.ImageIcon
MEASURE
static javax.swing.ImageIcon
MODIFY
static javax.swing.ImageIcon
MOVE_DOWN
static javax.swing.ImageIcon
MOVE_UP
static javax.swing.ImageIcon
MULTICONE
static javax.swing.ImageIcon
MULTISIA
static javax.swing.ImageIcon
MULTISSA
static javax.swing.ImageIcon
NAV_DEC
static javax.swing.ImageIcon
NAV_HELP
static javax.swing.ImageIcon
NO_HUB
static javax.swing.ImageIcon
NORMALISE
static javax.swing.ImageIcon
NORTH
static javax.swing.ImageIcon
PAGE_SETUP
static javax.swing.ImageIcon
PARAMS
static javax.swing.ImageIcon
PAUSE_SEQ
static javax.swing.ImageIcon
PDF
static javax.swing.ImageIcon
PLOT
static javax.swing.ImageIcon
PLOT_AREA
static javax.swing.ImageIcon
PLOT_DATA
static javax.swing.ImageIcon
PLOT_HISTO
static javax.swing.ImageIcon
PLOT_PAIR
static javax.swing.ImageIcon
PLOT_QUAD
static javax.swing.ImageIcon
PLOT2_CUBE
static javax.swing.ImageIcon
PLOT2_HISTOGRAM
static javax.swing.ImageIcon
PLOT2_PLANE
static javax.swing.ImageIcon
PLOT2_SKY
static javax.swing.ImageIcon
PLOT2_SPHERE
static javax.swing.ImageIcon
PLOT2_TIME
static javax.swing.ImageIcon
PLOT3D
static javax.swing.ImageIcon
POLY_SUBSET
static javax.swing.ImageIcon
POLY_SUBSET_END
static java.lang.String
PREFIX
Location of image resource files relative to this class.static javax.swing.ImageIcon
PRINT
static javax.swing.ImageIcon
PRINT_ZIP
static javax.swing.ImageIcon
PROFILE
static javax.swing.ImageIcon
PROGRESS
static javax.swing.ImageIcon
RADIAL
static javax.swing.ImageIcon
RANGE_SUBSET
static javax.swing.ImageIcon
REACTIVATE
static javax.swing.ImageIcon
REACTIVATE_ALL
static javax.swing.ImageIcon
RECOUNT
static javax.swing.ImageIcon
REDO
static javax.swing.ImageIcon
REMOVE_COLORS
static javax.swing.ImageIcon
REMOVE_TAB
static javax.swing.ImageIcon
RESIZE
static javax.swing.ImageIcon
RESIZE_X
static javax.swing.ImageIcon
RESIZE_Y
static javax.swing.ImageIcon
REVEAL
static javax.swing.ImageIcon
REVEAL_ALL
static javax.swing.ImageIcon
REVEAL_ALL_TINY
static javax.swing.ImageIcon
ROUGH
static javax.swing.ImageIcon
SAMP
static javax.swing.ImageIcon
SAMPLE
static javax.swing.ImageIcon
SAVE
static javax.swing.ImageIcon
SAVE_OVERLAY
static javax.swing.ImageIcon
SCROLLER
static javax.swing.ImageIcon
SEARCH
static javax.swing.ImageIcon
SEND
static javax.swing.ImageIcon
SKETCH
static javax.swing.ImageIcon
SMALL_CLOSE
static javax.swing.ImageIcon
SMALL_HELP
static javax.swing.ImageIcon
SPHERE
static javax.swing.ImageIcon
SPLIT
static javax.swing.ImageIcon
STACK
static javax.swing.ImageIcon
STAR_LOGO
static javax.swing.ImageIcon
STARLINK
static javax.swing.ImageIcon
STATS
static javax.swing.ImageIcon
STFC_LOGO
static javax.swing.ImageIcon
STILTS
static javax.swing.ImageIcon
SUBSETS
static javax.swing.ImageIcon
SUBTRACT
static javax.swing.ImageIcon
SYNTAX
static javax.swing.ImageIcon
SYSTEM
static javax.swing.ImageIcon
TABLE
static javax.swing.ImageIcon
TAIL
static javax.swing.ImageIcon
TO_BROWSER
static javax.swing.ImageIcon
TO_COLUMN
static javax.swing.ImageIcon
TOPCAT_LOGO
static javax.swing.ImageIcon
TOPCAT_LOGO_SMALL
static javax.swing.ImageIcon
TOPCAT_LOGO_XM
static javax.swing.ImageIcon
TOPCAT_LOGO_XM_SMALL
static javax.swing.ImageIcon
TREE_DIALOG
static javax.swing.ImageIcon
TUNING
static javax.swing.ImageIcon
TV_DOWN
static javax.swing.ImageIcon
TV_UP
static javax.swing.ImageIcon
UNSORT
static javax.swing.ImageIcon
UP
static javax.swing.ImageIcon
UP_DOWN
static javax.swing.ImageIcon
UP_TRIM
static javax.swing.ImageIcon
VIEWER
static javax.swing.ImageIcon
VISIBLE_SUBSET
static javax.swing.ImageIcon
VIZIER
static javax.swing.ImageIcon
VIZIER_LOGO
static javax.swing.ImageIcon
VOTECH_LOGO
static javax.swing.ImageIcon
WARNING
static javax.swing.ImageIcon
WEIGHT
static javax.swing.ImageIcon
XFLIP
static javax.swing.ImageIcon
XLOG
static javax.swing.ImageIcon
XRANGE_SUBSET
static javax.swing.ImageIcon
XYZ
static javax.swing.ImageIcon
Y_CURSOR
static javax.swing.ImageIcon
Y0_LINE
static javax.swing.ImageIcon
YFLIP
static javax.swing.ImageIcon
YLOG
static javax.swing.ImageIcon
ZOOM_IN
static javax.swing.ImageIcon
ZOOM_OUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkResourcesPresent()
Checks that all the required resource files are present for this class.static javax.swing.ImageIcon
combineIcons(javax.swing.Icon[] icons)
Paints a stack of icons on top of each other and returns the result.java.net.URL
getExternalURL()
Returns a URL from which this icon can be retrieved by external applications.int
getIconHeight()
int
getIconWidth()
java.awt.Image
getImage()
Returns an Image for this icon if it can, or null if it can't for some reason.static javax.swing.Icon
getTopcatLogo()
Returns a full-size TOPCAT logo for display.static javax.swing.Icon
getTopcatLogoSmall()
Returns an icon-size TOPCAT logo.java.net.URL
getURL()
Returns the URL for the image that forms this icon; it is called PREFIX + location relative to this class.static void
main(java.lang.String[] args)
Invokes thewriteHelpMapXML(java.io.OutputStream, java.lang.String)
method to standard output.void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
static javax.swing.ImageIcon
toAddIcon(javax.swing.Icon baseIcon)
Doctors an icon representing a control to look like it means adding that control.static javax.swing.ImageIcon
toImportIcon(javax.swing.Icon baseIcon)
Doctors an icon look like it means importing a table associated with that icon.static javax.swing.ImageIcon
toSaveIcon(javax.swing.Icon baseIcon)
Doctors an icon look like it means saving data associated with that icon.static void
writeHelpMapXML(java.io.OutputStream ostrm, java.lang.String prefix)
Writes the <mapID> elements required for a JavaHelp map file representing the icons represented by this class.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
Location of image resource files relative to this class.- See Also:
- Constant Field Values
-
DO_WHAT
public static final javax.swing.ImageIcon DO_WHAT
-
STARLINK
public static final javax.swing.ImageIcon STARLINK
-
TABLE
public static final javax.swing.ImageIcon TABLE
-
TOPCAT_LOGO
public static final javax.swing.ImageIcon TOPCAT_LOGO
-
TOPCAT_LOGO_SMALL
public static final javax.swing.ImageIcon TOPCAT_LOGO_SMALL
-
TOPCAT_LOGO_XM
public static final javax.swing.ImageIcon TOPCAT_LOGO_XM
-
TOPCAT_LOGO_XM_SMALL
public static final javax.swing.ImageIcon TOPCAT_LOGO_XM_SMALL
-
STAR_LOGO
public static final javax.swing.ImageIcon STAR_LOGO
-
ASTROGRID_LOGO
public static final javax.swing.ImageIcon ASTROGRID_LOGO
-
BRISTOL_LOGO
public static final javax.swing.ImageIcon BRISTOL_LOGO
-
VOTECH_LOGO
public static final javax.swing.ImageIcon VOTECH_LOGO
-
STFC_LOGO
public static final javax.swing.ImageIcon STFC_LOGO
-
GAVO_LOGO
public static final javax.swing.ImageIcon GAVO_LOGO
-
ESA_LOGO
public static final javax.swing.ImageIcon ESA_LOGO
-
VIZIER_LOGO
public static final javax.swing.ImageIcon VIZIER_LOGO
-
EU_LOGO
public static final javax.swing.ImageIcon EU_LOGO
-
CLOSE
public static final javax.swing.ImageIcon CLOSE
-
EXIT
public static final javax.swing.ImageIcon EXIT
-
LOAD
public static final javax.swing.ImageIcon LOAD
-
SAVE
public static final javax.swing.ImageIcon SAVE
-
IMPORT
public static final javax.swing.ImageIcon IMPORT
-
PRINT
public static final javax.swing.ImageIcon PRINT
-
PRINT_ZIP
public static final javax.swing.ImageIcon PRINT_ZIP
-
IMAGE
public static final javax.swing.ImageIcon IMAGE
-
FITS
public static final javax.swing.ImageIcon FITS
-
COPY
public static final javax.swing.ImageIcon COPY
-
REDO
public static final javax.swing.ImageIcon REDO
-
ADD
public static final javax.swing.ImageIcon ADD
-
SUBTRACT
public static final javax.swing.ImageIcon SUBTRACT
-
DELETE
public static final javax.swing.ImageIcon DELETE
-
HELP
public static final javax.swing.ImageIcon HELP
-
HELP_BROWSER
public static final javax.swing.ImageIcon HELP_BROWSER
-
DEMO
public static final javax.swing.ImageIcon DEMO
-
HIDE
public static final javax.swing.ImageIcon HIDE
-
REVEAL
public static final javax.swing.ImageIcon REVEAL
-
HIDE_ALL
public static final javax.swing.ImageIcon HIDE_ALL
-
REVEAL_ALL
public static final javax.swing.ImageIcon REVEAL_ALL
-
HIDE_ALL_TINY
public static final javax.swing.ImageIcon HIDE_ALL_TINY
-
REVEAL_ALL_TINY
public static final javax.swing.ImageIcon REVEAL_ALL_TINY
-
MODIFY
public static final javax.swing.ImageIcon MODIFY
-
SEARCH
public static final javax.swing.ImageIcon SEARCH
-
LOG
public static final javax.swing.ImageIcon LOG
-
CLEAR
public static final javax.swing.ImageIcon CLEAR
-
HIDE_WINDOWS
public static final javax.swing.ImageIcon HIDE_WINDOWS
-
SCROLLER
public static final javax.swing.ImageIcon SCROLLER
-
STILTS
public static final javax.swing.ImageIcon STILTS
-
CONTROL
public static final javax.swing.ImageIcon CONTROL
-
COLUMNS
public static final javax.swing.ImageIcon COLUMNS
-
STATS
public static final javax.swing.ImageIcon STATS
-
HISTOGRAM
public static final javax.swing.ImageIcon HISTOGRAM
-
CUMULATIVE
public static final javax.swing.ImageIcon CUMULATIVE
-
NORMALISE
public static final javax.swing.ImageIcon NORMALISE
-
PLOT
public static final javax.swing.ImageIcon PLOT
-
DENSITY
public static final javax.swing.ImageIcon DENSITY
-
PLOT3D
public static final javax.swing.ImageIcon PLOT3D
-
SPHERE
public static final javax.swing.ImageIcon SPHERE
-
STACK
public static final javax.swing.ImageIcon STACK
-
PARAMS
public static final javax.swing.ImageIcon PARAMS
-
VIEWER
public static final javax.swing.ImageIcon VIEWER
-
SUBSETS
public static final javax.swing.ImageIcon SUBSETS
-
FUNCTION
public static final javax.swing.ImageIcon FUNCTION
-
MATCH1
public static final javax.swing.ImageIcon MATCH1
-
MATCH2
public static final javax.swing.ImageIcon MATCH2
-
MATCHN
public static final javax.swing.ImageIcon MATCHN
-
CONCAT
public static final javax.swing.ImageIcon CONCAT
-
MULTICONE
public static final javax.swing.ImageIcon MULTICONE
-
MULTISIA
public static final javax.swing.ImageIcon MULTISIA
-
MULTISSA
public static final javax.swing.ImageIcon MULTISSA
-
DATALINK
public static final javax.swing.ImageIcon DATALINK
-
SAMP
public static final javax.swing.ImageIcon SAMP
-
GAVO
public static final javax.swing.ImageIcon GAVO
-
VIZIER
public static final javax.swing.ImageIcon VIZIER
-
BASTI
public static final javax.swing.ImageIcon BASTI
-
TREE_DIALOG
public static final javax.swing.ImageIcon TREE_DIALOG
-
CLASSIFY
public static final javax.swing.ImageIcon CLASSIFY
-
ACTIVATE
public static final javax.swing.ImageIcon ACTIVATE
-
REACTIVATE
public static final javax.swing.ImageIcon REACTIVATE
-
REACTIVATE_ALL
public static final javax.swing.ImageIcon REACTIVATE_ALL
-
ACTIVATE_SEQ
public static final javax.swing.ImageIcon ACTIVATE_SEQ
-
ACTIVATE_SEQ_ALL
public static final javax.swing.ImageIcon ACTIVATE_SEQ_ALL
-
PAUSE_SEQ
public static final javax.swing.ImageIcon PAUSE_SEQ
-
CANCEL_SEQ
public static final javax.swing.ImageIcon CANCEL_SEQ
-
DELETE_INACTIVE
public static final javax.swing.ImageIcon DELETE_INACTIVE
-
UNSORT
public static final javax.swing.ImageIcon UNSORT
-
DELETE_COLUMN
public static final javax.swing.ImageIcon DELETE_COLUMN
-
VISIBLE_SUBSET
public static final javax.swing.ImageIcon VISIBLE_SUBSET
-
JEL_VISIBLE_SUBSET
public static final javax.swing.ImageIcon JEL_VISIBLE_SUBSET
-
RANGE_SUBSET
public static final javax.swing.ImageIcon RANGE_SUBSET
-
XRANGE_SUBSET
public static final javax.swing.ImageIcon XRANGE_SUBSET
-
BLOB_SUBSET
public static final javax.swing.ImageIcon BLOB_SUBSET
-
BLOB_SUBSET_END
public static final javax.swing.ImageIcon BLOB_SUBSET_END
-
POLY_SUBSET
public static final javax.swing.ImageIcon POLY_SUBSET
-
POLY_SUBSET_END
public static final javax.swing.ImageIcon POLY_SUBSET_END
-
RESIZE
public static final javax.swing.ImageIcon RESIZE
-
RESIZE_X
public static final javax.swing.ImageIcon RESIZE_X
-
RESIZE_Y
public static final javax.swing.ImageIcon RESIZE_Y
-
GRID_ON
public static final javax.swing.ImageIcon GRID_ON
-
GRID_OFF
public static final javax.swing.ImageIcon GRID_OFF
-
Y_CURSOR
public static final javax.swing.ImageIcon Y_CURSOR
-
Y0_LINE
public static final javax.swing.ImageIcon Y0_LINE
-
TO_COLUMN
public static final javax.swing.ImageIcon TO_COLUMN
-
HIGHLIGHT
public static final javax.swing.ImageIcon HIGHLIGHT
-
APPLY_SUBSET
public static final javax.swing.ImageIcon APPLY_SUBSET
-
COUNT
public static final javax.swing.ImageIcon COUNT
-
RECOUNT
public static final javax.swing.ImageIcon RECOUNT
-
INVERT
public static final javax.swing.ImageIcon INVERT
-
HEAD
public static final javax.swing.ImageIcon HEAD
-
TAIL
public static final javax.swing.ImageIcon TAIL
-
SAMPLE
public static final javax.swing.ImageIcon SAMPLE
-
INCLUDE_ROWS
public static final javax.swing.ImageIcon INCLUDE_ROWS
-
EXCLUDE_ROWS
public static final javax.swing.ImageIcon EXCLUDE_ROWS
-
UP
public static final javax.swing.ImageIcon UP
-
DOWN
public static final javax.swing.ImageIcon DOWN
-
UP_TRIM
public static final javax.swing.ImageIcon UP_TRIM
-
DOWN_TRIM
public static final javax.swing.ImageIcon DOWN_TRIM
-
MOVE_UP
public static final javax.swing.ImageIcon MOVE_UP
-
MOVE_DOWN
public static final javax.swing.ImageIcon MOVE_DOWN
-
EQUATION
public static final javax.swing.ImageIcon EQUATION
-
EXPLODE
public static final javax.swing.ImageIcon EXPLODE
-
ADDSKY
public static final javax.swing.ImageIcon ADDSKY
-
COLOR_LOG
public static final javax.swing.ImageIcon COLOR_LOG
-
XLOG
public static final javax.swing.ImageIcon XLOG
-
YLOG
public static final javax.swing.ImageIcon YLOG
-
XFLIP
public static final javax.swing.ImageIcon XFLIP
-
YFLIP
public static final javax.swing.ImageIcon YFLIP
-
XYZ
public static final javax.swing.ImageIcon XYZ
-
FOG
public static final javax.swing.ImageIcon FOG
-
ANTIALIAS
public static final javax.swing.ImageIcon ANTIALIAS
-
COLOR
public static final javax.swing.ImageIcon COLOR
-
FINE
public static final javax.swing.ImageIcon FINE
-
ROUGH
public static final javax.swing.ImageIcon ROUGH
-
AXIS_EDIT
public static final javax.swing.ImageIcon AXIS_EDIT
-
AXIS_LOCK
public static final javax.swing.ImageIcon AXIS_LOCK
-
AUX_LOCK
public static final javax.swing.ImageIcon AUX_LOCK
-
BROADCAST
public static final javax.swing.ImageIcon BROADCAST
-
SEND
public static final javax.swing.ImageIcon SEND
-
ADD_TAB
public static final javax.swing.ImageIcon ADD_TAB
-
REMOVE_TAB
public static final javax.swing.ImageIcon REMOVE_TAB
-
COLORS
public static final javax.swing.ImageIcon COLORS
-
ADD_COLORS
public static final javax.swing.ImageIcon ADD_COLORS
-
REMOVE_COLORS
public static final javax.swing.ImageIcon REMOVE_COLORS
-
NORTH
public static final javax.swing.ImageIcon NORTH
-
WEIGHT
public static final javax.swing.ImageIcon WEIGHT
-
JPEG
public static final javax.swing.ImageIcon JPEG
-
SPLIT
public static final javax.swing.ImageIcon SPLIT
-
FORWARD
public static final javax.swing.ImageIcon FORWARD
-
BACKWARD
public static final javax.swing.ImageIcon BACKWARD
-
PAGE_SETUP
public static final javax.swing.ImageIcon PAGE_SETUP
-
MANUAL
public static final javax.swing.ImageIcon MANUAL
-
MANUAL_BROWSER
public static final javax.swing.ImageIcon MANUAL_BROWSER
-
MANUAL1_BROWSER
public static final javax.swing.ImageIcon MANUAL1_BROWSER
-
LEGEND
public static final javax.swing.ImageIcon LEGEND
-
LABEL
public static final javax.swing.ImageIcon LABEL
-
RADIAL
public static final javax.swing.ImageIcon RADIAL
-
CONNECT
public static final javax.swing.ImageIcon CONNECT
-
DISCONNECT
public static final javax.swing.ImageIcon DISCONNECT
-
NO_HUB
public static final javax.swing.ImageIcon NO_HUB
-
PDF
public static final javax.swing.ImageIcon PDF
-
TUNING
public static final javax.swing.ImageIcon TUNING
-
PROFILE
public static final javax.swing.ImageIcon PROFILE
-
SYSTEM
public static final javax.swing.ImageIcon SYSTEM
-
KEEP_OPEN
public static final javax.swing.ImageIcon KEEP_OPEN
-
LISTEN
public static final javax.swing.ImageIcon LISTEN
-
TO_BROWSER
public static final javax.swing.ImageIcon TO_BROWSER
-
SYNTAX
public static final javax.swing.ImageIcon SYNTAX
-
FOOTPRINT
public static final javax.swing.ImageIcon FOOTPRINT
-
ZOOM_IN
public static final javax.swing.ImageIcon ZOOM_IN
-
ZOOM_OUT
public static final javax.swing.ImageIcon ZOOM_OUT
-
SKETCH
public static final javax.swing.ImageIcon SKETCH
-
PROGRESS
public static final javax.swing.ImageIcon PROGRESS
-
MATCHPLOT
public static final javax.swing.ImageIcon MATCHPLOT
-
CDSXMATCH
public static final javax.swing.ImageIcon CDSXMATCH
-
HISTO_SAVE
public static final javax.swing.ImageIcon HISTO_SAVE
-
HISTO_IMPORT
public static final javax.swing.ImageIcon HISTO_IMPORT
-
WARNING
public static final javax.swing.ImageIcon WARNING
-
APPROVE_ALL
public static final javax.swing.ImageIcon APPROVE_ALL
-
MEASURE
public static final javax.swing.ImageIcon MEASURE
-
LOCK
public static final javax.swing.ImageIcon LOCK
-
UP_DOWN
public static final javax.swing.ImageIcon UP_DOWN
-
FLOAT
public static final javax.swing.ImageIcon FLOAT
-
PLOT_DATA
public static final javax.swing.ImageIcon PLOT_DATA
-
PLOT_PAIR
public static final javax.swing.ImageIcon PLOT_PAIR
-
PLOT_QUAD
public static final javax.swing.ImageIcon PLOT_QUAD
-
PLOT_HISTO
public static final javax.swing.ImageIcon PLOT_HISTO
-
PLOT_AREA
public static final javax.swing.ImageIcon PLOT_AREA
-
PLOT2_PLANE
public static final javax.swing.ImageIcon PLOT2_PLANE
-
PLOT2_SKY
public static final javax.swing.ImageIcon PLOT2_SKY
-
PLOT2_CUBE
public static final javax.swing.ImageIcon PLOT2_CUBE
-
PLOT2_SPHERE
public static final javax.swing.ImageIcon PLOT2_SPHERE
-
PLOT2_TIME
public static final javax.swing.ImageIcon PLOT2_TIME
-
PLOT2_HISTOGRAM
public static final javax.swing.ImageIcon PLOT2_HISTOGRAM
-
HISTOBARS
public static final javax.swing.ImageIcon HISTOBARS
-
NAV_HELP
public static final javax.swing.ImageIcon NAV_HELP
-
NAV_DEC
public static final javax.swing.ImageIcon NAV_DEC
-
SMALL_CLOSE
public static final javax.swing.ImageIcon SMALL_CLOSE
-
SMALL_HELP
public static final javax.swing.ImageIcon SMALL_HELP
-
ADD_CONTROL
public static final javax.swing.ImageIcon ADD_CONTROL
-
AXIS_CONFIG
public static final javax.swing.ImageIcon AXIS_CONFIG
-
FRAME_CONFIG
public static final javax.swing.ImageIcon FRAME_CONFIG
-
SAVE_OVERLAY
public static final javax.swing.ImageIcon SAVE_OVERLAY
-
IMPORT_OVERLAY
public static final javax.swing.ImageIcon IMPORT_OVERLAY
-
COLLAPSED
public static final javax.swing.ImageIcon COLLAPSED
-
EXPANDED
public static final javax.swing.ImageIcon EXPANDED
-
HOME
public static final javax.swing.ImageIcon HOME
-
TV_UP
public static final javax.swing.ImageIcon TV_UP
-
TV_DOWN
public static final javax.swing.ImageIcon TV_DOWN
-
FOLDER_NODE
public static final javax.swing.ImageIcon FOLDER_NODE
-
LIBRARY_NODE
public static final javax.swing.ImageIcon LIBRARY_NODE
-
FUNCTION_NODE
public static final javax.swing.ImageIcon FUNCTION_NODE
-
CONSTANT_NODE
public static final javax.swing.ImageIcon CONSTANT_NODE
-
dummy
public static final javax.swing.ImageIcon dummy
-
BLANK
public static final javax.swing.Icon BLANK
Blank icon.
-
-
Method Detail
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
getImage
public java.awt.Image getImage()
Returns an Image for this icon if it can, or null if it can't for some reason.- Returns:
- an Image
-
getURL
public java.net.URL getURL()
Returns the URL for the image that forms this icon; it is called PREFIX + location relative to this class. This will probably be a jar: protocol URL and only useful to Java applications (possibly only within this JVM).- Returns:
- the icon URL
-
getExternalURL
public java.net.URL getExternalURL() throws java.io.IOException
Returns a URL from which this icon can be retrieved by external applications. This is served from TOPCAT's internal HTTP server, and so is only available as long as this instance of the program is running.- Returns:
- url, or null if no server is running
- Throws:
java.io.IOException
-
combineIcons
public static javax.swing.ImageIcon combineIcons(javax.swing.Icon[] icons)
Paints a stack of icons on top of each other and returns the result. Later elements obscure earlier ones- Parameters:
icons
- icon array- Returns:
- combination
-
toAddIcon
public static javax.swing.ImageIcon toAddIcon(javax.swing.Icon baseIcon)
Doctors an icon representing a control to look like it means adding that control. Currently, it puts a little plus sign in the corner.- Parameters:
baseIcon
- standard sized (24x24) base icon- Returns:
- doctored icon
-
toSaveIcon
public static javax.swing.ImageIcon toSaveIcon(javax.swing.Icon baseIcon)
Doctors an icon look like it means saving data associated with that icon. Currently, it puts a little floppy disk icon in the corner.- Parameters:
baseIcon
- standard sized (24x24) base icon- Returns:
- doctored icon
-
toImportIcon
public static javax.swing.ImageIcon toImportIcon(javax.swing.Icon baseIcon)
Doctors an icon look like it means importing a table associated with that icon. Currently, it puts a little table icon in the corner.- Parameters:
baseIcon
- standard sized (24x24) base icon- Returns:
- doctored icon
-
getTopcatLogo
public static javax.swing.Icon getTopcatLogo()
Returns a full-size TOPCAT logo for display.- Returns:
- topcat logo
-
getTopcatLogoSmall
public static javax.swing.Icon getTopcatLogoSmall()
Returns an icon-size TOPCAT logo.- Returns:
- 24x24 pixel topcat logo
-
checkResourcesPresent
public static void checkResourcesPresent() throws java.io.FileNotFoundException
Checks that all the required resource files are present for this class. If any of the image files are not present, it will throw an informative FileNotFoundException.- Throws:
java.io.FileNotFoundException
- if any of the graphics files are missing
-
writeHelpMapXML
public static void writeHelpMapXML(java.io.OutputStream ostrm, java.lang.String prefix)
Writes the <mapID> elements required for a JavaHelp map file representing the icons represented by this class. The URLs are relative to the location of the help files.- Parameters:
ostrm
- the destination output stream for the dataprefix
- a string to prefix to each relative URL
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Invokes thewriteHelpMapXML(java.io.OutputStream, java.lang.String)
method to standard output.- Throws:
java.io.IOException
-
-