Table of Contents

Class Utilities

Namespace
Javax.Swing.Text
Assembly
MASES.JNet.dll
public class Utilities : JVMBridgeBase<Utilities>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
Utilities
Implements
Inherited Members
Extension Methods

Constructors

Utilities()

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

public Utilities()

Utilities(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 Utilities(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

DrawTabbedText(Segment, float, float, Graphics2D, TabExpander, int)

public static float DrawTabbedText(Segment arg0, float arg1, float arg2, Graphics2D arg3, TabExpander arg4, int arg5)

Parameters

arg0 Segment

Segment

arg1 float

float

arg2 float

float

arg3 Graphics2D

Graphics2D

arg4 TabExpander

TabExpander

arg5 int

int

Returns

float

float

GetBreakLocation(Segment, FontMetrics, float, float, TabExpander, int)

public static int GetBreakLocation(Segment arg0, FontMetrics arg1, float arg2, float arg3, TabExpander arg4, int arg5)

Parameters

arg0 Segment

Segment

arg1 FontMetrics

FontMetrics

arg2 float

float

arg3 float

float

arg4 TabExpander

TabExpander

arg5 int

int

Returns

int

int

GetNextWord(JTextComponent, int)

public static int GetNextWord(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

int

int

Exceptions

BadLocationException

GetParagraphElement(JTextComponent, int)

public static Element GetParagraphElement(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

Element

Element

GetPositionAbove(JTextComponent, int, float)

public static int GetPositionAbove(JTextComponent arg0, int arg1, float arg2)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

arg2 float

float

Returns

int

int

Exceptions

BadLocationException

GetPositionBelow(JTextComponent, int, float)

public static int GetPositionBelow(JTextComponent arg0, int arg1, float arg2)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

arg2 float

float

Returns

int

int

Exceptions

BadLocationException

GetPreviousWord(JTextComponent, int)

public static int GetPreviousWord(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

int

int

Exceptions

BadLocationException

GetRowEnd(JTextComponent, int)

public static int GetRowEnd(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

int

int

Exceptions

BadLocationException

GetRowStart(JTextComponent, int)

public static int GetRowStart(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

int

int

Exceptions

BadLocationException

GetTabbedTextOffset(Segment, FontMetrics, float, float, TabExpander, int, bool)

public static int GetTabbedTextOffset(Segment arg0, FontMetrics arg1, float arg2, float arg3, TabExpander arg4, int arg5, bool arg6)

Parameters

arg0 Segment

Segment

arg1 FontMetrics

FontMetrics

arg2 float

float

arg3 float

float

arg4 TabExpander

TabExpander

arg5 int

int

arg6 bool

bool

Returns

int

int

GetTabbedTextWidth(Segment, FontMetrics, float, TabExpander, int)

public static float GetTabbedTextWidth(Segment arg0, FontMetrics arg1, float arg2, TabExpander arg3, int arg4)

Parameters

arg0 Segment

Segment

arg1 FontMetrics

FontMetrics

arg2 float

float

arg3 TabExpander

TabExpander

arg4 int

int

Returns

float

float

GetWordEnd(JTextComponent, int)

public static int GetWordEnd(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

int

int

Exceptions

BadLocationException

GetWordStart(JTextComponent, int)

public static int GetWordStart(JTextComponent arg0, int arg1)

Parameters

arg0 JTextComponent

JTextComponent

arg1 int

int

Returns

int

int

Exceptions

BadLocationException