public final class CompositePageSegment extends AbstractCompositePageSegment
CompositePageSegment
(cps) one or more PageSegment
s can be
arranged by transformations and clippings. The size of a cps is passed with the
constructor and is immutable. PageSegments that are outside of this area will not be
rendered.AbstractPageSegment.getPermissions()
, AbstractPageSegment.getProperties()
or
AbstractPageSegment.getSource()
to its child-segments. If needed, this has to be done manually using the
according getters and setters of the PageSegment
s.AbstractCompositePageSegment.TransformedElement
AbstractPageSegment.CacheableVisualElement
CACHE_KEY_CONTENTS, format, id
Constructor and Description |
---|
CompositePageSegment(Dimension2D size) |
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds()
Returns the raw size and position of the
PageSegment in base units. |
Dimension2D |
getSize()
Returns the raw size/dimensions of the
PageSegment in base units. |
addPageSegment, addPageSegment, createCacheableVisualElement, fireModified, getMetadata, getSegments, isAuxiliary, isOpaqe, setCurrentPage, setOpaqe, setSource
addPageSegmentListener, createPageSegmentEvent, fireModified, fireModified, removePageSegmentListener
getCachedVisualElement, getId, getInitialized, getPermissions, getProperties, getResolution, getSource, isInitialized, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSource
getProperties
getPermissions
getConditionFactories
getId
public CompositePageSegment(Dimension2D size)
size
- The size that is used for this pageSegment. The origin is always x=0 and y=0. Must
not be null. The given size is measured in Unit.JadiceDocumentUnit
s.IllegalArgumentException
- if passed size is null.public Rectangle2D getBounds()
PageSegment
PageSegment
in base units. Position is
measured in relation to the Page
's coordinate system's origin point (0,0).getBounds
in interface com.levigo.jadice.document.internal.presentation.group.VisualizationInitializer
getBounds
in interface PageSegment
getBounds
in class AbstractPageSegment
public Dimension2D getSize()
PageSegment
PageSegment
in base units.getSize
in interface PageSegment
getSize
in class AbstractPageSegment
PageSegment
's raw sizeCopyright © 2024 levigo holding gmbh. All rights reserved.