org.gnu.gtk
Class TextTag

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gtk.TextTag

public class TextTag
extends GObject

See the TextBuffer description for an overview of these classes.

TextTags should be created using the TextBuffer.createTag(String) method.


Method Summary
 java.lang.String getName()
          Returns the name of the tag
 int getPriority()
          Returns the priority of the tag.
static Type getType()
          Retrieve the runtime type used by the GLib library.
 void setBackground(java.lang.String background)
           
 void setDirection(TextDirection direction)
           
 void setEditable(boolean editable)
           
 void setFamily(java.lang.String family)
           
 void setForeground(java.lang.String foreground)
           
 void setIndent(int indent)
           
 void setJustification(Justification justification)
           
 void setLeftMargin(int margin)
           
 void setPixelsAboveLines(int setting)
           
 void setPixelsBelowLines(int setting)
           
 void setPixelsInsideWrap(int setting)
           
 void setPriority(int priority)
          Sets the priority of the Tag.
 void setRightMargin(int margin)
           
 void setRise(int rise)
           
 void setScale(Scale scale)
           
 void setSize(int size)
           
 void setStrikethrough(boolean strikethrough)
           
 void setStyle(Style style)
           
 void setUnderline(Underline underline)
           
 void setWeight(Weight weight)
           
 void setWrapMode(WrapMode mode)
           
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


getName

public java.lang.String getName()
Returns the name of the tag


setPriority

public void setPriority(int priority)
Sets the priority of the Tag. Valid priorities are start at 0 and go to one less than TextTagTable.getSize(). Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags "win" if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with TextBuffer.createTag(String), which adds the tag to the buffer's table automatically.


getPriority

public int getPriority()
Returns the priority of the tag.

See Also:
setPriority(int)

setSize

public void setSize(int size)

setFamily

public void setFamily(java.lang.String family)

setForeground

public void setForeground(java.lang.String foreground)

setBackground

public void setBackground(java.lang.String background)

setPixelsAboveLines

public void setPixelsAboveLines(int setting)

setPixelsBelowLines

public void setPixelsBelowLines(int setting)

setPixelsInsideWrap

public void setPixelsInsideWrap(int setting)

setEditable

public void setEditable(boolean editable)

setStrikethrough

public void setStrikethrough(boolean strikethrough)

setWeight

public void setWeight(Weight weight)

setWrapMode

public void setWrapMode(WrapMode mode)

setLeftMargin

public void setLeftMargin(int margin)

setRightMargin

public void setRightMargin(int margin)

setRise

public void setRise(int rise)

setIndent

public void setIndent(int indent)

setUnderline

public void setUnderline(Underline underline)

setJustification

public void setJustification(Justification justification)

setStyle

public void setStyle(Style style)

setDirection

public void setDirection(TextDirection direction)

setScale

public void setScale(Scale scale)

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net