com.levigo.jadice.document
Class AbstractMutablePageSegment

java.lang.Object
  extended by com.levigo.jadice.document.AbstractPageSegment
      extended by com.levigo.jadice.document.AbstractMutablePageSegment
All Implemented Interfaces:
com.levigo.jadice.document.internal.model.RenderRoot, 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.model.RenderRoot


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
AbstractMutablePageSegment()
           
 
Method Summary
 void addPageSegmentListener(PageSegmentListener listener)
          Register a PageSegmentListener
protected  PageSegmentEvent createPageSegmentEvent()
          Create a pre-initialized PageSegmentEvent
protected  void fireModified()
          Fire a notification about a general change to the page segment.
protected  void fireModified(PageSegmentEvent evt)
          Fire a notification about a general change to the page segment.
protected  void fireModified(Rectangle2D damage)
          Fire a notification about a general change to the page segment which (may have) damaged the given region.
 void removePageSegmentListener(PageSegmentListener listener)
          Deregister a PageSegmentListener
 
Methods inherited from class com.levigo.jadice.document.AbstractPageSegment
createRendering, doCreateCacheableRendering, getBounds, getCachedRendering, getId, getMetadata, getPermissions, getProperties, getResolution, getSize, 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.PageSegment
getBounds, getSize, getSource, isAuxiliary
 
Methods inherited from interface com.levigo.jadice.document.util.PropertiesProvider
getProperties
 
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.util.base.Identifiable
getId
 
Methods inherited from interface com.levigo.jadice.document.internal.model.RenderRoot
createRendering, getBounds, isInitialized
 

Constructor Detail

AbstractMutablePageSegment

public AbstractMutablePageSegment()
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

Returns:

addPageSegmentListener

public void addPageSegmentListener(PageSegmentListener listener)
Register a PageSegmentListener

Specified by:
addPageSegmentListener in interface MutablePageSegment
Parameters:
listener - the listener to register

removePageSegmentListener

public void removePageSegmentListener(PageSegmentListener listener)
Deregister a PageSegmentListener

Specified by:
removePageSegmentListener in interface MutablePageSegment
Parameters:
listener - the listener to remove


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.