Table of Contents

Class FontMetrics

Namespace
Java.Awt
Assembly
MASES.JNet.dll
public class FontMetrics : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
Inheritance
JVMBridgeBase
JVMBridgeBase<Serializable>
FontMetrics
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Serializable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Serializable>.IsAssignableFrom<T>()
JVMBridgeBase<Serializable>.Execute<T>(params T[])
JVMBridgeBase<Serializable>.DynBridgeClazz
JVMBridgeBase<Serializable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

FontMetrics()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("FontMetrics class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public FontMetrics()

FontMetrics(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("FontMetrics class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public FontMetrics(params object[] args)

Parameters

args object[]

Properties

Ascent

public int Ascent { get; }

Property Value

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Descent

public int Descent { get; }

Property Value

int

Font

public Font Font { get; }

Property Value

Font

FontRenderContext

public FontRenderContext FontRenderContext { get; }

Property Value

FontRenderContext

Height

public int Height { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Leading

public int Leading { get; }

Property Value

int

MaxAdvance

public int MaxAdvance { get; }

Property Value

int

MaxAscent

public int MaxAscent { get; }

Property Value

int

MaxDescent

public int MaxDescent { get; }

Property Value

int

Widths

public int[] Widths { get; }

Property Value

int[]

Methods

BytesWidth(byte[], int, int)

public int BytesWidth(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

Returns

int

int

CharWidth(char)

public int CharWidth(char arg0)

Parameters

arg0 char

char

Returns

int

int

CharWidth(int)

public int CharWidth(int arg0)

Parameters

arg0 int

int

Returns

int

int

CharsWidth(char[], int, int)

public int CharsWidth(char[] arg0, int arg1, int arg2)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

Returns

int

int

GetLineMetrics(String, Graphics)

public LineMetrics GetLineMetrics(String arg0, Graphics arg1)

Parameters

arg0 String

String

arg1 Graphics

Graphics

Returns

LineMetrics

LineMetrics

GetLineMetrics(String, int, int, Graphics)

public LineMetrics GetLineMetrics(String arg0, int arg1, int arg2, Graphics arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 Graphics

Graphics

Returns

LineMetrics

LineMetrics

GetLineMetrics(CharacterIterator, int, int, Graphics)

public LineMetrics GetLineMetrics(CharacterIterator arg0, int arg1, int arg2, Graphics arg3)

Parameters

arg0 CharacterIterator

CharacterIterator

arg1 int

int

arg2 int

int

arg3 Graphics

Graphics

Returns

LineMetrics

LineMetrics

GetLineMetrics(char[], int, int, Graphics)

public LineMetrics GetLineMetrics(char[] arg0, int arg1, int arg2, Graphics arg3)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

arg3 Graphics

Graphics

Returns

LineMetrics

LineMetrics

GetMaxCharBounds(Graphics)

public Rectangle2D GetMaxCharBounds(Graphics arg0)

Parameters

arg0 Graphics

Graphics

Returns

Rectangle2D

Rectangle2D

GetStringBounds(String, Graphics)

public Rectangle2D GetStringBounds(String arg0, Graphics arg1)

Parameters

arg0 String

String

arg1 Graphics

Graphics

Returns

Rectangle2D

Rectangle2D

GetStringBounds(String, int, int, Graphics)

public Rectangle2D GetStringBounds(String arg0, int arg1, int arg2, Graphics arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 Graphics

Graphics

Returns

Rectangle2D

Rectangle2D

GetStringBounds(CharacterIterator, int, int, Graphics)

public Rectangle2D GetStringBounds(CharacterIterator arg0, int arg1, int arg2, Graphics arg3)

Parameters

arg0 CharacterIterator

CharacterIterator

arg1 int

int

arg2 int

int

arg3 Graphics

Graphics

Returns

Rectangle2D

Rectangle2D

GetStringBounds(char[], int, int, Graphics)

public Rectangle2D GetStringBounds(char[] arg0, int arg1, int arg2, Graphics arg3)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

arg3 Graphics

Graphics

Returns

Rectangle2D

Rectangle2D

HasUniformLineMetrics()

public bool HasUniformLineMetrics()

Returns

bool

bool

StringWidth(String)

public int StringWidth(String arg0)

Parameters

arg0 String

String

Returns

int

int