|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.TextTag
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 |
public static Type getType()
public java.lang.String getName()
public void setPriority(int priority)
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.
public int getPriority()
setPriority(int)
public void setSize(int size)
public void setFamily(java.lang.String family)
public void setForeground(java.lang.String foreground)
public void setBackground(java.lang.String background)
public void setPixelsAboveLines(int setting)
public void setPixelsBelowLines(int setting)
public void setPixelsInsideWrap(int setting)
public void setEditable(boolean editable)
public void setStrikethrough(boolean strikethrough)
public void setWeight(Weight weight)
public void setWrapMode(WrapMode mode)
public void setLeftMargin(int margin)
public void setRightMargin(int margin)
public void setRise(int rise)
public void setIndent(int indent)
public void setUnderline(Underline underline)
public void setJustification(Justification justification)
public void setStyle(Style style)
public void setDirection(TextDirection direction)
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 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |