class SCNToolTip extends ColorToolTip
{
    private static final Logger LOG = LogManager.getLogger(SCNToolTip.class);

    /**
     * Constructor.
     * @param rowText String instance.
     */
    SCNToolTip(PDResources resources, String colorSpaceName, String rowText)
    {
        createMarkUp(resources, colorSpaceName.substring(1).trim(), rowText);
    }

    private void createMarkUp(PDResources resources, String colorSpaceName, String rowText)
    {<FILL_FUNCTION_BODY>}
}

        PDColorSpace colorSpace = null;
        try
        {
            colorSpace = resources.getColorSpace(COSName.getPDFName(colorSpaceName));
        }
        catch (IOException e)
        {
            LOG.error(e.getMessage(), e);
        }
        if (colorSpace instanceof PDPattern)
        {
            setToolTipText("<html>Pattern</html>");
            return;
        }
        if (colorSpace != null)
        {
            try
            {
                float[] rgbValues = colorSpace.toRGB(extractColorValues(rowText));
                if (rgbValues != null)
                {
                    Color color = new Color(rgbValues[0], rgbValues[1], rgbValues[2]);
                    setToolTipText(getMarkUp(colorHexValue(color)));
                }
            }
            catch (IOException e)
            {
                LOG.error(e.getMessage(), e);
            }
        }
    
<methods>public java.lang.String getToolTipText() ,public void setToolTipText(java.lang.String) <variables>private java.lang.String toolTipText