uk.ac.starlink.topcat
Class ResourceIcon

java.lang.Object
  extended by uk.ac.starlink.topcat.ResourceIcon
All Implemented Interfaces:
Icon

public class ResourceIcon
extends Object
implements 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 extending ImageIcon. 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
static ImageIcon ACTIVATE
           
static ImageIcon ACTIVATE_SEQ
           
static ImageIcon ACTIVATE_SEQ_ALL
           
static ImageIcon ADD
           
static ImageIcon ADD_COLORS
           
static ImageIcon ADD_CONTROL
           
static ImageIcon ADD_TAB
           
static ImageIcon ADDSKY
           
static ImageIcon ANTIALIAS
           
static ImageIcon APPLY_SUBSET
           
static ImageIcon APPROVE_ALL
           
static ImageIcon ASTROGRID_LOGO
           
static ImageIcon AUX_LOCK
           
static ImageIcon AXIS_CONFIG
           
static ImageIcon AXIS_EDIT
           
static ImageIcon AXIS_LOCK
           
static ImageIcon BACKWARD
           
static ImageIcon BASTI
           
static Icon BLANK
          Blank icon.
static ImageIcon BLOB_SUBSET
           
static ImageIcon BLOB_SUBSET_END
           
static ImageIcon BRISTOL_LOGO
           
static ImageIcon BROADCAST
           
static ImageIcon CANCEL_SEQ
           
static ImageIcon CDSXMATCH
           
static ImageIcon CLASSIFY
           
static ImageIcon CLEAR
           
static ImageIcon CLOSE
           
static ImageIcon COLLAPSED
           
static ImageIcon COLOR
           
static ImageIcon COLOR_LOG
           
static ImageIcon COLORS
           
static ImageIcon COLUMNS
           
static ImageIcon CONCAT
           
static ImageIcon CONNECT
           
static ImageIcon CONSTANT_NODE
           
static ImageIcon CONTROL
           
static ImageIcon COPY
           
static ImageIcon COUNT
           
static ImageIcon CUMULATIVE
           
static ImageIcon DATALINK
           
static ImageIcon DELETE
           
static ImageIcon DELETE_COLUMN
           
static ImageIcon DELETE_INACTIVE
           
static ImageIcon DEMO
           
static ImageIcon DENSITY
           
static ImageIcon DISCONNECT
           
static ImageIcon DO_WHAT
           
static ImageIcon DOWN
           
static ImageIcon DOWN_TRIM
           
static ImageIcon dummy
           
static ImageIcon EQUATION
           
static ImageIcon ESA_LOGO
           
static ImageIcon EU_LOGO
           
static ImageIcon EXCLUDE_ROWS
           
static ImageIcon EXIT
           
static ImageIcon EXPANDED
           
static ImageIcon EXPLODE
           
static ImageIcon FINE
           
static ImageIcon FITS
           
static ImageIcon FLOAT
           
static ImageIcon FOG
           
static ImageIcon FOLDER_NODE
           
static ImageIcon FOOTPRINT
           
static ImageIcon FORWARD
           
static ImageIcon FRAME_CONFIG
           
static ImageIcon FUNCTION
           
static ImageIcon FUNCTION_NODE
           
static ImageIcon GAVO
           
static ImageIcon GAVO_LOGO
           
static ImageIcon GRID_OFF
           
static ImageIcon GRID_ON
           
static ImageIcon HEAD
           
static ImageIcon HELP
           
static ImageIcon HELP_BROWSER
           
static ImageIcon HIDE
           
static ImageIcon HIDE_ALL
           
static ImageIcon HIDE_WINDOWS
           
static ImageIcon HIGHLIGHT
           
static ImageIcon HISTO_IMPORT
           
static ImageIcon HISTO_SAVE
           
static ImageIcon HISTOBARS
           
static ImageIcon HISTOGRAM
           
static ImageIcon HOME
           
static ImageIcon IMAGE
           
static ImageIcon IMPORT
           
static ImageIcon IMPORT_OVERLAY
           
static ImageIcon INCLUDE_ROWS
           
static ImageIcon INVERT
           
static ImageIcon JEL_VISIBLE_SUBSET
           
static ImageIcon JPEG
           
static ImageIcon KEEP_OPEN
           
static ImageIcon LABEL
           
static ImageIcon LEGEND
           
static ImageIcon LIBRARY_NODE
           
static ImageIcon LISTEN
           
static ImageIcon LOAD
           
static ImageIcon LOG
           
static ImageIcon MANUAL
           
static ImageIcon MANUAL_BROWSER
           
static ImageIcon MANUAL1_BROWSER
           
static ImageIcon MATCH1
           
static ImageIcon MATCH2
           
static ImageIcon MATCHN
           
static ImageIcon MATCHPLOT
           
static ImageIcon MODIFY
           
static ImageIcon MOVE_DOWN
           
static ImageIcon MOVE_UP
           
static ImageIcon MULTICONE
           
static ImageIcon MULTISIA
           
static ImageIcon MULTISSA
           
static ImageIcon NAV_DEC
           
static ImageIcon NAV_HELP
           
static ImageIcon NO_HUB
           
static ImageIcon NORMALISE
           
static ImageIcon NORTH
           
static ImageIcon PAGE_SETUP
           
static ImageIcon PARAMS
           
static ImageIcon PDF
           
static ImageIcon PLOT
           
static ImageIcon PLOT_DATA
           
static ImageIcon PLOT_HISTO
           
static ImageIcon PLOT_PAIR
           
static ImageIcon PLOT2_CUBE
           
static ImageIcon PLOT2_HISTOGRAM
           
static ImageIcon PLOT2_PLANE
           
static ImageIcon PLOT2_SKY
           
static ImageIcon PLOT2_SPHERE
           
static ImageIcon PLOT2_TIME
           
static ImageIcon PLOT3D
           
static ImageIcon POLY_SUBSET
           
static ImageIcon POLY_SUBSET_END
           
static String PREFIX
          Location of image resource files relative to this class.
static ImageIcon PRINT
           
static ImageIcon PRINT_ZIP
           
static ImageIcon PROFILE
           
static ImageIcon PROGRESS
           
static ImageIcon RADIAL
           
static ImageIcon RANGE_SUBSET
           
static ImageIcon REACTIVATE
           
static ImageIcon REACTIVATE_ALL
           
static ImageIcon RECOUNT
           
static ImageIcon REDO
           
static ImageIcon REMOVE_COLORS
           
static ImageIcon REMOVE_TAB
           
static ImageIcon RESIZE
           
static ImageIcon RESIZE_X
           
static ImageIcon RESIZE_Y
           
static ImageIcon REVEAL
           
static ImageIcon REVEAL_ALL
           
static ImageIcon ROUGH
           
static ImageIcon SAMP
           
static ImageIcon SAMPLE
           
static ImageIcon SAVE
           
static ImageIcon SAVE_OVERLAY
           
static ImageIcon SCROLLER
           
static ImageIcon SEARCH
           
static ImageIcon SEND
           
static ImageIcon SKETCH
           
static ImageIcon SMALL_CLOSE
           
static ImageIcon SMALL_HELP
           
static ImageIcon SPHERE
           
static ImageIcon SPLIT
           
static ImageIcon STACK
           
static ImageIcon STAR_LOGO
           
static ImageIcon STARLINK
           
static ImageIcon STATS
           
static ImageIcon STFC_LOGO
           
static ImageIcon STILTS
           
static ImageIcon SUBSETS
           
static ImageIcon SUBTRACT
           
static ImageIcon SYNTAX
           
static ImageIcon SYSTEM
           
static ImageIcon TABLE
           
static ImageIcon TAIL
           
static ImageIcon TO_BROWSER
           
static ImageIcon TO_COLUMN
           
static ImageIcon TOPCAT_LOGO
           
static ImageIcon TOPCAT_LOGO_SMALL
           
static ImageIcon TOPCAT_LOGO_XM
           
static ImageIcon TOPCAT_LOGO_XM_SMALL
           
static ImageIcon TREE_DIALOG
           
static ImageIcon TUNING
           
static ImageIcon TV_DOWN
           
static ImageIcon TV_UP
           
static ImageIcon UNSORT
           
static ImageIcon UP
           
static ImageIcon UP_DOWN
           
static ImageIcon UP_TRIM
           
static ImageIcon VIEWER
           
static ImageIcon VISIBLE_SUBSET
           
static ImageIcon VIZIER
           
static ImageIcon VIZIER_LOGO
           
static ImageIcon VOTECH_LOGO
           
static ImageIcon WARNING
           
static ImageIcon WEIGHT
           
static ImageIcon XFLIP
           
static ImageIcon XLOG
           
static ImageIcon XRANGE_SUBSET
           
static ImageIcon XYZ
           
static ImageIcon Y_CURSOR
           
static ImageIcon Y0_LINE
           
static ImageIcon YFLIP
           
static ImageIcon YLOG
           
static ImageIcon ZOOM_IN
           
static ImageIcon ZOOM_OUT
           
 
Method Summary
static void checkResourcesPresent()
          Checks that all the required resource files are present for this class.
static ImageIcon combineIcons(Icon[] icons)
          Paints a stack of icons on top of each other and returns the result.
 URL getExternalURL()
          Returns a URL from which this icon can be retrieved by external applications.
 int getIconHeight()
           
 int getIconWidth()
           
 Image getImage()
          Returns an Image for this icon if it can, or null if it can't for some reason.
static Icon getTopcatLogo()
          Returns a full-size TOPCAT logo for display.
static Icon getTopcatLogoSmall()
          Returns an icon-size TOPCAT logo.
 URL getURL()
          Returns the URL for the image that forms this icon; it is called PREFIX + location relative to this class.
static void main(String[] args)
          Invokes the writeHelpMapXML(java.io.OutputStream, java.lang.String) method to standard output.
 void paintIcon(Component c, Graphics g, int x, int y)
           
static ImageIcon toAddIcon(Icon baseIcon)
          Doctors an icon representing a control to look like it means adding that control.
static ImageIcon toImportIcon(Icon baseIcon)
          Doctors an icon look like it means importing a table associated with that icon.
static ImageIcon toSaveIcon(Icon baseIcon)
          Doctors an icon look like it means saving data associated with that icon.
static void writeHelpMapXML(OutputStream ostrm, String prefix)
          Writes the <mapID> elements required for a JavaHelp map file representing the icons represented by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
Location of image resource files relative to this class.

See Also:
Constant Field Values

DO_WHAT

public static final ImageIcon DO_WHAT

STARLINK

public static final ImageIcon STARLINK

TABLE

public static final ImageIcon TABLE

TOPCAT_LOGO

public static final ImageIcon TOPCAT_LOGO

TOPCAT_LOGO_SMALL

public static final ImageIcon TOPCAT_LOGO_SMALL

TOPCAT_LOGO_XM

public static final ImageIcon TOPCAT_LOGO_XM

TOPCAT_LOGO_XM_SMALL

public static final ImageIcon TOPCAT_LOGO_XM_SMALL

STAR_LOGO

public static final ImageIcon STAR_LOGO

ASTROGRID_LOGO

public static final ImageIcon ASTROGRID_LOGO

BRISTOL_LOGO

public static final ImageIcon BRISTOL_LOGO

VOTECH_LOGO

public static final ImageIcon VOTECH_LOGO

STFC_LOGO

public static final ImageIcon STFC_LOGO

GAVO_LOGO

public static final ImageIcon GAVO_LOGO

ESA_LOGO

public static final ImageIcon ESA_LOGO

VIZIER_LOGO

public static final ImageIcon VIZIER_LOGO

EU_LOGO

public static final ImageIcon EU_LOGO

CLOSE

public static final ImageIcon CLOSE

EXIT

public static final ImageIcon EXIT

LOAD

public static final ImageIcon LOAD

SAVE

public static final ImageIcon SAVE

IMPORT

public static final ImageIcon IMPORT

PRINT

public static final ImageIcon PRINT

PRINT_ZIP

public static final ImageIcon PRINT_ZIP

IMAGE

public static final ImageIcon IMAGE

FITS

public static final ImageIcon FITS

COPY

public static final ImageIcon COPY

REDO

public static final ImageIcon REDO

ADD

public static final ImageIcon ADD

SUBTRACT

public static final ImageIcon SUBTRACT

DELETE

public static final ImageIcon DELETE

HELP

public static final ImageIcon HELP

HELP_BROWSER

public static final ImageIcon HELP_BROWSER

DEMO

public static final ImageIcon DEMO

HIDE

public static final ImageIcon HIDE

REVEAL

public static final ImageIcon REVEAL

HIDE_ALL

public static final ImageIcon HIDE_ALL

REVEAL_ALL

public static final ImageIcon REVEAL_ALL

MODIFY

public static final ImageIcon MODIFY

SEARCH

public static final ImageIcon SEARCH

LOG

public static final ImageIcon LOG

CLEAR

public static final ImageIcon CLEAR

HIDE_WINDOWS

public static final ImageIcon HIDE_WINDOWS

SCROLLER

public static final ImageIcon SCROLLER

STILTS

public static final ImageIcon STILTS

CONTROL

public static final ImageIcon CONTROL

COLUMNS

public static final ImageIcon COLUMNS

STATS

public static final ImageIcon STATS

HISTOGRAM

public static final ImageIcon HISTOGRAM

CUMULATIVE

public static final ImageIcon CUMULATIVE

NORMALISE

public static final ImageIcon NORMALISE

PLOT

public static final ImageIcon PLOT

DENSITY

public static final ImageIcon DENSITY

PLOT3D

public static final ImageIcon PLOT3D

SPHERE

public static final ImageIcon SPHERE

STACK

public static final ImageIcon STACK

PARAMS

public static final ImageIcon PARAMS

VIEWER

public static final ImageIcon VIEWER

SUBSETS

public static final ImageIcon SUBSETS

FUNCTION

public static final ImageIcon FUNCTION

MATCH1

public static final ImageIcon MATCH1

MATCH2

public static final ImageIcon MATCH2

MATCHN

public static final ImageIcon MATCHN

CONCAT

public static final ImageIcon CONCAT

MULTICONE

public static final ImageIcon MULTICONE

MULTISIA

public static final ImageIcon MULTISIA

MULTISSA

public static final ImageIcon MULTISSA

DATALINK

public static final ImageIcon DATALINK

SAMP

public static final ImageIcon SAMP

GAVO

public static final ImageIcon GAVO

VIZIER

public static final ImageIcon VIZIER

BASTI

public static final ImageIcon BASTI

TREE_DIALOG

public static final ImageIcon TREE_DIALOG

CLASSIFY

public static final ImageIcon CLASSIFY

ACTIVATE

public static final ImageIcon ACTIVATE

REACTIVATE

public static final ImageIcon REACTIVATE

REACTIVATE_ALL

public static final ImageIcon REACTIVATE_ALL

ACTIVATE_SEQ

public static final ImageIcon ACTIVATE_SEQ

ACTIVATE_SEQ_ALL

public static final ImageIcon ACTIVATE_SEQ_ALL

CANCEL_SEQ

public static final ImageIcon CANCEL_SEQ

DELETE_INACTIVE

public static final ImageIcon DELETE_INACTIVE

UNSORT

public static final ImageIcon UNSORT

DELETE_COLUMN

public static final ImageIcon DELETE_COLUMN

VISIBLE_SUBSET

public static final ImageIcon VISIBLE_SUBSET

JEL_VISIBLE_SUBSET

public static final ImageIcon JEL_VISIBLE_SUBSET

RANGE_SUBSET

public static final ImageIcon RANGE_SUBSET

XRANGE_SUBSET

public static final ImageIcon XRANGE_SUBSET

BLOB_SUBSET

public static final ImageIcon BLOB_SUBSET

BLOB_SUBSET_END

public static final ImageIcon BLOB_SUBSET_END

POLY_SUBSET

public static final ImageIcon POLY_SUBSET

POLY_SUBSET_END

public static final ImageIcon POLY_SUBSET_END

RESIZE

public static final ImageIcon RESIZE

RESIZE_X

public static final ImageIcon RESIZE_X

RESIZE_Y

public static final ImageIcon RESIZE_Y

GRID_ON

public static final ImageIcon GRID_ON

GRID_OFF

public static final ImageIcon GRID_OFF

Y_CURSOR

public static final ImageIcon Y_CURSOR

Y0_LINE

public static final ImageIcon Y0_LINE

TO_COLUMN

public static final ImageIcon TO_COLUMN

HIGHLIGHT

public static final ImageIcon HIGHLIGHT

APPLY_SUBSET

public static final ImageIcon APPLY_SUBSET

COUNT

public static final ImageIcon COUNT

RECOUNT

public static final ImageIcon RECOUNT

INVERT

public static final ImageIcon INVERT

HEAD

public static final ImageIcon HEAD

TAIL

public static final ImageIcon TAIL

SAMPLE

public static final ImageIcon SAMPLE

INCLUDE_ROWS

public static final ImageIcon INCLUDE_ROWS

EXCLUDE_ROWS

public static final ImageIcon EXCLUDE_ROWS

UP

public static final ImageIcon UP

DOWN

public static final ImageIcon DOWN

UP_TRIM

public static final ImageIcon UP_TRIM

DOWN_TRIM

public static final ImageIcon DOWN_TRIM

MOVE_UP

public static final ImageIcon MOVE_UP

MOVE_DOWN

public static final ImageIcon MOVE_DOWN

EQUATION

public static final ImageIcon EQUATION

EXPLODE

public static final ImageIcon EXPLODE

ADDSKY

public static final ImageIcon ADDSKY

COLOR_LOG

public static final ImageIcon COLOR_LOG

XLOG

public static final ImageIcon XLOG

YLOG

public static final ImageIcon YLOG

XFLIP

public static final ImageIcon XFLIP

YFLIP

public static final ImageIcon YFLIP

XYZ

public static final ImageIcon XYZ

FOG

public static final ImageIcon FOG

ANTIALIAS

public static final ImageIcon ANTIALIAS

COLOR

public static final ImageIcon COLOR

FINE

public static final ImageIcon FINE

ROUGH

public static final ImageIcon ROUGH

AXIS_EDIT

public static final ImageIcon AXIS_EDIT

AXIS_LOCK

public static final ImageIcon AXIS_LOCK

AUX_LOCK

public static final ImageIcon AUX_LOCK

BROADCAST

public static final ImageIcon BROADCAST

SEND

public static final ImageIcon SEND

ADD_TAB

public static final ImageIcon ADD_TAB

REMOVE_TAB

public static final ImageIcon REMOVE_TAB

COLORS

public static final ImageIcon COLORS

ADD_COLORS

public static final ImageIcon ADD_COLORS

REMOVE_COLORS

public static final ImageIcon REMOVE_COLORS

NORTH

public static final ImageIcon NORTH

WEIGHT

public static final ImageIcon WEIGHT

JPEG

public static final ImageIcon JPEG

SPLIT

public static final ImageIcon SPLIT

FORWARD

public static final ImageIcon FORWARD

BACKWARD

public static final ImageIcon BACKWARD

PAGE_SETUP

public static final ImageIcon PAGE_SETUP

MANUAL

public static final ImageIcon MANUAL

MANUAL_BROWSER

public static final ImageIcon MANUAL_BROWSER

MANUAL1_BROWSER

public static final ImageIcon MANUAL1_BROWSER

LEGEND

public static final ImageIcon LEGEND

LABEL

public static final ImageIcon LABEL

RADIAL

public static final ImageIcon RADIAL

CONNECT

public static final ImageIcon CONNECT

DISCONNECT

public static final ImageIcon DISCONNECT

NO_HUB

public static final ImageIcon NO_HUB

PDF

public static final ImageIcon PDF

TUNING

public static final ImageIcon TUNING

PROFILE

public static final ImageIcon PROFILE

SYSTEM

public static final ImageIcon SYSTEM

KEEP_OPEN

public static final ImageIcon KEEP_OPEN

LISTEN

public static final ImageIcon LISTEN

TO_BROWSER

public static final ImageIcon TO_BROWSER

SYNTAX

public static final ImageIcon SYNTAX

FOOTPRINT

public static final ImageIcon FOOTPRINT

ZOOM_IN

public static final ImageIcon ZOOM_IN

ZOOM_OUT

public static final ImageIcon ZOOM_OUT

SKETCH

public static final ImageIcon SKETCH

PROGRESS

public static final ImageIcon PROGRESS

MATCHPLOT

public static final ImageIcon MATCHPLOT

CDSXMATCH

public static final ImageIcon CDSXMATCH

HISTO_SAVE

public static final ImageIcon HISTO_SAVE

HISTO_IMPORT

public static final ImageIcon HISTO_IMPORT

WARNING

public static final ImageIcon WARNING

APPROVE_ALL

public static final ImageIcon APPROVE_ALL

UP_DOWN

public static final ImageIcon UP_DOWN

FLOAT

public static final ImageIcon FLOAT

PLOT_DATA

public static final ImageIcon PLOT_DATA

PLOT_PAIR

public static final ImageIcon PLOT_PAIR

PLOT_HISTO

public static final ImageIcon PLOT_HISTO

PLOT2_PLANE

public static final ImageIcon PLOT2_PLANE

PLOT2_SKY

public static final ImageIcon PLOT2_SKY

PLOT2_CUBE

public static final ImageIcon PLOT2_CUBE

PLOT2_SPHERE

public static final ImageIcon PLOT2_SPHERE

PLOT2_TIME

public static final ImageIcon PLOT2_TIME

PLOT2_HISTOGRAM

public static final ImageIcon PLOT2_HISTOGRAM

HISTOBARS

public static final ImageIcon HISTOBARS

NAV_HELP

public static final ImageIcon NAV_HELP

NAV_DEC

public static final ImageIcon NAV_DEC

SMALL_CLOSE

public static final ImageIcon SMALL_CLOSE

SMALL_HELP

public static final ImageIcon SMALL_HELP

ADD_CONTROL

public static final ImageIcon ADD_CONTROL

AXIS_CONFIG

public static final ImageIcon AXIS_CONFIG

FRAME_CONFIG

public static final ImageIcon FRAME_CONFIG

SAVE_OVERLAY

public static final ImageIcon SAVE_OVERLAY

IMPORT_OVERLAY

public static final ImageIcon IMPORT_OVERLAY

COLLAPSED

public static final ImageIcon COLLAPSED

EXPANDED

public static final ImageIcon EXPANDED

HOME

public static final ImageIcon HOME

TV_UP

public static final ImageIcon TV_UP

TV_DOWN

public static final ImageIcon TV_DOWN

FOLDER_NODE

public static final ImageIcon FOLDER_NODE

LIBRARY_NODE

public static final ImageIcon LIBRARY_NODE

FUNCTION_NODE

public static final ImageIcon FUNCTION_NODE

CONSTANT_NODE

public static final ImageIcon CONSTANT_NODE

dummy

public static final ImageIcon dummy

BLANK

public static final Icon BLANK
Blank icon.

Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getImage

public 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 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 URL getExternalURL()
                   throws 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:
IOException

combineIcons

public static ImageIcon combineIcons(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 ImageIcon toAddIcon(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 ImageIcon toSaveIcon(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 ImageIcon toImportIcon(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 Icon getTopcatLogo()
Returns a full-size TOPCAT logo for display.

Returns:
topcat logo

getTopcatLogoSmall

public static Icon getTopcatLogoSmall()
Returns an icon-size TOPCAT logo.

Returns:
24x24 pixel topcat logo

checkResourcesPresent

public static void checkResourcesPresent()
                                  throws 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:
FileNotFoundException - if any of the graphics files are missing

writeHelpMapXML

public static void writeHelpMapXML(OutputStream ostrm,
                                   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 data
prefix - a string to prefix to each relative URL

main

public static void main(String[] args)
                 throws IOException
Invokes the writeHelpMapXML(java.io.OutputStream, java.lang.String) method to standard output.

Throws:
IOException


Copyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.