Package com.levigo.jadice.document
Interface PageSegment
-
- All Superinterfaces:
ConditionFactoryProvider,Identifiable,MetadataProvider,PermissionsProvider<PageSegment>,PropertiesProvider
- All Known Subinterfaces:
MutablePageSegment
- All Known Implementing Classes:
AbstractCompositePageSegment,AbstractMutablePageSegment,AbstractPageSegment,AnnotationPageSegment,CompositePageSegment,ContentsCreatorPageSegment,DynamicCompositePageSegment,LazyStreamPageSegment
public interface PageSegment extends PropertiesProvider, MetadataProvider, PermissionsProvider<PageSegment>, ConditionFactoryProvider, Identifiable
APageSegmentrepresents a single layer of aPage, i.e. the Page consists of a stack of PageSegments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rectangle2DgetBounds()Returns the raw size and position of thePageSegmentin base units.Dimension2DgetSize()Returns the raw size/dimensions of thePageSegmentin base units.PageSegmentSourcegetSource()Get thePageSegmentSourcedescribing the source of this page segment.booleanisAuxiliary()Return whether this PageSegment is in some way "auxiliary".-
Methods inherited from interface com.levigo.jadice.document.condition.ConditionFactoryProvider
getConditionFactories
-
Methods inherited from interface org.jadice.util.base.Identifiable
getId
-
Methods inherited from interface com.levigo.jadice.document.metadata.MetadataProvider
getMetadata
-
Methods inherited from interface com.levigo.jadice.document.PermissionsProvider
getPermissions
-
Methods inherited from interface com.levigo.jadice.document.util.PropertiesProvider
getProperties
-
-
-
-
Method Detail
-
getSource
PageSegmentSource getSource()
Get thePageSegmentSourcedescribing the source of this page segment. Returnsnullif the page segment is not derived from a source.- Returns:
- the page segment source
-
getSize
Dimension2D getSize()
Returns the raw size/dimensions of thePageSegmentin base units.- Returns:
- the
PageSegment's raw size
-
getBounds
Rectangle2D getBounds()
Returns the raw size and position of thePageSegmentin base units. Position is measured in relation to thePage's coordinate system's origin point (0,0).- Returns:
- the raw size and position
-
isAuxiliary
boolean isAuxiliary()
Return whether this PageSegment is in some way "auxiliary". Auxiliary page segments contain additions to the main page segment, but rarely represent the main page content in their own right. Currently most page segments are non-auxiliary except for the AnnotationPageSegment.- Returns:
trueif this page segment is auxiliary,falseif it represents "main" page content.
-
-