public class AnnotationTypes extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AnnotationTypes.Loader
Loader of annotation types.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ANNOTATION_TYPES
Property which is fired when list of annotation types is changing.
|
static String |
PROP_BACKGROUND_DRAWING
Whether the pasive glyphs are drawn on the background under the text (boolean).
|
static String |
PROP_BACKGROUND_GLYPH_ALPHA
The alpha of the pasive glyphs drawn on the background under the text (int 0..100%).
|
static String |
PROP_COMBINE_GLYPHS
Whether the glyphs should be combined according to combination annotation types (boolean).
|
static String |
PROP_GLYPHS_OVER_LINE_NUMBERS
Whether the glyph icon should be drawn over the line numbers (boolean).
|
static String |
PROP_SHOW_GLYPH_GUTTER
Whether the glyph gutter should be shown after opening editor or not (boolean).
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add listeners on changes of annotation type properties
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fire property change to registered listeners.
|
Iterator<String> |
getAnnotationTypeNames()
Iterator of all annotation type names in the system
|
int |
getAnnotationTypeNamesCount()
Gets count of all annotation type names
|
Integer |
getBackgroundGlyphAlpha()
Getter for BackgroundGlyphAlpha property
|
static URL |
getDefaultGlyphURL()
Gets Image which represents the default glyph icon.
|
AnnotationType |
getType(String name)
Returns AnnotationType instance for the given name of the type
|
static AnnotationTypes |
getTypes()
Returns instance of AnnotationTypes singleton.
|
int |
getVisibleAnnotationTypeNamesCount()
Gets count of all visible annotation type names
|
Boolean |
isBackgroundDrawing()
Getter for BackgroundDrawing property
|
Boolean |
isCombineGlyphs()
Getter for CombineGlyphs property
|
Boolean |
isGlyphsOverLineNumbers()
Getter for GlyphsOverLineNumbers property
|
Boolean |
isShowGlyphGutter()
Getter for ShowGlyphGutter property
|
void |
registerLoader(AnnotationTypes.Loader l)
Register loader for loading of annotation types
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove listeners on changes of annotation type properties
|
void |
removeType(String name) |
void |
saveSetting(String settingName,
Object value)
Save change of property
|
void |
saveType(AnnotationType type)
Save changes in one annotation type
|
void |
setBackgroundDrawing(Boolean drawing)
Setter for the BackgroundDrawing property
|
void |
setBackgroundGlyphAlpha(int alpha)
Setter for the BackgroundGlyphAlpha property
|
void |
setCombineGlyphs(Boolean combine)
Setter for the CombineGlyphs property
|
void |
setGlyphsOverLineNumbers(Boolean over)
Setter for the GlyphsOverLineNumbers property
|
void |
setShowGlyphGutter(Boolean gutter)
Setter for the ShowGlyphGutter property
|
void |
setTypes(Map map)
Initialize the map of all annotation types
|
public static final String PROP_BACKGROUND_DRAWING
public static final String PROP_BACKGROUND_GLYPH_ALPHA
public static final String PROP_COMBINE_GLYPHS
public static final String PROP_GLYPHS_OVER_LINE_NUMBERS
public static final String PROP_SHOW_GLYPH_GUTTER
public static final String PROP_ANNOTATION_TYPES
public static AnnotationTypes getTypes()
public static URL getDefaultGlyphURL()
public Boolean isBackgroundDrawing()
public void setBackgroundDrawing(Boolean drawing)
drawing
- use background drawing or notpublic Boolean isCombineGlyphs()
public void setCombineGlyphs(Boolean combine)
combine
- combine annotation typespublic Integer getBackgroundGlyphAlpha()
public void setBackgroundGlyphAlpha(int alpha)
alpha
- alpha value in percentage (0..100)public Boolean isGlyphsOverLineNumbers()
public void setGlyphsOverLineNumbers(Boolean over)
over
- draw the glyphd over the line numberspublic Boolean isShowGlyphGutter()
public void setShowGlyphGutter(Boolean gutter)
gutter
- show gutterpublic final void addPropertyChangeListener(PropertyChangeListener l)
l
- change listenerpublic final void removePropertyChangeListener(PropertyChangeListener l)
l
- change listenerprotected final void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public final void setTypes(Map map)
map
- map containing all annotation typespublic final void removeType(String name)
public final AnnotationType getType(String name)
name
- annotation type namepublic Iterator<String> getAnnotationTypeNames()
public int getAnnotationTypeNamesCount()
public int getVisibleAnnotationTypeNamesCount()
public void registerLoader(AnnotationTypes.Loader l)
public void saveType(AnnotationType type)
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.