Package system.drawing
Class Font
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.drawing.Font
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,ISerializable
public class Font extends MarshalByRefObject implements ISerializable, java.lang.AutoCloseable
The base .NET class managing System.Drawing.Font, System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Font
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Drawing.Commonstatic java.lang.StringclassNameQualified class name: System.Drawing.Fontstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Font()Font(java.lang.Object instance)Internal constructor.Font(java.lang.String familyName, Single emSize)Font(java.lang.String familyName, Single emSize, FontStyle style)Font(java.lang.String familyName, Single emSize, FontStyle style, GraphicsUnit unit)Font(java.lang.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)Font(java.lang.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont)Font(java.lang.String familyName, Single emSize, GraphicsUnit unit)Font(FontFamily family, Single emSize)Font(FontFamily family, Single emSize, FontStyle style)Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit)Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont)Font(FontFamily family, Single emSize, GraphicsUnit unit)Font(Font prototype, FontStyle newStyle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Fontcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoFont, a cast assert is made to check if types are compatible.NetObjectClone()voidclose()voidDispose()static FontFromLogFont(NetObject lf)booleangetBold()FontFamilygetFontFamily()bytegetGdiCharSet()booleangetGdiVerticalFont()intgetHeight()SingleGetHeight()SingleGetHeight(Graphics graphics)SingleGetHeight(Single dpi)booleangetIsSystemFont()booleangetItalic()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typejava.lang.StringgetName()java.lang.StringgetOriginalFontName()SinglegetSize()SinglegetSizeInPoints()booleangetStrikeout()FontStylegetStyle()java.lang.StringgetSystemFontName()booleangetUnderline()GraphicsUnitgetUnit()voidsetJCOInstance(JCObject instance)voidToLogFont(NetObject logFont)voidToLogFont(NetObject logFont, Graphics graphics)-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Drawing.Common- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Drawing.Font- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Font
public Font(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Font
public Font() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Font
public Font(Font prototype, FontStyle newStyle) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(FontFamily family, Single emSize, GraphicsUnit unit) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(FontFamily family, Single emSize) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Font
public Font(java.lang.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, OutOfMemoryException
-
Font
public Font(java.lang.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArgumentNullException, OutOfMemoryException
-
Font
public Font(java.lang.String familyName, Single emSize, FontStyle style, GraphicsUnit unit) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArgumentNullException, OutOfMemoryException
-
Font
public Font(java.lang.String familyName, Single emSize, FontStyle style) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArgumentNullException, OutOfMemoryException
-
Font
public Font(java.lang.String familyName, Single emSize, GraphicsUnit unit) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArgumentNullException, OutOfMemoryException
-
Font
public Font(java.lang.String familyName, Single emSize) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ArgumentNullException, OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classMarshalByRefObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classMarshalByRefObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classMarshalByRefObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classMarshalByRefObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classMarshalByRefObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Font cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoFont, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Fontinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetHeight
public Single GetHeight() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
-
GetHeight
public Single GetHeight(Single dpi) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
GetHeight
public Single GetHeight(Graphics graphics) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
-
FromLogFont
public static Font FromLogFont(NetObject lf) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
ToLogFont
public void ToLogFont(NetObject logFont, Graphics graphics) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
-
ToLogFont
public void ToLogFont(NetObject logFont) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getBold
public boolean getBold() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getGdiVerticalFont
public boolean getGdiVerticalFont() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsSystemFont
public boolean getIsSystemFont() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getItalic
public boolean getItalic() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getStrikeout
public boolean getStrikeout() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getUnderline
public boolean getUnderline() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getGdiCharSet
public byte getGdiCharSet() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getHeight
public int getHeight() throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, ArgumentNullException
-
getSize
public Single getSize() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeInPoints
public Single getSizeInPoints() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
-
getFontFamily
public FontFamily getFontFamily() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStyle
public FontStyle getStyle() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUnit
public GraphicsUnit getUnit() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getName
public java.lang.String getName() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException, CultureNotFoundException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException
-
getOriginalFontName
public java.lang.String getOriginalFontName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSystemFontName
public java.lang.String getSystemFontName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-