Table of Contents

Class Font

Namespace
Java.Awt
Assembly
MASES.JNet.dll
public class Font : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
Inheritance
JVMBridgeBase
JVMBridgeBase<Serializable>
Font
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
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

Font()

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

public Font()

Font(String, int, int)

public Font(String arg0, int arg1, int arg2)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

Font(Map)

public Font(Map arg0)

Parameters

arg0 Map

Map

Font(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

public Font(params object[] args)

Parameters

args object[]

Properties

Attributes

public Map<TextAttribute, object> Attributes { get; }

Property Value

Map<TextAttribute, object>

AvailableAttributes

public AttributedCharacterIterator.Attribute[] AvailableAttributes { get; }

Property Value

Attribute[]

BOLD

public static int BOLD { get; }

Property Value

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CENTER_BASELINE

public static int CENTER_BASELINE { get; }

Property Value

int

DIALOG

public static String DIALOG { get; }

Property Value

String

DIALOG_INPUT

public static String DIALOG_INPUT { get; }

Property Value

String

Family

public String Family { get; }

Property Value

String

FontName

public String FontName { get; }

Property Value

String

HANGING_BASELINE

public static int HANGING_BASELINE { get; }

Property Value

int

ITALIC

public static int ITALIC { 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

ItalicAngle

public float ItalicAngle { get; }

Property Value

float

LAYOUT_LEFT_TO_RIGHT

public static int LAYOUT_LEFT_TO_RIGHT { get; }

Property Value

int

LAYOUT_NO_LIMIT_CONTEXT

public static int LAYOUT_NO_LIMIT_CONTEXT { get; }

Property Value

int

LAYOUT_NO_START_CONTEXT

public static int LAYOUT_NO_START_CONTEXT { get; }

Property Value

int

LAYOUT_RIGHT_TO_LEFT

public static int LAYOUT_RIGHT_TO_LEFT { get; }

Property Value

int

MONOSPACED

public static String MONOSPACED { get; }

Property Value

String

MissingGlyphCode

public int MissingGlyphCode { get; }

Property Value

int

Name

public String Name { get; }

Property Value

String

NumGlyphs

public int NumGlyphs { get; }

Property Value

int

PLAIN

public static int PLAIN { get; }

Property Value

int

PSName

public String PSName { get; }

Property Value

String

ROMAN_BASELINE

public static int ROMAN_BASELINE { get; }

Property Value

int

SANS_SERIF

public static String SANS_SERIF { get; }

Property Value

String

SERIF

public static String SERIF { get; }

Property Value

String

Size

public int Size { get; }

Property Value

int

Size2D

public float Size2D { get; }

Property Value

float

Style

public int Style { get; }

Property Value

int

TRUETYPE_FONT

public static int TRUETYPE_FONT { get; }

Property Value

int

TYPE1_FONT

public static int TYPE1_FONT { get; }

Property Value

int

Transform

public AffineTransform Transform { get; }

Property Value

AffineTransform

Methods

CanDisplay(char)

public bool CanDisplay(char arg0)

Parameters

arg0 char

char

Returns

bool

bool

CanDisplay(int)

public bool CanDisplay(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

CanDisplayUpTo(String)

public int CanDisplayUpTo(String arg0)

Parameters

arg0 String

String

Returns

int

int

CanDisplayUpTo(CharacterIterator, int, int)

public int CanDisplayUpTo(CharacterIterator arg0, int arg1, int arg2)

Parameters

arg0 CharacterIterator

CharacterIterator

arg1 int

int

arg2 int

int

Returns

int

int

CanDisplayUpTo(char[], int, int)

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

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

Returns

int

int

CreateFont(int, File)

public static Font CreateFont(int arg0, File arg1)

Parameters

arg0 int

int

arg1 File

File

Returns

Font

Font

Exceptions

FontFormatException
IOException

CreateFont(int, InputStream)

public static Font CreateFont(int arg0, InputStream arg1)

Parameters

arg0 int

int

arg1 InputStream

InputStream

Returns

Font

Font

Exceptions

FontFormatException
IOException

CreateFonts(File)

public static Font[] CreateFonts(File arg0)

Parameters

arg0 File

File

Returns

Font[]

Font

Exceptions

FontFormatException
IOException

CreateFonts(InputStream)

public static Font[] CreateFonts(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Returns

Font[]

Font

Exceptions

FontFormatException
IOException

CreateGlyphVector(FontRenderContext, String)

public GlyphVector CreateGlyphVector(FontRenderContext arg0, String arg1)

Parameters

arg0 FontRenderContext

FontRenderContext

arg1 String

String

Returns

GlyphVector

GlyphVector

CreateGlyphVector(FontRenderContext, CharacterIterator)

public GlyphVector CreateGlyphVector(FontRenderContext arg0, CharacterIterator arg1)

Parameters

arg0 FontRenderContext

FontRenderContext

arg1 CharacterIterator

CharacterIterator

Returns

GlyphVector

GlyphVector

CreateGlyphVector(FontRenderContext, char[])

public GlyphVector CreateGlyphVector(FontRenderContext arg0, char[] arg1)

Parameters

arg0 FontRenderContext

FontRenderContext

arg1 char[]

char

Returns

GlyphVector

GlyphVector

CreateGlyphVector(FontRenderContext, int[])

public GlyphVector CreateGlyphVector(FontRenderContext arg0, int[] arg1)

Parameters

arg0 FontRenderContext

FontRenderContext

arg1 int[]

int

Returns

GlyphVector

GlyphVector

Decode(String)

public static Font Decode(String arg0)

Parameters

arg0 String

String

Returns

Font

Font

DeriveFont(AffineTransform)

public Font DeriveFont(AffineTransform arg0)

Parameters

arg0 AffineTransform

AffineTransform

Returns

Font

Font

DeriveFont(int)

public Font DeriveFont(int arg0)

Parameters

arg0 int

int

Returns

Font

Font

DeriveFont(int, AffineTransform)

public Font DeriveFont(int arg0, AffineTransform arg1)

Parameters

arg0 int

int

arg1 AffineTransform

AffineTransform

Returns

Font

Font

DeriveFont(int, float)

public Font DeriveFont(int arg0, float arg1)

Parameters

arg0 int

int

arg1 float

float

Returns

Font

Font

DeriveFont(float)

public Font DeriveFont(float arg0)

Parameters

arg0 float

float

Returns

Font

Font

DeriveFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object>)

public Font DeriveFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object> arg0) where Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute : AttributedCharacterIterator.Attribute

Parameters

arg0 Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object>

Map

Returns

Font

Font

Type Parameters

Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute

AttributedCharacterIterator.Attribute

GetBaselineFor(char)

public byte GetBaselineFor(char arg0)

Parameters

arg0 char

char

Returns

byte

byte

GetFamily(Locale)

public String GetFamily(Locale arg0)

Parameters

arg0 Locale

Locale

Returns

String

String

GetFont(String)

public static Font GetFont(String arg0)

Parameters

arg0 String

String

Returns

Font

Font

GetFont(String, Font)

public static Font GetFont(String arg0, Font arg1)

Parameters

arg0 String

String

arg1 Font

Font

Returns

Font

Font

GetFontName(Locale)

public String GetFontName(Locale arg0)

Parameters

arg0 Locale

Locale

Returns

String

String

GetFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object>)

public static Font GetFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object> arg0) where Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute : AttributedCharacterIterator.Attribute

Parameters

arg0 Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object>

Map

Returns

Font

Font

Type Parameters

Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute

AttributedCharacterIterator.Attribute

GetLineMetrics(String, FontRenderContext)

public LineMetrics GetLineMetrics(String arg0, FontRenderContext arg1)

Parameters

arg0 String

String

arg1 FontRenderContext

FontRenderContext

Returns

LineMetrics

LineMetrics

GetLineMetrics(String, int, int, FontRenderContext)

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

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 FontRenderContext

FontRenderContext

Returns

LineMetrics

LineMetrics

GetLineMetrics(CharacterIterator, int, int, FontRenderContext)

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

Parameters

arg0 CharacterIterator

CharacterIterator

arg1 int

int

arg2 int

int

arg3 FontRenderContext

FontRenderContext

Returns

LineMetrics

LineMetrics

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

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

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

arg3 FontRenderContext

FontRenderContext

Returns

LineMetrics

LineMetrics

GetMaxCharBounds(FontRenderContext)

public Rectangle2D GetMaxCharBounds(FontRenderContext arg0)

Parameters

arg0 FontRenderContext

FontRenderContext

Returns

Rectangle2D

Rectangle2D

GetStringBounds(String, FontRenderContext)

public Rectangle2D GetStringBounds(String arg0, FontRenderContext arg1)

Parameters

arg0 String

String

arg1 FontRenderContext

FontRenderContext

Returns

Rectangle2D

Rectangle2D

GetStringBounds(String, int, int, FontRenderContext)

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

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 FontRenderContext

FontRenderContext

Returns

Rectangle2D

Rectangle2D

GetStringBounds(CharacterIterator, int, int, FontRenderContext)

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

Parameters

arg0 CharacterIterator

CharacterIterator

arg1 int

int

arg2 int

int

arg3 FontRenderContext

FontRenderContext

Returns

Rectangle2D

Rectangle2D

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

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

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

arg3 FontRenderContext

FontRenderContext

Returns

Rectangle2D

Rectangle2D

HasLayoutAttributes()

public bool HasLayoutAttributes()

Returns

bool

bool

HasUniformLineMetrics()

public bool HasUniformLineMetrics()

Returns

bool

bool

IsBold()

public bool IsBold()

Returns

bool

bool

IsItalic()

public bool IsItalic()

Returns

bool

bool

IsPlain()

public bool IsPlain()

Returns

bool

bool

IsTransformed()

public bool IsTransformed()

Returns

bool

bool

LayoutGlyphVector(FontRenderContext, char[], int, int, int)

public GlyphVector LayoutGlyphVector(FontRenderContext arg0, char[] arg1, int arg2, int arg3, int arg4)

Parameters

arg0 FontRenderContext

FontRenderContext

arg1 char[]

char

arg2 int

int

arg3 int

int

arg4 int

int

Returns

GlyphVector

GlyphVector

TextRequiresLayout(char[], int, int)

public static bool TextRequiresLayout(char[] arg0, int arg1, int arg2)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

Returns

bool

bool