public final class DynamicCompositePageSegment extends AbstractCompositePageSegment
DynamicCompositePageSegment
(dcps) one or more PageSegment
s can
be arranged by transformations and clippings. In difference to a CompositePageSegment
the
bounds of a dcps are dynamically calculated, using the added PageSegment
s and
AffineTransform
s:
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
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
CACHE_KEY_CONTENTS, format, id
Constructor and Description |
---|
DynamicCompositePageSegment() |
Modifier and Type | Method and Description |
---|---|
protected void |
fireModified()
Fire a notification about a general change to the page segment.
|
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, 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
protected static final Logger LOGGER
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 sizeprotected void fireModified()
AbstractMutablePageSegment
fireModified
in class AbstractCompositePageSegment
Copyright © 2024 levigo holding gmbh. All rights reserved.