Class TextLayout
public class TextLayout : Cloneable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloneable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Cloneable>TextLayout
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Cloneable>.IsAssignableFrom(IJavaType)JVMBridgeBase<Cloneable>.IsAssignableFrom<T>()JVMBridgeBase<Cloneable>.Execute<T>(params T[])JVMBridgeBase<Cloneable>.DynBridgeClazzJVMBridgeBase<Cloneable>.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
TextLayout()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public TextLayout()
TextLayout(String, Font, FontRenderContext)
public TextLayout(String arg0, Font arg1, FontRenderContext arg2)
Parameters
arg0
Stringarg1
Fontarg2
FontRenderContext
TextLayout(String, Map, FontRenderContext)
public TextLayout(String arg0, Map arg1, FontRenderContext arg2)
Parameters
arg0
Stringarg1
Maparg2
FontRenderContext
TextLayout(AttributedCharacterIterator, FontRenderContext)
public TextLayout(AttributedCharacterIterator arg0, FontRenderContext arg1)
Parameters
arg0
AttributedCharacterIteratorarg1
FontRenderContext
TextLayout(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 TextLayout(params object[] args)
Parameters
args
object[]
Properties
Advance
public float Advance { get; }
Property Value
Ascent
public float Ascent { get; }
Property Value
Baseline
public byte Baseline { get; }
Property Value
BaselineOffsets
public float[] BaselineOffsets { get; }
Property Value
- float[]
Bounds
public Rectangle2D Bounds { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CharacterCount
public int CharacterCount { get; }
Property Value
DEFAULT_CARET_POLICY
public static TextLayout.CaretPolicy DEFAULT_CARET_POLICY { get; }
Property Value
Descent
public float Descent { 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
LayoutPath
public LayoutPath LayoutPath { get; }
Property Value
Leading
public float Leading { get; }
Property Value
VisibleAdvance
public float VisibleAdvance { get; }
Property Value
Methods
Draw(Graphics2D, float, float)
public void Draw(Graphics2D arg0, float arg1, float arg2)
Parameters
arg0
Graphics2Darg1
floatarg2
float
GetBlackBoxBounds(int, int)
public Shape GetBlackBoxBounds(int arg0, int arg1)
Parameters
Returns
GetCaretInfo(TextHitInfo)
public float[] GetCaretInfo(TextHitInfo arg0)
Parameters
arg0
TextHitInfo
Returns
GetCaretInfo(TextHitInfo, Rectangle2D)
public float[] GetCaretInfo(TextHitInfo arg0, Rectangle2D arg1)
Parameters
arg0
TextHitInfoarg1
Rectangle2D
Returns
GetCaretShape(TextHitInfo)
public Shape GetCaretShape(TextHitInfo arg0)
Parameters
arg0
TextHitInfo
Returns
GetCaretShape(TextHitInfo, Rectangle2D)
public Shape GetCaretShape(TextHitInfo arg0, Rectangle2D arg1)
Parameters
arg0
TextHitInfoarg1
Rectangle2D
Returns
GetCaretShapes(int)
public Shape[] GetCaretShapes(int arg0)
Parameters
Returns
GetCaretShapes(int, Rectangle2D)
public Shape[] GetCaretShapes(int arg0, Rectangle2D arg1)
Parameters
arg0
intarg1
Rectangle2D
Returns
GetCaretShapes(int, Rectangle2D, CaretPolicy)
public Shape[] GetCaretShapes(int arg0, Rectangle2D arg1, TextLayout.CaretPolicy arg2)
Parameters
arg0
intarg1
Rectangle2Darg2
TextLayout.CaretPolicy
Returns
GetCharacterLevel(int)
public byte GetCharacterLevel(int arg0)
Parameters
Returns
GetJustifiedLayout(float)
public TextLayout GetJustifiedLayout(float arg0)
Parameters
Returns
GetLogicalHighlightShape(int, int)
public Shape GetLogicalHighlightShape(int arg0, int arg1)
Parameters
Returns
GetLogicalHighlightShape(int, int, Rectangle2D)
public Shape GetLogicalHighlightShape(int arg0, int arg1, Rectangle2D arg2)
Parameters
arg0
intarg1
intarg2
Rectangle2D
Returns
GetLogicalRangesForVisualSelection(TextHitInfo, TextHitInfo)
public int[] GetLogicalRangesForVisualSelection(TextHitInfo arg0, TextHitInfo arg1)
Parameters
arg0
TextHitInfoarg1
TextHitInfo
Returns
GetNextLeftHit(TextHitInfo)
public TextHitInfo GetNextLeftHit(TextHitInfo arg0)
Parameters
arg0
TextHitInfo
Returns
GetNextLeftHit(int)
public TextHitInfo GetNextLeftHit(int arg0)
Parameters
Returns
GetNextLeftHit(int, CaretPolicy)
public TextHitInfo GetNextLeftHit(int arg0, TextLayout.CaretPolicy arg1)
Parameters
arg0
intarg1
TextLayout.CaretPolicy
Returns
GetNextRightHit(TextHitInfo)
public TextHitInfo GetNextRightHit(TextHitInfo arg0)
Parameters
arg0
TextHitInfo
Returns
GetNextRightHit(int)
public TextHitInfo GetNextRightHit(int arg0)
Parameters
Returns
GetNextRightHit(int, CaretPolicy)
public TextHitInfo GetNextRightHit(int arg0, TextLayout.CaretPolicy arg1)
Parameters
arg0
intarg1
TextLayout.CaretPolicy
Returns
GetOutline(AffineTransform)
public Shape GetOutline(AffineTransform arg0)
Parameters
Returns
GetPixelBounds(FontRenderContext, float, float)
public Rectangle GetPixelBounds(FontRenderContext arg0, float arg1, float arg2)
Parameters
arg0
FontRenderContextarg1
floatarg2
float
Returns
GetVisualHighlightShape(TextHitInfo, TextHitInfo)
public Shape GetVisualHighlightShape(TextHitInfo arg0, TextHitInfo arg1)
Parameters
arg0
TextHitInfoarg1
TextHitInfo
Returns
GetVisualHighlightShape(TextHitInfo, TextHitInfo, Rectangle2D)
public Shape GetVisualHighlightShape(TextHitInfo arg0, TextHitInfo arg1, Rectangle2D arg2)
Parameters
arg0
TextHitInfoarg1
TextHitInfoarg2
Rectangle2D
Returns
GetVisualOtherHit(TextHitInfo)
public TextHitInfo GetVisualOtherHit(TextHitInfo arg0)
Parameters
arg0
TextHitInfo
Returns
HitTestChar(float, float)
public TextHitInfo HitTestChar(float arg0, float arg1)
Parameters
Returns
HitTestChar(float, float, Rectangle2D)
public TextHitInfo HitTestChar(float arg0, float arg1, Rectangle2D arg2)
Parameters
arg0
floatarg1
floatarg2
Rectangle2D
Returns
HitToPoint(TextHitInfo, Point2D)
public void HitToPoint(TextHitInfo arg0, Point2D arg1)
Parameters
arg0
TextHitInfoarg1
Point2D
IsLeftToRight()
public bool IsLeftToRight()
Returns
IsVertical()
public bool IsVertical()