com.intellij.openapi.editor.markup
Class TextAttributes
java.lang.Object
com.intellij.openapi.editor.markup.TextAttributes
- All Implemented Interfaces:
- JDOMExternalizable, java.lang.Cloneable
public class TextAttributes
- extends java.lang.Object
- implements JDOMExternalizable, java.lang.Cloneable
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TextAttributes
public TextAttributes()
TextAttributes
public TextAttributes(java.awt.Color foregroundColor,
java.awt.Color backgroundColor,
java.awt.Color effectColor,
EffectType effectType,
int fontType)
merge
public static TextAttributes merge(TextAttributes under,
TextAttributes above)
isEmpty
public boolean isEmpty()
getForegroundColor
public java.awt.Color getForegroundColor()
setForegroundColor
public void setForegroundColor(java.awt.Color color)
getBackgroundColor
public java.awt.Color getBackgroundColor()
setBackgroundColor
public void setBackgroundColor(java.awt.Color color)
getEffectColor
public java.awt.Color getEffectColor()
setEffectColor
public void setEffectColor(java.awt.Color color)
getErrorStripeColor
public java.awt.Color getErrorStripeColor()
setErrorStripeColor
public void setErrorStripeColor(java.awt.Color color)
getEffectType
public EffectType getEffectType()
setEffectType
public void setEffectType(EffectType effectType)
getFontType
public int getFontType()
setFontType
public void setFontType(int type)
clone
public TextAttributes clone()
- Overrides:
clone in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
readExternal
public void readExternal(org.jdom.Element element)
throws InvalidDataException
- Specified by:
readExternal in interface JDOMExternalizable
- Throws:
InvalidDataException
writeExternal
public void writeExternal(org.jdom.Element element)
throws WriteExternalException
- Specified by:
writeExternal in interface JDOMExternalizable
- Throws:
WriteExternalException