|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.TextTag
public class TextTag
See the TextBuffer
description for an overview of these classes.
TextTags should be created using the TextBuffer.createTag(String)
method.
Constructor Summary | |
---|---|
TextTag(java.lang.String name)
Construct a new TextTag |
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)
Sets the background color as a string. |
void |
setBackgroundFullHeight(boolean fullHeight)
Whether the background color fills the entire line height or only the height of the tagged characters. |
void |
setBackgroundStipple(Pixmap stipple)
Bitmap to use as a mask when drawing the text background. |
void |
setDirection(TextDirection direction)
Text direction, for example right-to-left or left-to-right. |
void |
setEditable(boolean editable)
Whether the text can be modified by the user. |
void |
setFamily(java.lang.String family)
Name of the font family, e.g. |
void |
setFont(java.lang.String font)
Font description as a string, e.g. |
void |
setFontDescription(FontDescription fontDesc)
Font description as a FontDescription. |
void |
setForeground(java.lang.String foreground)
Foreground color as a string |
void |
setForegroundStipple(Pixmap stipple)
Bitmap to use as a mask when drawing the text foreground. |
void |
setIndent(int indent)
Amount to indent the paragraph, in pixels. |
void |
setJustification(Justification justification)
Left, right, or center justification. |
void |
setLanguage(java.lang.String language)
The language this text is in, as an ISO code. |
void |
setLeftMargin(int margin)
Width of the left margin in pixels. |
void |
setPixelsAboveLines(int setting)
Pixels of blank space above paragraphs. |
void |
setPixelsBelowLines(int setting)
Pixels of blank space below paragraphs. |
void |
setPixelsInsideWrap(int setting)
Pixels of blank space between wrapped lines in a paragraph. |
void |
setPriority(int priority)
Sets the priority of the Tag. |
void |
setRightMargin(int margin)
Width of the right margin in pixels. |
void |
setRise(int rise)
Offset of text above the baseline (below the baseline if rise is negative) in pixels. |
void |
setScale(Scale scale)
Font size as a scale factor relative to the default font size. |
void |
setSize(int size)
Font size in Pango units. |
void |
setSizePoints(double points)
Font size in points. |
void |
setStretch(Stretch stretch)
Font stretch as a Stretch. |
void |
setStrikethrough(boolean strikethrough)
Whether to strike through the text. |
void |
setStyle(Style style)
Font Style |
void |
setTabs(TabArray tabs)
Custom tabs for this text. |
void |
setUnderline(Underline underline)
Style of underline for this text. |
void |
setVariant(Variant variant)
Font variant as a Variant. |
void |
setWeight(Weight weight)
Font weight as an integer, see predefined values in Weight |
void |
setWrapMode(WrapMode mode)
Whether to wrap lines never, at word boundaries, or at character boundaries. |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextTag(java.lang.String name)
name
- 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 setBackground(java.lang.String background)
background
- public void setBackgroundFullHeight(boolean fullHeight)
fullHeight
- public void setBackgroundStipple(Pixmap stipple)
stipple
- public void setDirection(TextDirection direction)
direction
- public void setEditable(boolean editable)
editable
- public void setFamily(java.lang.String family)
family
- public void setFont(java.lang.String font)
font
- public void setFontDescription(FontDescription fontDesc)
fontDesc
- public void setForeground(java.lang.String foreground)
foreground
- public void setForegroundStipple(Pixmap stipple)
stipple
- public void setIndent(int indent)
indent
- public void setJustification(Justification justification)
justification
- public void setLanguage(java.lang.String language)
language
- public void setLeftMargin(int margin)
margin
- public void setPixelsAboveLines(int setting)
setting
- public void setPixelsBelowLines(int setting)
setting
- public void setPixelsInsideWrap(int setting)
setting
- public void setRightMargin(int margin)
margin
- public void setRise(int rise)
rise
- public void setScale(Scale scale)
scale
- public void setSize(int size)
size
- public void setSizePoints(double points)
points
- public void setStretch(Stretch stretch)
stretch
- public void setStrikethrough(boolean strikethrough)
strikethrough
- public void setStyle(Style style)
style
- public void setTabs(TabArray tabs)
tabs
- public void setUnderline(Underline underline)
underline
- public void setVariant(Variant variant)
variant
- public void setWeight(Weight weight)
weight
- public void setWrapMode(WrapMode mode)
mode
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |