org.gnu.pango
public class Context 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 exist in java-gnome 4.0; look out for
org.gnome.pango.Context
.
As this package was never fully implemented in java-gnome 2.x,
however, any new code written will have a considerably different
public API.
Constructor Summary | |
---|---|
Context(Handle handle)
Create a new Context passing a handle that was created in the native
layer. |
Method Summary | |
---|---|
Direction | getBaseDir()
Retrieves the base direction for the context. |
static Context | getContextFromHandle(Handle handle)
Static factory method that should only be used interally by Java-Gnome. |
FontDescription | getFontDescription()
Retrieve the default font description for the context.
|
Language | getLanguage()
Retrieves the global language tag for the context. |
FontMetrics | getMetrics(FontDescription desc, Language language)
Get overall metric information for a font particular font description.
|
FontFamily[] | listFamilies()
List all families for a Context. |
FontDescription | loadFont(FontDescription desc)
Loads the font in one of the fontmaps in the context that is the closest
match for desc.
|
void | setBaseDir(Direction dir)
Sets the base direction for the context. |
void | setFontDescription(FontDescription desc)
Sets the font description |
void | setLanguage(Language lang)
Sets the language |
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new Context passing a handle that was created in the native layer. This is an internal method that should only be used by Java-Gnome.Parameters: handle The handle to a native resource.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Retrieves the base direction for the context.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Static factory method that should only be used interally by Java-Gnome.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Retrieve the default font description for the context.Returns: default font description.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Retrieves the global language tag for the context.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Get overall metric information for a font particular font description. Since the metrics may be substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language.The PangoFontDescription is interpreted in the same way as by pango_itemize(), and the family name may be a comma separated list of figures. If characters from multiple of these families would be used to render the string, then the returned fonts would be a composite of the metrics for the fonts loaded for the individual families.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
List all families for a Context.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Loads the font in one of the fontmaps in the context that is the closest match for desc.Parameters: desc A FontDescription describing the font to load
Returns: The font loaded, or null
if no font matched.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the base direction for the context.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the font descriptionDeprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the language