com.levigo.jadice.document.creator
Class DynamicCompositePageSegment
java.lang.Object
com.levigo.jadice.document.AbstractPageSegment
com.levigo.jadice.document.AbstractMutablePageSegment
com.levigo.jadice.document.creator.AbstractCompositePageSegment
com.levigo.jadice.document.creator.DynamicCompositePageSegment
- All Implemented Interfaces:
- com.levigo.jadice.document.internal.model.RenderRoot, MetadataProvider, MutablePageSegment, PageSegment, PermissionsProvider<PageSegment>, PropertiesProvider, Identifiable
public final class DynamicCompositePageSegment
- extends AbstractCompositePageSegment
Within a DynamicCompositePageSegment
(dcps) one or more PageSegments 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:
- The upper left corner is always x=0 and y=0. Therefore the dcps can only "grow" in
positive x- and y-direction, negative bounds are not included to the resulting bounds. This has
to be considered when adding transformed pageSegments.
- When clipping a pageSegment, only the remaining shape is included to the bounds.
A dcps is not delegating 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.
Method Summary |
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. |
Methods inherited from interface com.levigo.jadice.document.internal.model.RenderRoot |
createRendering, isInitialized |
LOGGER
protected static final Logger LOGGER
DynamicCompositePageSegment
public DynamicCompositePageSegment()
getBounds
public Rectangle2D getBounds()
- Description copied from interface:
PageSegment
- Returns the raw size and position of the
PageSegment
in base units. Position is
measured in relation to the Page
's coordinate system's origin point (0,0).
- Specified by:
getBounds
in interface com.levigo.jadice.document.internal.model.RenderRoot
- Specified by:
getBounds
in interface PageSegment
- Overrides:
getBounds
in class AbstractPageSegment
- Returns:
- the raw size and position
getSize
public Dimension2D getSize()
- Description copied from interface:
PageSegment
- Returns the raw size/dimensions of the
PageSegment
in base units.
- Specified by:
getSize
in interface PageSegment
- Overrides:
getSize
in class AbstractPageSegment
- Returns:
- the
PageSegment
's raw size
fireModified
protected void fireModified()
- Description copied from class:
AbstractMutablePageSegment
- Fire a notification about a general change to the page segment. Please consider firing a more
specialized one, indicating the actual damage region.
- Overrides:
fireModified
in class AbstractCompositePageSegment
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.