public class AnnotationRenderSettings extends AbstractListenableRenderSettings implements com.levigo.jadice.document.internal.presentation.PresentationTreeFilterFactory
AnnotationRenderingHints
contains rendering hints that can be used for
annotation rendering.Constructor and Description |
---|
AnnotationRenderSettings()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.presentation.PresentationTreeProcessor |
filter(com.levigo.jadice.document.internal.presentation.PresentationTreeProcessor 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.
|
fireChanged, getSettingsChangeHandler, setSettingsChangeHandler
public boolean isAnnotationRenderingEnabled(AnnotationType annotationType)
annotationType
- the annotation typepublic 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
createSnapshot
in interface SerializableProcessingSettings
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.presentation.PresentationTreeProcessor filter(com.levigo.jadice.document.internal.presentation.PresentationTreeProcessor processor, RenderControls controls)
filter
in interface com.levigo.jadice.document.internal.presentation.PresentationTreeFilterFactory
public Resolution getReferenceResolution()
public void setReferenceResolution(Resolution resolution)
resolution
- Reference resolutionCopyright © 2024 levigo holding gmbh. All rights reserved.