com.levigo.jadice.document.creator
Class CompositePageSegment
java.lang.Object
com.levigo.jadice.document.AbstractPageSegment
com.levigo.jadice.document.AbstractMutablePageSegment
com.levigo.jadice.document.creator.AbstractCompositePageSegment
com.levigo.jadice.document.creator.CompositePageSegment
- All Implemented Interfaces:
- com.levigo.jadice.document.internal.model.RenderRoot, MetadataProvider, MutablePageSegment, PageSegment, PermissionsProvider<PageSegment>, PropertiesProvider, Identifiable
public final class CompositePageSegment
- extends AbstractCompositePageSegment
Within a 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.
* A cps 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 of the PageSegment
s.
Method Summary |
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 |
CompositePageSegment
public CompositePageSegment(Rectangle2D bounds)
throws NullPointerException
- Deprecated. The applied origin is always x=0 and y=0, irrespective of the passed bounds origin.
Use
CompositePageSegment(Dimension2D)
instead.
- Parameters:
bounds
- The bounds used for this CompositePageSegment. Must not be null.
- Throws:
IllegalArgumentException
- if passed bounds are null.
NullPointerException
CompositePageSegment
public CompositePageSegment(Dimension2D size)
- Parameters:
size
- The size that is used for this pageSegment. The origin is always x=0 and y=0. Must
not be null.
- Throws:
IllegalArgumentException
- if passed size is null.
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
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.