com.levigo.jadice.document.creator
Class DynamicCompositePageSegment

java.lang.Object
  extended by com.levigo.jadice.document.AbstractPageSegment
      extended by com.levigo.jadice.document.AbstractMutablePageSegment
          extended by com.levigo.jadice.document.creator.AbstractCompositePageSegment
              extended by 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 PageSegments and AffineTransforms:

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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.levigo.jadice.document.creator.AbstractCompositePageSegment
AbstractCompositePageSegment.TransformedElement
 
Nested classes/interfaces inherited from class com.levigo.jadice.document.AbstractPageSegment
AbstractPageSegment.CacheableRendering
 
Field Summary
protected static Logger LOGGER
           
 
Fields inherited from class com.levigo.jadice.document.AbstractPageSegment
CACHE_KEY_CONTENTS, format, id
 
Constructor Summary
DynamicCompositePageSegment()
           
 
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 class com.levigo.jadice.document.creator.AbstractCompositePageSegment
addPageSegment, addPageSegment, doCreateCacheableRendering, getMetadata, getSegments, isAuxiliary, isOpaqe, setOpaqe, setSource
 
Methods inherited from class com.levigo.jadice.document.AbstractMutablePageSegment
addPageSegmentListener, createPageSegmentEvent, fireModified, fireModified, removePageSegmentListener
 
Methods inherited from class com.levigo.jadice.document.AbstractPageSegment
createRendering, getCachedRendering, getId, getPermissions, getProperties, getResolution, getSource, isInitialized, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.levigo.jadice.document.PageSegment
getSource
 
Methods inherited from interface com.levigo.jadice.document.util.PropertiesProvider
getProperties
 
Methods inherited from interface com.levigo.jadice.document.PermissionsProvider
getPermissions
 
Methods inherited from interface com.levigo.util.base.Identifiable
getId
 
Methods inherited from interface com.levigo.jadice.document.internal.model.RenderRoot
createRendering, isInitialized
 

Field Detail

LOGGER

protected static final Logger LOGGER
Constructor Detail

DynamicCompositePageSegment

public DynamicCompositePageSegment()
Method Detail

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.