* @param overviewRulerKey the preference key for the presentation in the overview ruler
* @param layer the layer
*/
public void setAnnotationPainterPreferenceKeys(Object type, String colorKey, String editorKey, String overviewRulerKey, int layer) {
AnnotationPreference info = null;
AnnotationPreferenceLookup prefLookup = new AnnotationPreferenceLookup();
if(prefLookup != null) {
// different versions may pas a string or an annotation
if(type instanceof Annotation) {
info = prefLookup.getAnnotationPreference((Annotation) type);
} else {
info = prefLookup.getAnnotationPreference((String)type);
}
}
if(info == null) {
info= new AnnotationPreference(type, colorKey, editorKey, overviewRulerKey, layer);
}