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.IconHandles 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
Iconrather 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.ImageIconACTIVATEstatic javax.swing.ImageIconACTIVATE_SEQstatic javax.swing.ImageIconACTIVATE_SEQ_ALLstatic javax.swing.ImageIconADDstatic javax.swing.ImageIconADD_COLORSstatic javax.swing.ImageIconADD_CONTROLstatic javax.swing.ImageIconADD_TABstatic javax.swing.ImageIconADDSKYstatic javax.swing.ImageIconANTIALIASstatic javax.swing.ImageIconAPPLY_SUBSETstatic javax.swing.ImageIconAPPROVE_ALLstatic javax.swing.ImageIconASTROGRID_LOGOstatic javax.swing.ImageIconAUX_LOCKstatic javax.swing.ImageIconAXIS_CONFIGstatic javax.swing.ImageIconAXIS_EDITstatic javax.swing.ImageIconAXIS_LOCKstatic javax.swing.ImageIconBACKWARDstatic javax.swing.ImageIconBASTIstatic javax.swing.IconBLANKBlank icon.static javax.swing.ImageIconBLOB_SUBSETstatic javax.swing.ImageIconBLOB_SUBSET_ENDstatic javax.swing.ImageIconBRISTOL_LOGOstatic javax.swing.ImageIconBROADCASTstatic javax.swing.ImageIconCANCEL_SEQstatic javax.swing.ImageIconCDSXMATCHstatic javax.swing.ImageIconCLASSIFYstatic javax.swing.ImageIconCLEARstatic javax.swing.ImageIconCLOSEstatic javax.swing.ImageIconCOLLAPSEDstatic javax.swing.ImageIconCOLORstatic javax.swing.ImageIconCOLOR_LOGstatic javax.swing.ImageIconCOLORSstatic javax.swing.ImageIconCOLUMNSstatic javax.swing.ImageIconCONCATstatic javax.swing.ImageIconCONNECTstatic javax.swing.ImageIconCONSTANT_NODEstatic javax.swing.ImageIconCONTROLstatic javax.swing.ImageIconCOPYstatic javax.swing.ImageIconCOUNTstatic javax.swing.ImageIconCUMULATIVEstatic javax.swing.ImageIconDATALINKstatic javax.swing.ImageIconDELETEstatic javax.swing.ImageIconDELETE_COLUMNstatic javax.swing.ImageIconDELETE_INACTIVEstatic javax.swing.ImageIconDEMOstatic javax.swing.ImageIconDENSITYstatic javax.swing.ImageIconDISCONNECTstatic javax.swing.ImageIconDO_WHATstatic javax.swing.ImageIconDOWNstatic javax.swing.ImageIconDOWN_TRIMstatic javax.swing.ImageIcondummystatic javax.swing.ImageIconEQUATIONstatic javax.swing.ImageIconESA_LOGOstatic javax.swing.ImageIconEU_LOGOstatic javax.swing.ImageIconEXCLUDE_ROWSstatic javax.swing.ImageIconEXITstatic javax.swing.ImageIconEXPANDEDstatic javax.swing.ImageIconEXPLODEstatic javax.swing.ImageIconFINEstatic javax.swing.ImageIconFITSstatic javax.swing.ImageIconFLOATstatic javax.swing.ImageIconFOGstatic javax.swing.ImageIconFOLDER_NODEstatic javax.swing.ImageIconFOOTPRINTstatic javax.swing.ImageIconFORWARDstatic javax.swing.ImageIconFRAME_CONFIGstatic javax.swing.ImageIconFUNCTIONstatic javax.swing.ImageIconFUNCTION_NODEstatic javax.swing.ImageIconGAVOstatic javax.swing.ImageIconGAVO_LOGOstatic javax.swing.ImageIconGRID_OFFstatic javax.swing.ImageIconGRID_ONstatic javax.swing.ImageIconHEADstatic javax.swing.ImageIconHELPstatic javax.swing.ImageIconHELP_BROWSERstatic javax.swing.ImageIconHIDEstatic javax.swing.ImageIconHIDE_ALLstatic javax.swing.ImageIconHIDE_ALL_TINYstatic javax.swing.ImageIconHIDE_WINDOWSstatic javax.swing.ImageIconHIGHLIGHTstatic javax.swing.ImageIconHISTO_IMPORTstatic javax.swing.ImageIconHISTO_SAVEstatic javax.swing.ImageIconHISTOBARSstatic javax.swing.ImageIconHISTOGRAMstatic javax.swing.ImageIconHOMEstatic javax.swing.ImageIconIMAGEstatic javax.swing.ImageIconIMPORTstatic javax.swing.ImageIconIMPORT_OVERLAYstatic javax.swing.ImageIconINCLUDE_ROWSstatic javax.swing.ImageIconINVERTstatic javax.swing.ImageIconJEL_VISIBLE_SUBSETstatic javax.swing.ImageIconJPEGstatic javax.swing.ImageIconKEEP_OPENstatic javax.swing.ImageIconLABELstatic javax.swing.ImageIconLEGENDstatic javax.swing.ImageIconLIBRARY_NODEstatic javax.swing.ImageIconLISTENstatic javax.swing.ImageIconLOADstatic javax.swing.ImageIconLOGstatic javax.swing.ImageIconMANUALstatic javax.swing.ImageIconMANUAL_BROWSERstatic javax.swing.ImageIconMANUAL1_BROWSERstatic javax.swing.ImageIconMATCH1static javax.swing.ImageIconMATCH2static javax.swing.ImageIconMATCHNstatic javax.swing.ImageIconMATCHPLOTstatic javax.swing.ImageIconMEASUREstatic javax.swing.ImageIconMODIFYstatic javax.swing.ImageIconMOVE_DOWNstatic javax.swing.ImageIconMOVE_UPstatic javax.swing.ImageIconMULTICONEstatic javax.swing.ImageIconMULTISIAstatic javax.swing.ImageIconMULTISSAstatic javax.swing.ImageIconNAV_DECstatic javax.swing.ImageIconNAV_HELPstatic javax.swing.ImageIconNO_HUBstatic javax.swing.ImageIconNORMALISEstatic javax.swing.ImageIconNORTHstatic javax.swing.ImageIconPAGE_SETUPstatic javax.swing.ImageIconPARAMSstatic javax.swing.ImageIconPAUSE_SEQstatic javax.swing.ImageIconPDFstatic javax.swing.ImageIconPLOTstatic javax.swing.ImageIconPLOT_DATAstatic javax.swing.ImageIconPLOT_HISTOstatic javax.swing.ImageIconPLOT_PAIRstatic javax.swing.ImageIconPLOT_QUADstatic javax.swing.ImageIconPLOT2_CUBEstatic javax.swing.ImageIconPLOT2_HISTOGRAMstatic javax.swing.ImageIconPLOT2_PLANEstatic javax.swing.ImageIconPLOT2_SKYstatic javax.swing.ImageIconPLOT2_SPHEREstatic javax.swing.ImageIconPLOT2_TIMEstatic javax.swing.ImageIconPLOT3Dstatic javax.swing.ImageIconPOLY_SUBSETstatic javax.swing.ImageIconPOLY_SUBSET_ENDstatic java.lang.StringPREFIXLocation of image resource files relative to this class.static javax.swing.ImageIconPRINTstatic javax.swing.ImageIconPRINT_ZIPstatic javax.swing.ImageIconPROFILEstatic javax.swing.ImageIconPROGRESSstatic javax.swing.ImageIconRADIALstatic javax.swing.ImageIconRANGE_SUBSETstatic javax.swing.ImageIconREACTIVATEstatic javax.swing.ImageIconREACTIVATE_ALLstatic javax.swing.ImageIconRECOUNTstatic javax.swing.ImageIconREDOstatic javax.swing.ImageIconREMOVE_COLORSstatic javax.swing.ImageIconREMOVE_TABstatic javax.swing.ImageIconRESIZEstatic javax.swing.ImageIconRESIZE_Xstatic javax.swing.ImageIconRESIZE_Ystatic javax.swing.ImageIconREVEALstatic javax.swing.ImageIconREVEAL_ALLstatic javax.swing.ImageIconREVEAL_ALL_TINYstatic javax.swing.ImageIconROUGHstatic javax.swing.ImageIconSAMPstatic javax.swing.ImageIconSAMPLEstatic javax.swing.ImageIconSAVEstatic javax.swing.ImageIconSAVE_OVERLAYstatic javax.swing.ImageIconSCROLLERstatic javax.swing.ImageIconSEARCHstatic javax.swing.ImageIconSENDstatic javax.swing.ImageIconSKETCHstatic javax.swing.ImageIconSMALL_CLOSEstatic javax.swing.ImageIconSMALL_HELPstatic javax.swing.ImageIconSPHEREstatic javax.swing.ImageIconSPLITstatic javax.swing.ImageIconSTACKstatic javax.swing.ImageIconSTAR_LOGOstatic javax.swing.ImageIconSTARLINKstatic javax.swing.ImageIconSTATSstatic javax.swing.ImageIconSTFC_LOGOstatic javax.swing.ImageIconSTILTSstatic javax.swing.ImageIconSUBSETSstatic javax.swing.ImageIconSUBTRACTstatic javax.swing.ImageIconSYNTAXstatic javax.swing.ImageIconSYSTEMstatic javax.swing.ImageIconTABLEstatic javax.swing.ImageIconTAILstatic javax.swing.ImageIconTO_BROWSERstatic javax.swing.ImageIconTO_COLUMNstatic javax.swing.ImageIconTOPCAT_LOGOstatic javax.swing.ImageIconTOPCAT_LOGO_SMALLstatic javax.swing.ImageIconTOPCAT_LOGO_XMstatic javax.swing.ImageIconTOPCAT_LOGO_XM_SMALLstatic javax.swing.ImageIconTREE_DIALOGstatic javax.swing.ImageIconTUNINGstatic javax.swing.ImageIconTV_DOWNstatic javax.swing.ImageIconTV_UPstatic javax.swing.ImageIconUNSORTstatic javax.swing.ImageIconUPstatic javax.swing.ImageIconUP_DOWNstatic javax.swing.ImageIconUP_TRIMstatic javax.swing.ImageIconVIEWERstatic javax.swing.ImageIconVISIBLE_SUBSETstatic javax.swing.ImageIconVIZIERstatic javax.swing.ImageIconVIZIER_LOGOstatic javax.swing.ImageIconVOTECH_LOGOstatic javax.swing.ImageIconWARNINGstatic javax.swing.ImageIconWEIGHTstatic javax.swing.ImageIconXFLIPstatic javax.swing.ImageIconXLOGstatic javax.swing.ImageIconXRANGE_SUBSETstatic javax.swing.ImageIconXYZstatic javax.swing.ImageIconY_CURSORstatic javax.swing.ImageIconY0_LINEstatic javax.swing.ImageIconYFLIPstatic javax.swing.ImageIconYLOGstatic javax.swing.ImageIconZOOM_INstatic javax.swing.ImageIconZOOM_OUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckResourcesPresent()Checks that all the required resource files are present for this class.static javax.swing.ImageIconcombineIcons(javax.swing.Icon[] icons)Paints a stack of icons on top of each other and returns the result.java.net.URLgetExternalURL()Returns a URL from which this icon can be retrieved by external applications.intgetIconHeight()intgetIconWidth()java.awt.ImagegetImage()Returns an Image for this icon if it can, or null if it can't for some reason.static javax.swing.IcongetTopcatLogo()Returns a full-size TOPCAT logo for display.static javax.swing.IcongetTopcatLogoSmall()Returns an icon-size TOPCAT logo.java.net.URLgetURL()Returns the URL for the image that forms this icon; it is called PREFIX + location relative to this class.static voidmain(java.lang.String[] args)Invokes thewriteHelpMapXML(java.io.OutputStream, java.lang.String)method to standard output.voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)static javax.swing.ImageIcontoAddIcon(javax.swing.Icon baseIcon)Doctors an icon representing a control to look like it means adding that control.static javax.swing.ImageIcontoImportIcon(javax.swing.Icon baseIcon)Doctors an icon look like it means importing a table associated with that icon.static javax.swing.ImageIcontoSaveIcon(javax.swing.Icon baseIcon)Doctors an icon look like it means saving data associated with that icon.static voidwriteHelpMapXML(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
-
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
-
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:
getIconHeightin interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)- Specified by:
paintIconin 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.IOExceptionReturns 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.FileNotFoundExceptionChecks 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.IOExceptionInvokes thewriteHelpMapXML(java.io.OutputStream, java.lang.String)method to standard output.- Throws:
java.io.IOException
-
-