Package net.sf.jpluck.plucker.functions

Examples of net.sf.jpluck.plucker.functions.TextColor


    public static final Align alignJustify() {
        return ALIGN_JUSTIFY;
    }

    public static final TextColor textColor(int red, int green, int blue) {
        return new TextColor(red, green, blue);
    }
View Full Code Here


    public static final TextColor textColor(int red, int green, int blue) {
        return new TextColor(red, green, blue);
    }

    public static final TextColor textColor(Color color) {
        return new TextColor(color);
    }
View Full Code Here

          }
          if (textRecord.document.isUseLinkColoring()) {
            Color brokenLinkColor = textRecord.document.getUnresolvedLinkColor();
            if (brokenLink && (brokenLinkColor != null)) {
              // Add a text color function to color the link
              TextColor textColor = new TextColor(brokenLinkColor);

              // Preceding NUL
              out.writeByte(0);
              textColor.write(out);
              linkColored = true;
            } else if (linkColor != null) {
              // Add a text color function to color the link
              TextColor textColor = new TextColor(linkColor);
              // Preceding NUL
              out.writeByte(0);
              textColor.write(out);
              linkColored = true;
            }
          }
        }
        if (function instanceof TextColor) {
          if (textRecord.document.isUseTextColors()) {
            textRecord.currentTextColor = ((TextColor) function).getColor();
          } else {
            continue;
          }
        }
        out.writeByte(0); // Preceding NUL
        function.write(out);
        if (function instanceof LinkEnd && linkColored) {
          // Preceding NUL
          out.writeByte(0);
          if (textRecord.currentTextColor != null) {
            new TextColor(textRecord.currentTextColor).write(out);
          } else {
            // Assume black
            Functions.TEXT_COLOR_BLACK.write(out);
          }
          linkColored = false;
View Full Code Here

TOP

Related Classes of net.sf.jpluck.plucker.functions.TextColor

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.