Table of Contents

Class SwingUtilities

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class SwingUtilities : SwingConstants, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISwingConstants
Inheritance
JVMBridgeBase
JVMBridgeBase<SwingConstants>
SwingUtilities
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<SwingConstants>.IsAssignableFrom(IJavaType)
JVMBridgeBase<SwingConstants>.IsAssignableFrom<T>()
JVMBridgeBase<SwingConstants>.Execute<T>(params T[])
JVMBridgeBase<SwingConstants>.DynBridgeClazz
JVMBridgeBase<SwingConstants>.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

SwingUtilities()

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

public SwingUtilities()

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

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

Methods

CalculateInnerArea(JComponent, Rectangle)

public static Rectangle CalculateInnerArea(JComponent arg0, Rectangle arg1)

Parameters

arg0 JComponent

JComponent

arg1 Rectangle

Rectangle

Returns

Rectangle

Rectangle

ComputeDifference(Rectangle, Rectangle)

public static Rectangle[] ComputeDifference(Rectangle arg0, Rectangle arg1)

Parameters

arg0 Rectangle

Rectangle

arg1 Rectangle

Rectangle

Returns

Rectangle[]

Rectangle

ComputeIntersection(int, int, int, int, Rectangle)

public static Rectangle ComputeIntersection(int arg0, int arg1, int arg2, int arg3, Rectangle arg4)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

arg4 Rectangle

Rectangle

Returns

Rectangle

Rectangle

ComputeStringWidth(FontMetrics, String)

public static int ComputeStringWidth(FontMetrics arg0, String arg1)

Parameters

arg0 FontMetrics

FontMetrics

arg1 String

String

Returns

int

int

ComputeUnion(int, int, int, int, Rectangle)

public static Rectangle ComputeUnion(int arg0, int arg1, int arg2, int arg3, Rectangle arg4)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

arg4 Rectangle

Rectangle

Returns

Rectangle

Rectangle

ConvertMouseEvent(Component, MouseEvent, Component)

public static MouseEvent ConvertMouseEvent(Component arg0, MouseEvent arg1, Component arg2)

Parameters

arg0 Component

Component

arg1 MouseEvent

MouseEvent

arg2 Component

Component

Returns

MouseEvent

MouseEvent

ConvertPoint(Component, Point, Component)

public static Point ConvertPoint(Component arg0, Point arg1, Component arg2)

Parameters

arg0 Component

Component

arg1 Point

Point

arg2 Component

Component

Returns

Point

Point

ConvertPoint(Component, int, int, Component)

public static Point ConvertPoint(Component arg0, int arg1, int arg2, Component arg3)

Parameters

arg0 Component

Component

arg1 int

int

arg2 int

int

arg3 Component

Component

Returns

Point

Point

ConvertPointFromScreen(Point, Component)

public static void ConvertPointFromScreen(Point arg0, Component arg1)

Parameters

arg0 Point

Point

arg1 Component

Component

ConvertPointToScreen(Point, Component)

public static void ConvertPointToScreen(Point arg0, Component arg1)

Parameters

arg0 Point

Point

arg1 Component

Component

ConvertRectangle(Component, Rectangle, Component)

public static Rectangle ConvertRectangle(Component arg0, Rectangle arg1, Component arg2)

Parameters

arg0 Component

Component

arg1 Rectangle

Rectangle

arg2 Component

Component

Returns

Rectangle

Rectangle

GetAccessibleAt(Component, Point)

public static Accessible GetAccessibleAt(Component arg0, Point arg1)

Parameters

arg0 Component

Component

arg1 Point

Point

Returns

Accessible

Accessible

GetAccessibleChild(Component, int)

public static Accessible GetAccessibleChild(Component arg0, int arg1)

Parameters

arg0 Component

Component

arg1 int

int

Returns

Accessible

Accessible

GetAccessibleChildrenCount(Component)

public static int GetAccessibleChildrenCount(Component arg0)

Parameters

arg0 Component

Component

Returns

int

int

GetAccessibleIndexInParent(Component)

public static int GetAccessibleIndexInParent(Component arg0)

Parameters

arg0 Component

Component

Returns

int

int

GetAccessibleStateSet(Component)

public static AccessibleStateSet GetAccessibleStateSet(Component arg0)

Parameters

arg0 Component

Component

Returns

AccessibleStateSet

AccessibleStateSet

GetAncestorNamed(String, Component)

public static Container GetAncestorNamed(String arg0, Component arg1)

Parameters

arg0 String

String

arg1 Component

Component

Returns

Container

Container

GetAncestorOfClass(Class, Component)

public static Container GetAncestorOfClass(Class arg0, Component arg1)

Parameters

arg0 Class

Class

arg1 Component

Component

Returns

Container

Container

GetDeepestComponentAt(Component, int, int)

public static Component GetDeepestComponentAt(Component arg0, int arg1, int arg2)

Parameters

arg0 Component

Component

arg1 int

int

arg2 int

int

Returns

Component

Component

GetLocalBounds(Component)

public static Rectangle GetLocalBounds(Component arg0)

Parameters

arg0 Component

Component

Returns

Rectangle

Rectangle

GetRoot(Component)

public static Component GetRoot(Component arg0)

Parameters

arg0 Component

Component

Returns

Component

Component

GetRootPane(Component)

public static JRootPane GetRootPane(Component arg0)

Parameters

arg0 Component

Component

Returns

JRootPane

JRootPane

GetUIActionMap(JComponent)

public static ActionMap GetUIActionMap(JComponent arg0)

Parameters

arg0 JComponent

JComponent

Returns

ActionMap

ActionMap

GetUIInputMap(JComponent, int)

public static InputMap GetUIInputMap(JComponent arg0, int arg1)

Parameters

arg0 JComponent

JComponent

arg1 int

int

Returns

InputMap

InputMap

GetUnwrappedParent(Component)

public static Container GetUnwrappedParent(Component arg0)

Parameters

arg0 Component

Component

Returns

Container

Container

GetUnwrappedView(JViewport)

public static Component GetUnwrappedView(JViewport arg0)

Parameters

arg0 JViewport

JViewport

Returns

Component

Component

GetWindowAncestor(Component)

public static Window GetWindowAncestor(Component arg0)

Parameters

arg0 Component

Component

Returns

Window

Window

InvokeAndWait(Runnable)

public static void InvokeAndWait(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Exceptions

InterruptedException
InvocationTargetException

InvokeLater(Runnable)

public static void InvokeLater(Runnable arg0)

Parameters

arg0 Runnable

Runnable

IsDescendingFrom(Component, Component)

public static bool IsDescendingFrom(Component arg0, Component arg1)

Parameters

arg0 Component

Component

arg1 Component

Component

Returns

bool

bool

IsEventDispatchThread()

public static bool IsEventDispatchThread()

Returns

bool

bool

IsLeftMouseButton(MouseEvent)

public static bool IsLeftMouseButton(MouseEvent arg0)

Parameters

arg0 MouseEvent

MouseEvent

Returns

bool

bool

IsMiddleMouseButton(MouseEvent)

public static bool IsMiddleMouseButton(MouseEvent arg0)

Parameters

arg0 MouseEvent

MouseEvent

Returns

bool

bool

IsRectangleContainingRectangle(Rectangle, Rectangle)

public static bool IsRectangleContainingRectangle(Rectangle arg0, Rectangle arg1)

Parameters

arg0 Rectangle

Rectangle

arg1 Rectangle

Rectangle

Returns

bool

bool

IsRightMouseButton(MouseEvent)

public static bool IsRightMouseButton(MouseEvent arg0)

Parameters

arg0 MouseEvent

MouseEvent

Returns

bool

bool

LayoutCompoundLabel(FontMetrics, String, Icon, int, int, int, int, Rectangle, Rectangle, Rectangle, int)

public static String LayoutCompoundLabel(FontMetrics arg0, String arg1, Icon arg2, int arg3, int arg4, int arg5, int arg6, Rectangle arg7, Rectangle arg8, Rectangle arg9, int arg10)

Parameters

arg0 FontMetrics

FontMetrics

arg1 String

String

arg2 Icon

Icon

arg3 int

int

arg4 int

int

arg5 int

int

arg6 int

int

arg7 Rectangle

Rectangle

arg8 Rectangle

Rectangle

arg9 Rectangle

Rectangle

arg10 int

int

Returns

String

String

LayoutCompoundLabel(JComponent, FontMetrics, String, Icon, int, int, int, int, Rectangle, Rectangle, Rectangle, int)

public static String LayoutCompoundLabel(JComponent arg0, FontMetrics arg1, String arg2, Icon arg3, int arg4, int arg5, int arg6, int arg7, Rectangle arg8, Rectangle arg9, Rectangle arg10, int arg11)

Parameters

arg0 JComponent

JComponent

arg1 FontMetrics

FontMetrics

arg2 String

String

arg3 Icon

Icon

arg4 int

int

arg5 int

int

arg6 int

int

arg7 int

int

arg8 Rectangle

Rectangle

arg9 Rectangle

Rectangle

arg10 Rectangle

Rectangle

arg11 int

int

Returns

String

String

NotifyAction(Action, KeyStroke, KeyEvent, object, int)

public static bool NotifyAction(Action arg0, KeyStroke arg1, KeyEvent arg2, object arg3, int arg4)

Parameters

arg0 Action

Action

arg1 KeyStroke

KeyStroke

arg2 KeyEvent

KeyEvent

arg3 object

object

arg4 int

int

Returns

bool

bool

PaintComponent(Graphics, Component, Container, Rectangle)

public static void PaintComponent(Graphics arg0, Component arg1, Container arg2, Rectangle arg3)

Parameters

arg0 Graphics

Graphics

arg1 Component

Component

arg2 Container

Container

arg3 Rectangle

Rectangle

PaintComponent(Graphics, Component, Container, int, int, int, int)

public static void PaintComponent(Graphics arg0, Component arg1, Container arg2, int arg3, int arg4, int arg5, int arg6)

Parameters

arg0 Graphics

Graphics

arg1 Component

Component

arg2 Container

Container

arg3 int

int

arg4 int

int

arg5 int

int

arg6 int

int

ProcessKeyBindings(KeyEvent)

public static bool ProcessKeyBindings(KeyEvent arg0)

Parameters

arg0 KeyEvent

KeyEvent

Returns

bool

bool

ReplaceUIActionMap(JComponent, ActionMap)

public static void ReplaceUIActionMap(JComponent arg0, ActionMap arg1)

Parameters

arg0 JComponent

JComponent

arg1 ActionMap

ActionMap

ReplaceUIInputMap(JComponent, int, InputMap)

public static void ReplaceUIInputMap(JComponent arg0, int arg1, InputMap arg2)

Parameters

arg0 JComponent

JComponent

arg1 int

int

arg2 InputMap

InputMap

UpdateComponentTreeUI(Component)

public static void UpdateComponentTreeUI(Component arg0)

Parameters

arg0 Component

Component

WindowForComponent(Component)

public static Window WindowForComponent(Component arg0)

Parameters

arg0 Component

Component

Returns

Window

Window