Table of Contents

Class StyleContext

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

StyleContext()

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

public StyleContext()

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ChangeListeners

public ChangeListener[] ChangeListeners { get; }

Property Value

ChangeListener[]

DEFAULT_STYLE

public static String DEFAULT_STYLE { get; }

Property Value

String

DefaultStyleContext

public static StyleContext DefaultStyleContext { get; }

Property Value

StyleContext

EmptySet

public AttributeSet EmptySet { get; }

Property Value

AttributeSet

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

StyleNames

public Enumeration<object> StyleNames { get; }

Property Value

Enumeration<object>

Methods

AddAttribute(AttributeSet, object, object)

public AttributeSet AddAttribute(AttributeSet arg0, object arg1, object arg2)

Parameters

arg0 AttributeSet

AttributeSet

arg1 object

object

arg2 object

object

Returns

AttributeSet

AttributeSet

AddAttributes(AttributeSet, AttributeSet)

public AttributeSet AddAttributes(AttributeSet arg0, AttributeSet arg1)

Parameters

arg0 AttributeSet

AttributeSet

arg1 AttributeSet

AttributeSet

Returns

AttributeSet

AttributeSet

AddChangeListener(ChangeListener)

public void AddChangeListener(ChangeListener arg0)

Parameters

arg0 ChangeListener

ChangeListener

AddStyle(String, Style)

public Style AddStyle(String arg0, Style arg1)

Parameters

arg0 String

String

arg1 Style

Style

Returns

Style

Style

GetBackground(AttributeSet)

public Color GetBackground(AttributeSet arg0)

Parameters

arg0 AttributeSet

AttributeSet

Returns

Color

Color

GetFont(String, int, int)

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

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

Returns

Font

Font

GetFont(AttributeSet)

public Font GetFont(AttributeSet arg0)

Parameters

arg0 AttributeSet

AttributeSet

Returns

Font

Font

GetFontMetrics(Font)

public FontMetrics GetFontMetrics(Font arg0)

Parameters

arg0 Font

Font

Returns

FontMetrics

FontMetrics

GetForeground(AttributeSet)

public Color GetForeground(AttributeSet arg0)

Parameters

arg0 AttributeSet

AttributeSet

Returns

Color

Color

GetStaticAttribute(object)

public static object GetStaticAttribute(object arg0)

Parameters

arg0 object

object

Returns

object

object

GetStaticAttributeKey(object)

public static object GetStaticAttributeKey(object arg0)

Parameters

arg0 object

object

Returns

object

object

GetStyle(String)

public Style GetStyle(String arg0)

Parameters

arg0 String

String

Returns

Style

Style

ReadAttributeSet(ObjectInputStream, MutableAttributeSet)

public static void ReadAttributeSet(ObjectInputStream arg0, MutableAttributeSet arg1)

Parameters

arg0 ObjectInputStream

ObjectInputStream

arg1 MutableAttributeSet

MutableAttributeSet

Exceptions

ClassNotFoundException
IOException

ReadAttributes(ObjectInputStream, MutableAttributeSet)

public void ReadAttributes(ObjectInputStream arg0, MutableAttributeSet arg1)

Parameters

arg0 ObjectInputStream

ObjectInputStream

arg1 MutableAttributeSet

MutableAttributeSet

Exceptions

ClassNotFoundException
IOException

Reclaim(AttributeSet)

public void Reclaim(AttributeSet arg0)

Parameters

arg0 AttributeSet

AttributeSet

RegisterStaticAttributeKey(object)

public static void RegisterStaticAttributeKey(object arg0)

Parameters

arg0 object

object

RemoveAttribute(AttributeSet, object)

public AttributeSet RemoveAttribute(AttributeSet arg0, object arg1)

Parameters

arg0 AttributeSet

AttributeSet

arg1 object

object

Returns

AttributeSet

AttributeSet

RemoveAttributes(AttributeSet, Enumeration<object>)

public AttributeSet RemoveAttributes(AttributeSet arg0, Enumeration<object> arg1)

Parameters

arg0 AttributeSet

AttributeSet

arg1 Enumeration<object>

Enumeration

Returns

AttributeSet

AttributeSet

RemoveAttributes(AttributeSet, AttributeSet)

public AttributeSet RemoveAttributes(AttributeSet arg0, AttributeSet arg1)

Parameters

arg0 AttributeSet

AttributeSet

arg1 AttributeSet

AttributeSet

Returns

AttributeSet

AttributeSet

RemoveChangeListener(ChangeListener)

public void RemoveChangeListener(ChangeListener arg0)

Parameters

arg0 ChangeListener

ChangeListener

RemoveStyle(String)

public void RemoveStyle(String arg0)

Parameters

arg0 String

String

WriteAttributeSet(ObjectOutputStream, AttributeSet)

public static void WriteAttributeSet(ObjectOutputStream arg0, AttributeSet arg1)

Parameters

arg0 ObjectOutputStream

ObjectOutputStream

arg1 AttributeSet

AttributeSet

Exceptions

IOException

WriteAttributes(ObjectOutputStream, AttributeSet)

public void WriteAttributes(ObjectOutputStream arg0, AttributeSet arg1)

Parameters

arg0 ObjectOutputStream

ObjectOutputStream

arg1 AttributeSet

AttributeSet

Exceptions

IOException

Operators

implicit operator Serializable(StyleContext)

Converter from StyleContext to Serializable

public static implicit operator Serializable(StyleContext t)

Parameters

t StyleContext

Returns

Serializable