public abstract class AbstractCompositePageSegment extends AbstractMutablePageSegment implements com.levigo.jadice.document.internal.PageAwarePageSegment
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractCompositePageSegment.TransformedElement |
AbstractPageSegment.CacheableVisualElement
CACHE_KEY_CONTENTS, format, id
Constructor and Description |
---|
AbstractCompositePageSegment() |
Modifier and Type | Method and Description |
---|---|
void |
addPageSegment(PageSegment segment,
AffineTransform tx)
Place the given PageSegment into the composition using the given transform.
|
void |
addPageSegment(PageSegment segment,
AffineTransform tx,
Shape clipPath)
Place the given PageSegment into the composition using the given transform.
|
protected AbstractPageSegment.CacheableVisualElement |
createCacheableVisualElement()
This method is not part of the public API
|
protected void |
fireModified()
Fire a notification about a general change to the page segment.
|
Metadata |
getMetadata()
Return the exposed meta-data or
null if no meta-data is available. |
protected List<AbstractCompositePageSegment.TransformedElement> |
getSegments()
Warning: Just for internal use.
|
boolean |
isAuxiliary()
Return whether this PageSegment is in some way "auxiliary".
|
boolean |
isOpaqe()
Set whether this page segment is opaque (all white) regardless of whether the whole bounds are
taken up by component segments or not.
|
void |
setCurrentPage(Page page)
Set the context page for this page segment.
|
void |
setOpaqe(boolean clearBackground)
Set whether this page segment is opaque (all white) regardless of whether the whole bounds are
taken up by component segments or not.
|
void |
setSource(PageSegmentSource source) |
addPageSegmentListener, createPageSegmentEvent, fireModified, fireModified, removePageSegmentListener
getBounds, getCachedVisualElement, getId, getInitialized, getPermissions, getProperties, getResolution, getSize, getSource, isInitialized, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBounds, getSize, getSource
getProperties
getPermissions
getConditionFactories
getId
public Metadata getMetadata()
MetadataProvider
null
if no meta-data is available. An object being
a MetadataProvider is not required to provide a non-null
meta-data.getMetadata
in interface MetadataProvider
getMetadata
in class AbstractPageSegment
null
public void setSource(PageSegmentSource source)
setSource
in class AbstractPageSegment
public boolean isAuxiliary()
PageSegment
isAuxiliary
in interface PageSegment
isAuxiliary
in class AbstractPageSegment
true
if this page segment is auxiliary, false
if it represents
"main" page content.public void addPageSegment(PageSegment segment, AffineTransform tx)
segment
- the page segment to be placedtx
- the affine transform to be usedpublic void addPageSegment(PageSegment segment, AffineTransform tx, Shape clipPath)
segment
- the page segment to be placedtx
- the affine transform to be usedclipPath
- the clip path to be applied or null
if no clipping shall be applied.IllegalArgumentException
- if segment or tx is null.public void setCurrentPage(Page page)
com.levigo.jadice.document.internal.PageAwarePageSegment
setCurrentPage
in interface com.levigo.jadice.document.internal.PageAwarePageSegment
protected AbstractPageSegment.CacheableVisualElement createCacheableVisualElement() throws JadiceException
AbstractPageSegment
createCacheableVisualElement
in class AbstractPageSegment
JadiceException
public boolean isOpaqe()
public void setOpaqe(boolean clearBackground)
protected void fireModified()
AbstractMutablePageSegment
fireModified
in class AbstractMutablePageSegment
protected List<AbstractCompositePageSegment.TransformedElement> getSegments()
Copyright © 2024 levigo holding gmbh. All rights reserved.