/* * [Embellishment.java] * * Summary: Enumeration of the various icons used to decorate items in a glossary. Not a macro. * * Copyright: (c) 2003-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.1 2009-03-21 dynamically detect image sizes at load time rather than manually specifying. * 1.2 2014-04-01 add altMarker to handle HTML5 alternate marker. */ package com.mindprod.htmlmacros.support; import com.mindprod.common18.EIO; import com.mindprod.common18.ImageInfo; import com.mindprod.common18.ST; import com.mindprod.csv.CSVReader; import com.mindprod.fastcat.FastCat; import com.mindprod.hunkio.HunkIO; import java.io.EOFException; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.EnumSet; import java.util.HashMap; import java.util.Map; import java.util.Set; import static com.mindprod.common18.ST.squish; import static com.mindprod.htmlmacros.macro.Global.configuration; import static java.lang.System.*; /** * Enumeration of the various icons used to decorate items in a glossary. Not a macro. * * @author Roedy Green, Canadian Mind Products * @version 1.2 2014-04-01 add altMarker to handle HTML5 alternate marker. * @see com.mindprod.htmlmacros.ValidateEmbellishments * @since 2003-06-14 */ @SuppressWarnings( { "UnusedDeclaration" } ) public enum Embellishment { // If you add new letters, there must be corresponding new // styles table.glossindex tr td a.ind? in mindprod.css, and icons image/ind/ind?.png // letter, name (for alt), width, height // Also add to list of legal embellishment letters below. // embellishments are used in HTMLMacros to add warning text about prices and listings // at the top of the page and in building indexes. AWT( 'A', "awt", null, null, null ) /* pentagon, info about awt coding, not Applet to run */, COLLECTION( 'C', "collection"/* grey butterfly */, null, null, null ), DEFUNCT( 'D', "defunct"/* turned turtle */, "defunct.html", null, null ), ESSAY( 'E', "essay", null, null, null ) /* pencil */, HUGE( 'H', "huge"/* elephant */, null, null, null ), /* coffee bean, also for Applet, JDisplay, CurrCorn requires Java to view */ JAVA( 'J', "java", "needsjava.html", "