Package overit.geocall.ecs
Class IconHD
java.lang.Object
overit.geocall.ecs.ComposedElement
overit.geocall.ecs.Icon
overit.geocall.ecs.IconHD
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ecs.Element,org.apache.ecs.ElementRegistry
This class defines an high definition Icon
A legacy icon mode can be forced via property. If legacy mode is not active, icon name is transformed
(see the setupIcon() method) so that a corresponding svg icon is showed in place of the legacy icon.
Appropriate css classes provide the right fill color to the svg icon, in accordance to the theme main color.
- See Also:
-
Field Summary
FieldsFields inherited from class overit.geocall.ecs.Icon
_align, _basename, _extension, _height, _icon, _id, _name, _nonStandardAttributes, _officon, _onclick, _path, _state, _title, _width, altIcon, closeup, CSS16, down, downdown, grid, hiddenGrid, INFER_ALFA, INFER_ALFASIZE, INFER_ALFAXxY, left, leftleft, opendown, right, rightright, STATE_ENABLED, STATE_FORBIDDEN, STATE_NORMAL, STATE_RO, style, undo, up, upup, xFields inherited from class overit.geocall.ecs.ComposedElement
_osOut, _pw, _pwOutFields inherited from interface org.apache.ecs.Element
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompose()Invokes the appropriate specific methods, based on the characteristics of the image.protected voidCreates the img tag that tracks the image defined characteristics.protected voidGets the current base css classes set for the iconvoidsetBaseClass(String baseClass) Sets the base classMethods inherited from class overit.geocall.ecs.Icon
composeCss, composeImage, getBasename, getCopy, getDisabledSrc, getEnabledSrc, getExtension, getHeight, getNonStandardAttributes, getPath, getSrc, getState, getWidth, infer, isEnabled, setAlign, setAlt, setHeight, setID, setName, setNonStandardAttributes, setOnClick, setState, setStyle, setTitle, setWidthMethods inherited from class overit.geocall.ecs.ComposedElement
addElementToRegistry, addElementToRegistry, createEndTag, createStartTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilterState, getNeedClosingTag, getNeedLineBreak, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, out, out, outAttribute, outListAttribute, outListAttribute, outOn, outOut, output, output, registryHasElement, registryHasElement, removeBeginEndModifier, removeBeginStartModifier, removeElementFromRegistry, removeElementFromRegistry, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginModifier, setBeginModifier, setBeginStartModifier, setCase, setCodeSet, setElementType, setEndEndModifier, setEndModifier, setEndModifier, setEndStartModifier, setEndTagChar, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
-
Field Details
-
_baseClass
-
-
Constructor Details
-
IconHD
Creates a new instance of IconHD- Parameters:
name- The name of the IconHD
-
IconHD
Creates a new instance of IconHD- Parameters:
name- The name of the IconHDbaseClass- The name of the base class
-
-
Method Details
-
setBaseClass
Sets the base class- Parameters:
baseClass- The base class to set
-
getBaseCssClass
Gets the current base css classes set for the icon- Returns:
- the current base css classes set for the icon
-
compose
public void compose()Invokes the appropriate specific methods, based on the characteristics of the image. -
composeIcon
protected void composeIcon()Creates the img tag that tracks the image defined characteristics. Used for all non-legacy mode cases. -
composeSvgHD
protected void composeSvgHD()
-