com.intellij.openapi.editor.markup
Class TextAttributes

java.lang.Object
  extended by 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


Constructor Summary
TextAttributes()
           
TextAttributes(java.awt.Color foregroundColor, java.awt.Color backgroundColor, java.awt.Color effectColor, EffectType effectType, int fontType)
           
 
Method Summary
 TextAttributes clone()
           
 boolean equals(java.lang.Object obj)
           
 java.awt.Color getBackgroundColor()
           
 java.awt.Color getEffectColor()
           
 EffectType getEffectType()
           
 java.awt.Color getErrorStripeColor()
           
 int getFontType()
           
 java.awt.Color getForegroundColor()
           
 int hashCode()
           
 boolean isEmpty()
           
static TextAttributes merge(TextAttributes under, TextAttributes above)
           
 void readExternal(org.jdom.Element element)
           
 void setBackgroundColor(java.awt.Color color)
           
 void setEffectColor(java.awt.Color color)
           
 void setEffectType(EffectType effectType)
           
 void setErrorStripeColor(java.awt.Color color)
           
 void setFontType(int type)
           
 void setForegroundColor(java.awt.Color color)
           
 void writeExternal(org.jdom.Element element)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAttributes

public TextAttributes()

TextAttributes

public TextAttributes(java.awt.Color foregroundColor,
                      java.awt.Color backgroundColor,
                      java.awt.Color effectColor,
                      EffectType effectType,
                      int fontType)
Method Detail

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