com.levigo.jadice.document.creator
Class AbstractContentsPageSegment
java.lang.Object
com.levigo.jadice.document.AbstractPageSegment
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
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 |
AbstractContentsPageSegment
public AbstractContentsPageSegment(Page page)
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