org.gnu.gtk
public class TextTag extends GObject
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.TextTag
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
TextTags should be created using the createTag method.
Constructor Summary | |
---|---|
TextTag(String name)
Construct a new TextTag
|
Method Summary | |
---|---|
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(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(String family)
Name of the font family, e.g. |
void | setFont(String font)
Font description as a string, e.g. |
void | setFontDescription(FontDescription fontDesc)
Font description as a FontDescription.
|
void | setForeground(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(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.
|
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new TextTagParameters: name
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the name of the tagDeprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the priority of the tag.See Also: TextTag
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the background color as a string.Parameters: background
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether the background color fills the entire line height or only the height of the tagged characters.Parameters: fullHeight
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Bitmap to use as a mask when drawing the text background.Parameters: stipple
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Text direction, for example right-to-left or left-to-right.Parameters: direction
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether the text can be modified by the user.Parameters: editable
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.Parameters: family
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font description as a string, e.g. "Sans Italic 12".Parameters: font
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font description as a FontDescription.Parameters: fontDesc
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Foreground color as a stringParameters: foreground
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Bitmap to use as a mask when drawing the text foreground.Parameters: stipple
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Amount to indent the paragraph, in pixels.Parameters: indent
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Left, right, or center justification.Parameters: justification
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.Parameters: language
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Width of the left margin in pixels.Parameters: margin
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pixels of blank space above paragraphs.Parameters: setting
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pixels of blank space below paragraphs.Parameters: setting
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pixels of blank space between wrapped lines in a paragraph.Parameters: setting
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the priority of the Tag. Valid priorities are start at 0 and go to one less than 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 createTag, which adds the tag to the buffer's table automatically.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Width of the right margin in pixels.Parameters: margin
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Offset of text above the baseline (below the baseline if rise is negative) in pixels.Parameters: rise
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font size as a scale factor relative to the default font size. This properly adapts to theme changes etc. so is recommended.Parameters: scale
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font size in Pango units.Parameters: size
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font size in points.Parameters: points
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font stretch as a Stretch.Parameters: stretch
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether to strike through the text.Parameters: strikethrough
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font StyleParameters: style
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Custom tabs for this text.Parameters: tabs
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Style of underline for this text.Parameters: underline
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font variant as a Variant.Parameters: variant
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Font weight as an integer, see predefined values in WeightParameters: weight
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Whether to wrap lines never, at word boundaries, or at character boundaries.Parameters: mode