Package system.drawing
Class Font
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.drawing.Font
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
,ISerializable
public class Font extends MarshalByRefObject implements ISerializable, AutoCloseable
The base .NET class managing System.Drawing.Font, System.Drawing.Common, Version=6.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
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static String
assemblyShortName
Assembly name: System.Drawing.Commonstatic String
className
Qualified class name: System.Drawing.Fontstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Font()
Font(Object instance)
Internal constructor.Font(String familyName, Single emSize)
Font(String familyName, Single emSize, FontStyle style)
Font(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)
Font(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
Font(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont)
Font(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 Deprecated Methods Modifier and Type Method Description static Font
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoFont
, a cast assert is made to check if types are compatible.NetObject
Clone()
void
close()
void
Dispose()
static Font
FromLogFont(NetObject lf)
boolean
getBold()
FontFamily
getFontFamily()
byte
getGdiCharSet()
boolean
getGdiVerticalFont()
int
getHeight()
Single
GetHeight()
Single
GetHeight(Graphics graphics)
Single
GetHeight(Single dpi)
boolean
getIsSystemFont()
boolean
getItalic()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeString
getName()
void
GetObjectData(SerializationInfo info, StreamingContext context)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.String
getOriginalFontName()
Single
getSize()
Single
getSizeInPoints()
boolean
getStrikeout()
FontStyle
getStyle()
String
getSystemFontName()
boolean
getUnderline()
GraphicsUnit
getUnit()
void
setJCOInstance(JCObject instance)
void
ToLogFont(NetObject logFont)
void
ToLogFont(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, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Drawing.Common- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Drawing.Font- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Font
public Font(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
Font
public Font(Font prototype, FontStyle newStyle) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(FontFamily family, Single emSize, FontStyle style) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(FontFamily family, Single emSize, GraphicsUnit unit) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(FontFamily family, Single emSize) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Font
public Font(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont) throws Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, IndexOutOfRangeException, InvalidOperationException
-
Font
public Font(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
Font
public Font(String familyName, Single emSize, FontStyle style, GraphicsUnit unit) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
Font
public Font(String familyName, Single emSize, FontStyle style) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
Font
public Font(String familyName, Single emSize, GraphicsUnit unit) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
Font
public Font(String familyName, Single emSize) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classMarshalByRefObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classMarshalByRefObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classMarshalByRefObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Font cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoFont
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Font
instance- Throws:
Throwable
- in case of error during cast operation
-
GetHeight
public Single GetHeight() throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
-
GetHeight
public Single GetHeight(Single dpi) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
GetHeight
public Single GetHeight(Graphics graphics) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
FromLogFont
public static Font FromLogFont(NetObject lf) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, FormatException
-
Clone
public NetObject Clone() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, FormatException
-
Dispose
public void Dispose() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
ToLogFont
public void ToLogFont(NetObject logFont, Graphics graphics) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
ToLogFont
public void ToLogFont(NetObject logFont) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
-
GetObjectData
@Deprecated public void GetObjectData(SerializationInfo info, StreamingContext context) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToISerializable method available in ISerializable to obtain an object with an invocable method- Specified by:
GetObjectData
in interfaceISerializable
- Throws:
Throwable
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getHeight
public int getHeight() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, ArrayTypeMismatchException
-
getSizeInPoints
public Single getSizeInPoints() throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
-
getFontFamily
public FontFamily getFontFamily() throws Throwable
- Throws:
Throwable
-
getUnit
public GraphicsUnit getUnit() throws Throwable
- Throws:
Throwable
-
getName
public String getName() throws Throwable, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, FormatException
-
-