com.levigo.jadice.annotation
Class AnnotationRenderer<T extends Annotation>

java.lang.Object
  extended by com.levigo.jadice.document.internal.model.Container
      extended by com.levigo.jadice.annotation.AnnotationRenderer<T>
All Implemented Interfaces:
com.levigo.jadice.document.internal.model.ModelElement, com.levigo.jadice.document.internal.model.RenderElement, MetadataProvider, Iterable<com.levigo.jadice.document.internal.model.ModelElement>

public abstract class AnnotationRenderer<T extends Annotation>
extends com.levigo.jadice.document.internal.model.Container


Field Summary
protected  int lastModCount
           
 
Fields inherited from class com.levigo.jadice.document.internal.model.Container
ALPHA_MAX
 
Fields inherited from interface com.levigo.jadice.document.internal.model.RenderElement
IDENTITY_TRANSFORM
 
Constructor Summary
AnnotationRenderer()
           
 
Method Summary
static float deviceToBaseFactor()
           
 T getAnno()
          Returns annotation, may be modified by an AnnotationRenderer implementation depending on annotation format
 T getAnnotation()
          Returns initial annotation set via setAnnotation(Annotation)
 Rectangle2D getLogicalBoundingBox()
           
 void incrementModCount()
          Increases modification count, forces renderer to create new annotation rendering.
 Iterator<com.levigo.jadice.document.internal.model.ModelElement> iterator()
           
 void setAnnotation(T annotation)
           
static com.levigo.jadice.document.internal.model.Color toJadiceColor(Color color)
           
protected abstract  void updateRendering()
           
 
Methods inherited from class com.levigo.jadice.document.internal.model.Container
add, addAll, getBlendMode, getBoundingBox, getClipPath, getDefaultTransformation, getDescription, getMetadata, getNonStrokingAlpha, getNonStrokingPaint, getParent, getStroke, getStrokingAlpha, getStrokingPaint, getTransformation, getTransparencyMode, indexOf, insertAt, isEmpty, isFormatPush, isMutable, iteratorReversed, remove, removeAll, seal, setBlendMode, setClipPath, setDefaultTransformation, setFormatPush, setMetadata, setNonStrokingAlpha, setNonStrokingPaint, setPaints, setParent, setStroke, setStrokingAlpha, setStrokingPaint, setTransformation, setTransparencyMode, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastModCount

protected volatile int lastModCount
Constructor Detail

AnnotationRenderer

public AnnotationRenderer()
Method Detail

getAnno

public T getAnno()
Returns annotation, may be modified by an AnnotationRenderer implementation depending on annotation format

Returns:
Annotation

updateRendering

protected abstract void updateRendering()

toJadiceColor

public static final com.levigo.jadice.document.internal.model.Color toJadiceColor(Color color)

deviceToBaseFactor

public static final float deviceToBaseFactor()

iterator

public Iterator<com.levigo.jadice.document.internal.model.ModelElement> iterator()
Specified by:
iterator in interface Iterable<com.levigo.jadice.document.internal.model.ModelElement>
Overrides:
iterator in class com.levigo.jadice.document.internal.model.Container

getLogicalBoundingBox

public Rectangle2D getLogicalBoundingBox()

setAnnotation

public void setAnnotation(T annotation)

getAnnotation

public final T getAnnotation()
Returns initial annotation set via setAnnotation(Annotation)

Returns:
Annotation

incrementModCount

public void incrementModCount()
Increases modification count, forces renderer to create new annotation rendering.



Copyright © 2017 levigo holding gmbh. All rights reserved.