public class AnnotationType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationType.CombinationMember
Hepler class describing annotation type and whether all
occurences of this type should be absorbed by combination or not.
|
static class |
AnnotationType.Severity |
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ACTIONS
Property name for Actions (Action[])
|
static String |
PROP_ACTIONS_FOLDER |
static String |
PROP_BROWSEABLE |
static String |
PROP_COMBINATION_MINIMUM_OPTIONALS |
static String |
PROP_COMBINATION_ORDER |
static String |
PROP_COMBINATION_TOOLTIP_TEXT_KEY |
static String |
PROP_COMBINATIONS
Property name for Combinations (AnnotationType.CombinationMember[]).
|
static String |
PROP_CONTENT_TYPE
Property name for ContentType (String)
|
static String |
PROP_CUSTOM_SIDEBAR_COLOR |
static String |
PROP_DESCRIPTION
Property name for Description (String)
|
static String |
PROP_DESCRIPTION_KEY |
static String |
PROP_FILE
Property holding the object which represent the source of this annotation type.
|
static String |
PROP_FOREGROUND_COLOR
Property name for Foreground (Color)
|
static String |
PROP_GLYPH_URL
Property name for Glyph (URL)
|
static String |
PROP_HIGHLIGHT_COLOR
Property name for Highlight (Color)
|
static String |
PROP_INHERIT_FOREGROUND_COLOR
Property name for InheritForegroundColor (Boolean)
|
static String |
PROP_LOCALIZING_BUNDLE |
static String |
PROP_NAME
Property name for Name (String)
|
static String |
PROP_PRIORITY |
static String |
PROP_SEVERITY |
static String |
PROP_TOOLTIP_TEXT
Property name for TooltipText (String)
|
static String |
PROP_USE_CUSTOM_SIDEBAR_COLOR |
static String |
PROP_USE_HIGHLIGHT_COLOR
Property name for UseHighlightColor (Boolean)
|
static String |
PROP_USE_WAVEUNDERLINE_COLOR
Property name for UseWaveUnderlineColor (Boolean)
|
static String |
PROP_VISIBLE
Property name for Visible (boolean)
|
static String |
PROP_WAVEUNDERLINE_COLOR
Property name for WaveUnderline (Color)
|
static String |
PROP_WHOLE_LINE
Property name for WholeLine (boolean)
|
Constructor and Description |
---|
AnnotationType() |
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.
|
Action[] |
getActions()
Getter for Actions property
|
Coloring |
getColoring()
Gets all the colors composed as Coloring
|
int |
getCombinationOrder()
Getter for CombinationOrder property
|
AnnotationType.CombinationMember[] |
getCombinations()
Getter for Combinations property
|
String |
getContentType()
Getter for ContentType property
|
Color |
getCustomSidebarColor() |
String |
getDescription()
Getter for Description property
|
Color |
getForegroundColor()
Getter for Foreground property
|
URL |
getGlyph()
Getter for Glyph property
|
Image |
getGlyphImage()
Gets Image which represent the glyph.
|
Color |
getHighlight()
Getter for Highlight property
|
int |
getMinimumOptionals()
Getter for MinimumOptionals property
|
String |
getName()
Getter for Name property
|
int |
getPriority() |
Object |
getProp(String prop)
Gets property for appropriate string value
|
AnnotationType.Severity |
getSeverity() |
String |
getTooltipText()
Getter for TooltipText property
|
Color |
getWaveUnderlineColor()
Getter for WaveUnderline property
|
boolean |
isBrowseable() |
boolean |
isDefaultGlyph()
Whether the annotation type has its own glyph icon or not
|
boolean |
isInheritForegroundColor()
Getter for InheritForegroundColor property
|
boolean |
isUseCustomSidebarColor() |
boolean |
isUseHighlightColor()
Getter for UseHighlightColor property
|
boolean |
isUseWaveUnderlineColor()
Getter for UseWaveUnderlineColor property
|
boolean |
isVisible()
Getter for Visible property
|
boolean |
isWholeLine()
Getter for WholeLine property
|
void |
putProp(Object key,
Object value)
Puts property to Map
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove listeners on changes of annotation type properties
|
void |
setActions(Action[] actions)
Setter for Actions property
|
void |
setBrowseable(boolean browseable) |
void |
setCombinationOrder(int order)
Setter for the CombinationOrder property
|
void |
setCombinationOrder(String ord)
Setter for the CombinationOrder property
|
void |
setCombinations(AnnotationType.CombinationMember[] combs)
Setter for Combinations property
|
void |
setContentType(String ct)
Setter for the ContentType property
|
void |
setCustomSidebarColor(Color customSidebarColor) |
void |
setDescription(String name)
Setter for the Description property
|
void |
setForegroundColor(Color foregroundColor)
Setter for the Foreground property
|
void |
setGlyph(URL glyph)
Setter for the Glyph property
|
void |
setHighlight(Color highlight)
Setter for the Highlight property
|
void |
setInheritForegroundColor(boolean inherit)
Setter for the InheritfForegroundColor property
|
void |
setMinimumOptionals(int min) |
void |
setMinimumOptionals(String m) |
void |
setName(String name)
Setter for the Name property
|
void |
setPriority(int priority) |
void |
setSeverity(AnnotationType.Severity severity) |
void |
setTooltipText(String text)
Setter for the TooltipText property
|
void |
setUseCustomSidebarColor(boolean value) |
void |
setUseHighlightColor(boolean use)
Setter for the UseHighlightColor property
|
void |
setUseWaveUnderlineColor(boolean use)
Setter for the UseWaveUnderlineColor property
|
void |
setVisible(boolean vis)
Setter for the Visible property
|
void |
setVisible(String vis)
Setter for the Visible property
|
void |
setWaveUnderlineColor(Color waveunderline)
Setter for the WaveUnderline property
|
void |
setWholeLine(boolean wl)
Setter for the WholeLine property
|
void |
setWholeLine(String wl)
Setter for the WholeLine property
|
String |
toString() |
public static final String PROP_NAME
public static final String PROP_DESCRIPTION
public static final String PROP_VISIBLE
public static final String PROP_GLYPH_URL
public static final String PROP_HIGHLIGHT_COLOR
public static final String PROP_FOREGROUND_COLOR
public static final String PROP_WAVEUNDERLINE_COLOR
public static final String PROP_WHOLE_LINE
public static final String PROP_CONTENT_TYPE
public static final String PROP_ACTIONS
public static final String PROP_TOOLTIP_TEXT
public static final String PROP_INHERIT_FOREGROUND_COLOR
public static final String PROP_USE_HIGHLIGHT_COLOR
public static final String PROP_USE_WAVEUNDERLINE_COLOR
public static final String PROP_USE_CUSTOM_SIDEBAR_COLOR
public static final String PROP_CUSTOM_SIDEBAR_COLOR
public static final String PROP_SEVERITY
public static final String PROP_BROWSEABLE
public static final String PROP_PRIORITY
public static final String PROP_COMBINATIONS
public static final String PROP_COMBINATION_ORDER
public static final String PROP_COMBINATION_MINIMUM_OPTIONALS
public static final String PROP_FILE
public static final String PROP_LOCALIZING_BUNDLE
public static final String PROP_DESCRIPTION_KEY
public static final String PROP_ACTIONS_FOLDER
public static final String PROP_COMBINATION_TOOLTIP_TEXT_KEY
public URL getGlyph()
public void setGlyph(URL glyph)
glyph
- URL to gpylh iconpublic Image getGlyphImage()
public boolean isDefaultGlyph()
public Color getHighlight()
public void setHighlight(Color highlight)
highlight
- highlight colorpublic boolean isUseHighlightColor()
public void setUseHighlightColor(boolean use)
use
- use highlight colorpublic Color getForegroundColor()
public void setForegroundColor(Color foregroundColor)
foregroundColor
- foreground colorpublic boolean isInheritForegroundColor()
public void setInheritForegroundColor(boolean inherit)
inherit
- inherit foreground colorpublic Color getWaveUnderlineColor()
public void setWaveUnderlineColor(Color waveunderline)
waveunderline
- wave underline colorpublic boolean isUseWaveUnderlineColor()
public void setUseWaveUnderlineColor(boolean use)
use
- use wave underline colorpublic Coloring getColoring()
public Action[] getActions()
public void setActions(Action[] actions)
public AnnotationType.CombinationMember[] getCombinations()
public void setCombinations(AnnotationType.CombinationMember[] combs)
public String getName()
public void setName(String name)
name
- name of the annotation typepublic String getDescription()
public void setDescription(String name)
name
- localized description of the annotation typepublic String getTooltipText()
public void setTooltipText(String text)
text
- localized TooltipText of the annotation typepublic int getCombinationOrder()
public void setCombinationOrder(int order)
order
- order of the annotation type combinationpublic void setCombinationOrder(String ord)
ord
- order of the annotation type combinationpublic int getMinimumOptionals()
public void setMinimumOptionals(int min)
public void setMinimumOptionals(String m)
public boolean isVisible()
public void setVisible(boolean vis)
vis
- visibility of the annotation typepublic void setVisible(String vis)
vis
- visibility of the annotation typepublic boolean isWholeLine()
public void setWholeLine(boolean wl)
wl
- whether the annotation type is whole line or notpublic void setWholeLine(String wl)
wl
- whether the annotation type is whole line or notpublic String getContentType()
public void setContentType(String ct)
ct
- list of content type separeted by commaspublic boolean isUseCustomSidebarColor()
public void setUseCustomSidebarColor(boolean value)
public Color getCustomSidebarColor()
public void setCustomSidebarColor(Color customSidebarColor)
public AnnotationType.Severity getSeverity()
public void setSeverity(AnnotationType.Severity severity)
public int getPriority()
public void setPriority(int priority)
public boolean isBrowseable()
public void setBrowseable(boolean browseable)
public final void addPropertyChangeListener(PropertyChangeListener l)
l
- change listenerpublic final void removePropertyChangeListener(PropertyChangeListener l)
l
- change listener