Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is fop.jar in fop-2.7-bin.zip
What Is fop.jar? I got it from the fop-2.7-bin.zip.
✍: FYIcenter.com
fop.jar in fop-2.7-bin.zip is the JAR file for FOP 2.7, which is a print formatter driven by XSL formatting objects (XSL-FO). You can obtain fop.jar from the build folder of the fop-2.7-bin.zip file.
Below is the information about the fop.jar (2.2) file:
JAR File Size and Download Location:
JAR name: fop.jar, fop-2.7.jar Target JDK version: 1.7 File name: fop.jar File size: 4442817 bytes Release date: 20-Jan-2022 Download: Apache FOP Website
Java source code files for fop.jar:
⏎ org/apache/fop/layoutmgr/FloatContentLayoutManager.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* $Id$ */ package org.apache.fop.layoutmgr; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.ListIterator; import org.apache.fop.area.Area; import org.apache.fop.area.SideFloat; import org.apache.fop.fo.Constants; import org.apache.fop.fo.flow.Float; import org.apache.fop.fo.properties.CommonBorderPaddingBackground; import org.apache.fop.layoutmgr.inline.FloatLayoutManager; import org.apache.fop.layoutmgr.inline.KnuthInlineBox; import org.apache.fop.layoutmgr.table.TableLayoutManager; public class FloatContentLayoutManager extends SpacedBorderedPaddedBlockLayoutManager { private SideFloat floatContentArea; private int side; private int yOffset; /** * {Add info} * * @param node the {@link Float} associated with this instance */ public FloatContentLayoutManager(Float node) { super(node); generatesReferenceArea = true; side = node.getFloat(); } @Override public Keep getKeepTogether() { return getParentKeepTogether(); } @Override public Keep getKeepWithNext() { return Keep.KEEP_AUTO; } @Override public Keep getKeepWithPrevious() { return Keep.KEEP_ALWAYS; } @Override public void addAreas(PositionIterator parentIter, LayoutContext layoutContext) { floatContentArea = new SideFloat(); AreaAdditionUtil.addAreas(this, parentIter, layoutContext); flush(); } @Override public void addChildArea(Area childArea) { floatContentArea.addChildArea(childArea); floatContentArea.setBPD(childArea.getAllocBPD()); int effectiveContentIPD = getContentAreaIPD(childLMs, childArea); int contentIPD = childArea.getIPD(); int xOffset = childArea.getBorderAndPaddingWidthStart(); floatContentArea.setIPD(effectiveContentIPD); childArea.activateEffectiveIPD(); if (side == Constants.EN_END || side == Constants.EN_RIGHT) { xOffset += getStartIndent(); floatContentArea.setXOffset(xOffset + contentIPD - effectiveContentIPD); } else if (side == Constants.EN_START || side == Constants.EN_LEFT) { floatContentArea.setXOffset(xOffset); } LayoutManager lm = parentLayoutManager; while (!lm.getGeneratesReferenceArea()) { lm = lm.getParent(); } yOffset = lm.getParentArea(floatContentArea).getBPD(); lm.addChildArea(floatContentArea); if (side == Constants.EN_END || side == Constants.EN_RIGHT) { lm.getPSLM().setEndIntrusionAdjustment(effectiveContentIPD); } else if (side == Constants.EN_START || side == Constants.EN_LEFT) { lm.getPSLM().setStartIntrusionAdjustment(effectiveContentIPD); } } private int getContentAreaIPD(List<LayoutManager> childLMs, Area childArea) { int ipd = getContentAreaIPD(childLMs); if (ipd == 0) { return childArea.getEffectiveAllocIPD(); } return ipd; } private int getContentAreaIPD(List<LayoutManager> childLMs) { int ipd = 0; for (LayoutManager childLM : childLMs) { if (childLM instanceof TableLayoutManager) { ipd += childLM.getContentAreaIPD(); } else { ipd += getContentAreaIPD(childLM.getChildLMs()); } } return ipd; } /** * {Add info} * * @param elemenList * @param startIndex * @param endIndex * @return */ public static List<FloatContentLayoutManager> checkForFloats(List<ListElement> elemenList, int startIndex, int endIndex) { ListIterator<ListElement> iter = elemenList.listIterator(startIndex); List<FloatContentLayoutManager> floats = new ArrayList<FloatContentLayoutManager>(); while (iter.nextIndex() <= endIndex) { ListElement element = iter.next(); if (element instanceof KnuthInlineBox && ((KnuthInlineBox) element).isFloatAnchor()) { floats.add(((KnuthInlineBox) element).getFloatContentLM()); } else if (element instanceof KnuthBlockBox && ((KnuthBlockBox) element).hasFloatAnchors()) { floats.addAll(((KnuthBlockBox) element).getFloatContentLMs()); } } if (floats.isEmpty()) { return Collections.emptyList(); } else { return floats; } } @Override protected CommonBorderPaddingBackground getCommonBorderPaddingBackground() { return null; } /** * {Add info} * * @param layoutContext */ public void processAreas(LayoutContext layoutContext) { if (getParent() instanceof FloatLayoutManager) { FloatLayoutManager flm = (FloatLayoutManager) getParent(); flm.processAreas(layoutContext); } } /** * @return the height of the float content area */ public int getFloatHeight() { return floatContentArea.getAllocBPD(); } /** * @return the y-offset of the float content */ public int getFloatYOffset() { return yOffset; } private int getStartIndent() { int startIndent; LayoutManager lm = getParent(); while (!(lm instanceof BlockLayoutManager)) { lm = lm.getParent(); } startIndent = ((BlockLayoutManager) lm).startIndent; return startIndent; } }
⏎ org/apache/fop/layoutmgr/FloatContentLayoutManager.java
Or download all of them as a single archive file:
File name: fop-2.7-src.zip File size: 3401312 bytes Release date: 2022-01-20 Download
⇒ "fop" Command in fop-2.7-bin.zip
2016-07-07, 57545👍, 0💬
Popular Posts:
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....