Package org.apache.fop.fo.properties

Examples of org.apache.fop.fo.properties.ColorProperty


        case TOK_COLORSPEC:
            FOUserAgent ua = (propInfo == null)
                ? null
                : (propInfo.getFO() == null ? null : propInfo.getFO().getUserAgent());
            prop = new ColorProperty(ua, currentTokenValue);
            break;

        case TOK_FUNCTION_LPAR:
            Function function = (Function)FUNCTION_TABLE.get(currentTokenValue);
            if (function == null) {
View Full Code Here


                    Property p, PropertyList propertyList, FObj fo) throws PropertyException {
                String nameval = p.getNCname();
                if (nameval != null) {
                    FObj fobj = (fo == null ? propertyList.getFObj() : fo);
                    FOUserAgent ua = (fobj == null ? null : fobj.getUserAgent());
                    return new ColorProperty(ua, nameval);
                }
                return super.convertPropertyDatatype(p, propertyList, fo);
            }
        };
        m.useGeneric(genericColor);
View Full Code Here

        case TOK_COLORSPEC:
            FOUserAgent ua = (propInfo == null)
                ? null
                : (propInfo.getFO() == null ? null : propInfo.getFO().getUserAgent());
            prop = new ColorProperty(ua, currentTokenValue);
            break;

        case TOK_FUNCTION_LPAR:
            Function function = (Function)FUNCTION_TABLE.get(currentTokenValue);
            if (function == null) {
View Full Code Here

    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
        FOUserAgent ua = (pInfo == null)
                ? null
                : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent());
        return new ColorProperty(ua, "system-color(" + args[0] + ")");

    }
View Full Code Here

    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
      FOUserAgent ua = (pInfo == null)
              ? null
              : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent());
      return new ColorProperty(ua, "rgb(" + args[0] + "," + args[1] + "," + args[2] + ")");

    }
View Full Code Here

        StringBuffer sb = new StringBuffer();
        sb.append("cmyk(" + args[0] + "," + args[1] + "," + args[2] + "," + args[3] + ")");
        FOUserAgent ua = (pInfo == null)
                ? null
                : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent());
        return new ColorProperty(ua, sb.toString());
    }
View Full Code Here

        }
        sb.append(")");
        FOUserAgent ua = (pInfo == null
                ? null
                : (pInfo.getFO() == null ? null : pInfo.getFO().getUserAgent()));
        return new ColorProperty(ua, sb.toString());
    }
View Full Code Here

                    Property p, PropertyList propertyList, FObj fo) throws PropertyException {
                String nameval = p.getNCname();
                if (nameval != null) {
                    FObj fobj = (fo == null ? propertyList.getFObj() : fo);
                    FOUserAgent ua = (fobj == null ? null : fobj.getUserAgent());
                    return new ColorProperty(ua, nameval);
                }
                return super.convertPropertyDatatype(p, propertyList, fo);
            }
        };
        m.useGeneric(genericColor);
View Full Code Here

TOP

Related Classes of org.apache.fop.fo.properties.ColorProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.