|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.render.AbstractListenableRenderSettings com.levigo.jadice.annotation.AnnotationRenderSettings
public class AnnotationRenderSettings
The class AnnotationRenderingHints
contains rendering hints that can be used for
annotation rendering.
Constructor Summary | |
---|---|
AnnotationRenderSettings()
Default Constructor. |
Method Summary | |
---|---|
AnnotationRenderSettings |
createSnapshot()
Creates and returns a snapshot copy of this settings instance. |
void |
enableAllAnnotationTypes()
Enable the rendering of all annotation types which may have previously been disabled using setAnnotationRenderingEnabled(AnnotationType, boolean) . |
boolean |
equals(Object obj)
|
com.levigo.jadice.document.internal.model.DocTreeProcessor |
filter(com.levigo.jadice.document.internal.model.DocTreeProcessor processor,
RenderControls controls)
|
Collection<AnnotationType> |
getDisabledAnnotationTypes()
Returns an immutable set of currently disabled (not visible) annotation types. |
Resolution |
getReferenceResolution()
Reference resolution used for resolution dependency based annotations adjustments like stroke width / font size. |
int |
hashCode()
|
boolean |
isAnnotationRenderingEnabled(AnnotationType annotationType)
Returns whether annotation of given type should be rendered or not. |
void |
setAnnotationRenderingEnabled(AnnotationType annotationType,
boolean enabled)
Sets a flag whether annotations of given type should be rendered or not. |
void |
setReferenceResolution(Resolution resolution)
Set reference resolution used for resolution dependency based annotations adjustments like stroke width / font size. |
String |
toString()
|
void |
update(String propertyName,
RenderSettings other,
Object... details)
Updates this instance property specified by given property name with the value provided by the other processing setting. |
Methods inherited from class com.levigo.jadice.document.render.AbstractListenableRenderSettings |
---|
fireChanged, getSettingsChangeHandler, setSettingsChangeHandler |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotationRenderSettings()
Method Detail |
---|
public boolean isAnnotationRenderingEnabled(AnnotationType annotationType)
annotationType
- the annotation type
public void setAnnotationRenderingEnabled(AnnotationType annotationType, boolean enabled)
isAnnotationRenderingEnabled(AnnotationType)
), this
flag decides whether annotations of given type are rendered or not. Otherwise if the general
settings isAnnotationRenderingEnabled(AnnotationType)
is not true
, the
enabled state of the specific annotation type does not matter.
annotationType
- describing annotation typeenabled
- the enabled state of a specific annotation typepublic Collection<AnnotationType> getDisabledAnnotationTypes()
public String toString()
toString
in class Object
Object.toString()
public AnnotationRenderSettings createSnapshot()
createSnapshot
in interface ProcessingSettings
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void enableAllAnnotationTypes()
setAnnotationRenderingEnabled(AnnotationType, boolean)
.
public void update(String propertyName, RenderSettings other, Object... details)
RenderSettings
update
in interface RenderSettings
propertyName
- the name of the property to update. Update supported properties have unique
property identifier provided by the specific render settings implementation.other
- the processing setting which provide the new property value. Therefore the other
processing setting have to be of the same type as this instance.details
- (optional) if some describing details are necessary to do a specific update, the
details parameter will transport this informationspublic com.levigo.jadice.document.internal.model.DocTreeProcessor filter(com.levigo.jadice.document.internal.model.DocTreeProcessor processor, RenderControls controls)
filter
in interface com.levigo.jadice.document.internal.model.DocTreeFilterFactory
public Resolution getReferenceResolution()
public void setReferenceResolution(Resolution resolution)
resolution
- Reference resolution
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |