public abstract class AnnotationDesc extends Object implements Comparable<AnnotationDesc>
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ANNOTATION_TYPE
Property name of the annotation type
|
static String |
PROP_MOVE_TO_FRONT
Virtual property for fronting of annotation
|
static String |
PROP_SHORT_DESCRIPTION
Property name of the tip text
|
Constructor and Description |
---|
AnnotationDesc(int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add listeners on changes of annotation properties
|
int |
compareTo(AnnotationDesc o) |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fire property change to registered listeners.
|
Action[] |
getActions()
Returns list of actions associated to this annotation type.
|
abstract String |
getAnnotationType()
Getter for annotation type name
|
AnnotationType |
getAnnotationTypeInstance()
Getter for annotation type object
|
Coloring |
getColoring()
Gets annotation coloring.
|
Image |
getGlyph()
Gets glyph image.
|
int |
getLength()
Get length of the annotation
|
abstract int |
getLine()
Getter for line number of this annotation
|
abstract int |
getOffset()
Getter for offset of this annotation
|
int |
getOrderNumber()
Internal order of the annotations.
|
abstract String |
getShortDescription()
Getter for localized tooltip text for this annotation
|
boolean |
isDefaultGlyph()
Checks whether the annotation type has its own glyph icon
|
boolean |
isVisible()
Is annotation type visible.
|
boolean |
isWholeLine()
Whether this annotation annotates whole line or just part of the text
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove listeners on changes of annotation properties
|
String |
toString() |
void |
updateAnnotationType()
Method for fetching AnnotationType which
correspond to the name of the annotation type stored
in annotation.
|
public static final String PROP_SHORT_DESCRIPTION
public static final String PROP_ANNOTATION_TYPE
public static final String PROP_MOVE_TO_FRONT
public Coloring getColoring()
public Image getGlyph()
public boolean isDefaultGlyph()
public boolean isVisible()
public int getOrderNumber()
public Action[] getActions()
public boolean isWholeLine()
public int getLength()
public AnnotationType getAnnotationTypeInstance()
public abstract String getAnnotationType()
public abstract String getShortDescription()
public abstract int getOffset()
public abstract int getLine()
public void updateAnnotationType()
public 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 int compareTo(AnnotationDesc o)
compareTo
in interface Comparable<AnnotationDesc>