Package org.apache.fop.layout

Examples of org.apache.fop.layout.LineArea.addLeader()


            //check whether leader fits into LineArea at all, otherwise
            //clip it (should honor the clip option of containing area)
            if (leaderLengthMinimum <=
                      la.getContentWidth()) {
                la.addLeader(leaderPattern,
                                               leaderLengthMinimum, leaderLengthOptimum,
                                               leaderLengthMaximum, ruleStyle, ruleThickness,
                                               leaderPatternWidth, leaderAlignment);
            } else {
                MessageHandler.errorln("Leader doesn't fit into line, it will be clipped to fit.");
View Full Code Here


                                               leaderLengthMinimum, leaderLengthOptimum,
                                               leaderLengthMaximum, ruleStyle, ruleThickness,
                                               leaderPatternWidth, leaderAlignment);
            } else {
                MessageHandler.errorln("Leader doesn't fit into line, it will be clipped to fit.");
                la.addLeader(leaderPattern,
                                               la.getRemainingWidth(),
                                               leaderLengthOptimum, leaderLengthMaximum,
                                               ruleStyle, ruleThickness, leaderPatternWidth,
                                               leaderAlignment);
            }
View Full Code Here

        //using length.optimum to determine where to break the line as defined
        // in the xsl:fo spec: "User agents may choose to use the value of 'leader-length.optimum'
        // to determine where to break the line" (7.20.4)
        //if leader is longer then create a new LineArea and put leader there
        if (leaderLengthOptimum <= (la.getRemainingWidth())) {
            la.addLeader(leaderPattern,
                                           leaderLengthMinimum, leaderLengthOptimum,
                                           leaderLengthMaximum, ruleStyle, ruleThickness,
                                           leaderPatternWidth, leaderAlignment);
        } else {
            la = ba.createNextLineArea();
View Full Code Here

            //check whether leader fits into LineArea at all, otherwise
            //clip it (should honor the clip option of containing area)
            if (leaderLengthMinimum <=
                      la.getContentWidth()) {
                la.addLeader(leaderPattern,
                                               leaderLengthMinimum, leaderLengthOptimum,
                                               leaderLengthMaximum, ruleStyle, ruleThickness,
                                               leaderPatternWidth, leaderAlignment);
            } else {
                MessageHandler.errorln("Leader doesn't fit into line, it will be clipped to fit.");
View Full Code Here

                                               leaderLengthMinimum, leaderLengthOptimum,
                                               leaderLengthMaximum, ruleStyle, ruleThickness,
                                               leaderPatternWidth, leaderAlignment);
            } else {
                MessageHandler.errorln("Leader doesn't fit into line, it will be clipped to fit.");
                la.addLeader(leaderPattern,
                                               la.getRemainingWidth(),
                                               leaderLengthOptimum, leaderLengthMaximum,
                                               ruleStyle, ruleThickness, leaderPatternWidth,
                                               leaderAlignment);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.