|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.AbstractPageSegment
public abstract class AbstractPageSegment
Nested Class Summary | |
---|---|
protected static class |
AbstractPageSegment.CacheableRendering
|
Field Summary | |
---|---|
protected static Object |
CACHE_KEY_CONTENTS
the key with which the contents will be cached if this PageSegment is able to cache its contents |
protected Format |
format
Human readable format description. |
protected String |
id
|
Constructor Summary | |
---|---|
AbstractPageSegment()
Construct a page segment. |
Method Summary | |
---|---|
com.levigo.jadice.document.internal.model.RenderElement |
createRendering()
Caveat: this method is not part of the public API. |
protected AbstractPageSegment.CacheableRendering |
doCreateCacheableRendering()
|
Rectangle2D |
getBounds()
Returns the raw size and position of the PageSegment in base units. |
protected AbstractPageSegment.CacheableRendering |
getCachedRendering()
|
String |
getId()
Return the unique identifier for this object. |
Metadata |
getMetadata()
Return the exposed meta-data or null if no meta-data is available. |
Permissions<PageSegment> |
getPermissions()
Provides an instance of Permissions . |
Map<String,Object> |
getProperties()
Return a map of user properties. |
Resolution |
getResolution()
Return the resolution of the page segment (in DPI). |
Dimension2D |
getSize()
Returns the raw size/dimensions of the PageSegment in base units. |
PageSegmentSource |
getSource()
Get the PageSegmentSource describing the source of this page segment. |
boolean |
isAuxiliary()
Return whether this PageSegment is in some way "auxiliary". |
boolean |
isInitialized()
|
protected void |
setSource(PageSegmentSource source)
|
String |
toString()
Description of this page segment instances |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Object CACHE_KEY_CONTENTS
protected Format format
protected String id
Constructor Detail |
---|
public AbstractPageSegment()
Method Detail |
---|
public PageSegmentSource getSource()
PageSegment
PageSegmentSource
describing the source of this page segment. Returns
null
if the page segment is not derived from a source.
getSource
in interface PageSegment
protected void setSource(PageSegmentSource source)
public Resolution getResolution()
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.
public Dimension2D getSize()
PageSegment
PageSegment
in base units.
getSize
in interface PageSegment
PageSegment
's raw sizepublic Rectangle2D getBounds()
PageSegment
PageSegment
in base units. Position is
measured in relation to the Page
's coordinate system's origin point (0,0).
getBounds
in interface com.levigo.jadice.document.internal.model.RenderRoot
getBounds
in interface PageSegment
public String toString()
toString
in class Object
Object.toString()
protected AbstractPageSegment.CacheableRendering getCachedRendering()
public boolean isInitialized()
isInitialized
in interface com.levigo.jadice.document.internal.model.RenderRoot
public com.levigo.jadice.document.internal.model.RenderElement createRendering()
createRendering
in interface com.levigo.jadice.document.internal.model.RenderRoot
RenderRoot.createRendering()
protected AbstractPageSegment.CacheableRendering doCreateCacheableRendering() throws JadiceException
JadiceException
public Metadata getMetadata()
MetadataProvider
null
if no meta-data is available. An object being
a MetadataProvider is not required to provide a non-null
meta-data.
getMetadata
in interface MetadataProvider
null
public Map<String,Object> getProperties()
PropertiesProvider
getProperties
in interface PropertiesProvider
public String getId()
Identifiable
getId
in interface Identifiable
public boolean isAuxiliary()
PageSegment
isAuxiliary
in interface PageSegment
true
if this page segment is auxiliary, false
if it
represents "main" page content.public Permissions<PageSegment> getPermissions()
PermissionsProvider
Permissions
. Must never return null
.
getPermissions
in interface PermissionsProvider<PageSegment>
Permissions
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |