/** * Sets the color to use for function arguments. * * @param color The color to use. This is ignored if <code>null</code>. * @see #setTypeColor(Color) */ public void setParamColor(Color color) { if (color!=null) { paramColor = Util.getHexString(color); } }
/** * Sets the color to use for function/field types. Note that if * {@link #getShowTypes()} returns <code>false</code>, this property * effectively does nothing. * * @param color The color to use for types. This is ignored if * <code>null</code>. * @see #setShowTypes(boolean) * @see #setParamColor(Color) */ public void setTypeColor(Color color) { if (color!=null) { typeColor = Util.getHexString(color); } }
/** * Returns a decent "parameter" color based on the current default * foreground color. * * @return The parameter color to use. */ private String createParamColor() { return Util.isLightForeground(getForeground()) ? Util.getHexString(Util.getHyperlinkForeground()): "#aa0077"; }
"body { font-family: " + font.getFamily() + "; font-size: " + font.getSize() + "pt" + "; color: " + Util.getHexString(fg) + "; }"); "a { color: " + Util.getHexString(linkFG) + "; }");