Package com.levigo.jadice.document
Class AbstractMutablePageSegment
- java.lang.Object
-
- com.levigo.jadice.document.AbstractPageSegment
-
- com.levigo.jadice.document.AbstractMutablePageSegment
-
- All Implemented Interfaces:
ConditionFactoryProvider,com.levigo.jadice.document.internal.presentation.group.PresentationInitializer,com.levigo.jadice.document.internal.presentation.group.VisualizationInitializer,MetadataProvider,MutablePageSegment,PageSegment,PermissionsProvider<PageSegment>,PropertiesProvider,Identifiable
- Direct Known Subclasses:
AbstractCompositePageSegment,AnnotationPageSegment
public abstract class AbstractMutablePageSegment extends AbstractPageSegment implements MutablePageSegment, com.levigo.jadice.document.internal.presentation.group.VisualizationInitializer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.document.AbstractPageSegment
AbstractPageSegment.CacheableVisualElement
-
-
Field Summary
-
Fields inherited from class com.levigo.jadice.document.AbstractPageSegment
CACHE_KEY_CONTENTS, format, id
-
-
Constructor Summary
Constructors Constructor Description AbstractMutablePageSegment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPageSegmentListener(PageSegmentListener listener)Register aPageSegmentListenerprotected PageSegmentEventcreatePageSegmentEvent()Create a pre-initialized PageSegmentEventprotected voidfireModified()Fire a notification about a general change to the page segment.protected voidfireModified(PageSegmentEvent evt)Fire a notification about a general change to the page segment.protected voidfireModified(Rectangle2D damage)Fire a notification about a general change to the page segment which (may have) damaged the given region.voidremovePageSegmentListener(PageSegmentListener listener)Deregister aPageSegmentListener-
Methods inherited from class com.levigo.jadice.document.AbstractPageSegment
createCacheableVisualElement, getBounds, getCachedVisualElement, getId, getInitialized, getMetadata, getPermissions, getProperties, getResolution, getSource, isAuxiliary, isInitialized, setSource, 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.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.PageSegment
getBounds, getSize, getSource, isAuxiliary
-
Methods inherited from interface com.levigo.jadice.document.PermissionsProvider
getPermissions
-
Methods inherited from interface com.levigo.jadice.document.internal.presentation.group.PresentationInitializer
getInitialized, isInitialized
-
Methods inherited from interface com.levigo.jadice.document.util.PropertiesProvider
getProperties
-
-
-
-
Method Detail
-
fireModified
protected void fireModified(PageSegmentEvent evt)
Fire a notification about a general change to the page segment.
-
fireModified
protected void fireModified()
Fire a notification about a general change to the page segment. Please consider firing a more specialized one, indicating the actual damage region.
-
fireModified
protected void fireModified(Rectangle2D damage)
Fire a notification about a general change to the page segment which (may have) damaged the given region.
-
createPageSegmentEvent
protected PageSegmentEvent createPageSegmentEvent()
Create a pre-initialized PageSegmentEvent
-
addPageSegmentListener
public void addPageSegmentListener(PageSegmentListener listener)
Register aPageSegmentListener- Specified by:
addPageSegmentListenerin interfaceMutablePageSegment- Parameters:
listener- the listener to register
-
removePageSegmentListener
public void removePageSegmentListener(PageSegmentListener listener)
Deregister aPageSegmentListener- Specified by:
removePageSegmentListenerin interfaceMutablePageSegment- Parameters:
listener- the listener to remove
-
-