com.levigo.jadice.document.creator
Class AbstractContentsPageSegment

java.lang.Object
  extended by com.levigo.jadice.document.AbstractPageSegment
      extended by com.levigo.jadice.document.creator.AbstractContentsPageSegment
All Implemented Interfaces:
com.levigo.jadice.document.internal.model.RenderRoot, MetadataProvider, PageSegment, PermissionsProvider<PageSegment>, PropertiesProvider, Identifiable
Direct Known Subclasses:
DecorationPageSegment

public abstract class AbstractContentsPageSegment
extends AbstractPageSegment


Nested Class Summary
 
Nested classes/interfaces inherited from class com.levigo.jadice.document.AbstractPageSegment
AbstractPageSegment.CacheableRendering
 
Field Summary
 
Fields inherited from class com.levigo.jadice.document.AbstractPageSegment
CACHE_KEY_CONTENTS, format, id
 
Constructor Summary
AbstractContentsPageSegment(Page page)
           
 
Method Summary
protected  AbstractPageSegment.CacheableRendering doCreateCacheableRendering()
           
protected abstract  void doCreateContents(GraphicalState initialState)
           
protected  String[] getAvailableFontFamilies()
           
 Resolution getResolution()
          Return the resolution of the page segment (in DPI).
 Dimension2D getSize()
          Returns the raw size/dimensions of the PageSegment in base units.
 
Methods inherited from class com.levigo.jadice.document.AbstractPageSegment
createPageSegmentEvent, createRendering, fireModified, fireModified, fireModified, getBounds, getCachedRendering, getId, getMetadata, getPage, getPermissions, getProperties, getSource, isAuxiliary, isInitialized, setSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractContentsPageSegment

public AbstractContentsPageSegment(Page page)
Method Detail

doCreateCacheableRendering

protected AbstractPageSegment.CacheableRendering doCreateCacheableRendering()
                                                                     throws JadiceException
Overrides:
doCreateCacheableRendering in class AbstractPageSegment
Throws:
JadiceException

doCreateContents

protected abstract void doCreateContents(GraphicalState initialState)

getAvailableFontFamilies

protected final String[] getAvailableFontFamilies()

getResolution

public Resolution getResolution()
Description copied from class: AbstractPageSegment
Return the resolution of the page segment (in DPI).

Page segments usually return just the base resolution as their native resolution. Page segments with pixel-data return the actual pixel resolution they can provide. This information is used to hint e.g. the printer about the maximum resolution a page segment can produce.

Overrides:
getResolution in class AbstractPageSegment
Returns:
Dimension where the width part contains the horizontal and the height part contains the vertical resolution

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 © 2017 levigo holding gmbh. All rights reserved.