Class StyleSheet
public class StyleSheet : StyleContext, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<StyleContext>StyleSheet
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<StyleContext>.IsAssignableFrom(IJavaType)JVMBridgeBase<StyleContext>.IsAssignableFrom<T>()JVMBridgeBase<StyleContext>.Execute<T>(params T[])JVMBridgeBase<StyleContext>.DynBridgeClazzJVMBridgeBase<StyleContext>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
StyleSheet()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public StyleSheet()
StyleSheet(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 StyleSheet(params object[] args)
Parameters
args
object[]
Properties
Base
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/html/StyleSheet.html#getBase() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/html/StyleSheet.html#setBase(java.net.URL)
public URL Base { get; set; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
StyleSheets
public StyleSheet[] StyleSheets { get; }
Property Value
Methods
AddCSSAttribute(MutableAttributeSet, Attribute, String)
public void AddCSSAttribute(MutableAttributeSet arg0, CSS.Attribute arg1, String arg2)
Parameters
arg0
MutableAttributeSetarg1
CSS.Attributearg2
String
AddCSSAttributeFromHTML(MutableAttributeSet, Attribute, String)
public bool AddCSSAttributeFromHTML(MutableAttributeSet arg0, CSS.Attribute arg1, String arg2)
Parameters
arg0
MutableAttributeSetarg1
CSS.Attributearg2
String
Returns
AddRule(String)
public void AddRule(String arg0)
Parameters
AddStyleSheet(StyleSheet)
public void AddStyleSheet(StyleSheet arg0)
Parameters
arg0
StyleSheet
GetBoxPainter(AttributeSet)
public StyleSheet.BoxPainter GetBoxPainter(AttributeSet arg0)
Parameters
arg0
AttributeSet
Returns
GetDeclaration(String)
public AttributeSet GetDeclaration(String arg0)
Parameters
Returns
GetIndexOfSize(float)
public static int GetIndexOfSize(float arg0)
Parameters
Returns
GetListPainter(AttributeSet)
public StyleSheet.ListPainter GetListPainter(AttributeSet arg0)
Parameters
arg0
AttributeSet
Returns
GetPointSize(String)
public float GetPointSize(String arg0)
Parameters
Returns
GetPointSize(int)
public float GetPointSize(int arg0)
Parameters
Returns
GetRule(String)
public Style GetRule(String arg0)
Parameters
Returns
GetRule(Tag, Element)
public Style GetRule(HTML.Tag arg0, Element arg1)
Parameters
Returns
GetViewAttributes(View)
public AttributeSet GetViewAttributes(View arg0)
Parameters
Returns
ImportStyleSheet(URL)
public void ImportStyleSheet(URL arg0)
Parameters
LoadRules(Reader, URL)
public void LoadRules(Reader arg0, URL arg1)
Parameters
Exceptions
RemoveStyleSheet(StyleSheet)
public void RemoveStyleSheet(StyleSheet arg0)
Parameters
arg0
StyleSheet
SetBaseFontSize(String)
public void SetBaseFontSize(String arg0)
Parameters
SetBaseFontSize(int)
public void SetBaseFontSize(int arg0)
Parameters
StringToColor(String)
public Color StringToColor(String arg0)
Parameters
Returns
TranslateHTMLToCSS(AttributeSet)
public AttributeSet TranslateHTMLToCSS(AttributeSet arg0)
Parameters
arg0
AttributeSet