|
org.netbeans.modules.editor.lib/1 1.44.0 9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.editor.AnnotationTypes
public class AnnotationTypes
Registry of all annotation types. This is singleton and it also keeps the settings whether the annotation types which are not active are drawn on the background, whther the combining of annotations is turned on or off etc. These settings are shared by all views.
| Nested Class Summary | |
|---|---|
static interface |
AnnotationTypes.Loader
Loader of annotation types. |
| Field Summary | |
|---|---|
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). |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Method Detail |
|---|
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 listener
protected 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 name
public Iterator<String> getAnnotationTypeNames()
public int getAnnotationTypeNamesCount()
public int getVisibleAnnotationTypeNamesCount()
public void registerLoader(AnnotationTypes.Loader l)
public void saveType(AnnotationType type)
public void saveSetting(String settingName,
Object value)
|
org.netbeans.modules.editor.lib/1 1.44.0 9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||