public class LayoutManagerMapping extends Object implements ExpandLayoutManagerMaker
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
protected Map<Object,Object> |
makers
The map of LayoutManagerMakers
|
protected org.apache.fop.apps.FOUserAgent |
userAgent |
Constructor and Description |
---|
LayoutManagerMapping()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.fop.apps.FOUserAgent userAgent)
Initializes the set of maker objects associated with this LayoutManagerMapping
|
org.apache.fop.layoutmgr.inline.ContentLayoutManager |
makeContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm,
org.apache.fop.fo.pagination.Title title) |
org.apache.fop.layoutmgr.ExternalDocumentLayoutManager |
makeExternalDocumentLayoutManager(org.apache.fop.area.AreaTreeHandler ath,
org.apache.fop.fo.extensions.ExternalDocument ed) |
org.apache.fop.layoutmgr.FlowLayoutManager |
makeFlowLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm,
org.apache.fop.fo.pagination.Flow flow) |
org.apache.fop.layoutmgr.LayoutManager |
makeLayoutManager(org.apache.fop.fo.FONode node) |
void |
makeLayoutManagers(org.apache.fop.fo.FONode node,
List lms) |
org.apache.fop.layoutmgr.PageSequenceLayoutManager |
makePageSequenceLayoutManager(org.apache.fop.area.AreaTreeHandler ath,
org.apache.fop.fo.pagination.PageSequence ps) |
org.apache.fop.layoutmgr.StaticContentLayoutManager |
makeStaticContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm,
org.apache.fop.fo.pagination.StaticContent sc,
org.apache.fop.area.Block block) |
org.apache.fop.layoutmgr.StaticContentLayoutManager |
makeStaticContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm,
org.apache.fop.fo.pagination.StaticContent sc,
org.apache.fop.fo.pagination.SideRegion reg) |
protected void |
registerMaker(Class<?> clazz,
LayoutManagerMapping.Maker maker)
Registers a Maker class for a specific formatting object.
|
public void initialize(org.apache.fop.apps.FOUserAgent userAgent)
initialize
in interface ExpandLayoutManagerMaker
userAgent
- 用户代理protected void registerMaker(Class<?> clazz, LayoutManagerMapping.Maker maker)
clazz
- the formatting object classmaker
- the maker for the layout managerpublic void makeLayoutManagers(org.apache.fop.fo.FONode node, List lms)
makeLayoutManagers
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.LayoutManager makeLayoutManager(org.apache.fop.fo.FONode node)
makeLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.PageSequenceLayoutManager makePageSequenceLayoutManager(org.apache.fop.area.AreaTreeHandler ath, org.apache.fop.fo.pagination.PageSequence ps)
makePageSequenceLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.ExternalDocumentLayoutManager makeExternalDocumentLayoutManager(org.apache.fop.area.AreaTreeHandler ath, org.apache.fop.fo.extensions.ExternalDocument ed)
makeExternalDocumentLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.FlowLayoutManager makeFlowLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm, org.apache.fop.fo.pagination.Flow flow)
makeFlowLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.inline.ContentLayoutManager makeContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm, org.apache.fop.fo.pagination.Title title)
makeContentLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.StaticContentLayoutManager makeStaticContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm, org.apache.fop.fo.pagination.StaticContent sc, org.apache.fop.fo.pagination.SideRegion reg)
makeStaticContentLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
public org.apache.fop.layoutmgr.StaticContentLayoutManager makeStaticContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager pslm, org.apache.fop.fo.pagination.StaticContent sc, org.apache.fop.area.Block block)
makeStaticContentLayoutManager
in interface org.apache.fop.layoutmgr.LayoutManagerMaker
Copyright © 2024. All rights reserved.