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.String
assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Drawing.Commonstatic java.lang.String
className
Qualified class name: System.Drawing.Fontstatic JCType
classType
The 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 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()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typejava.lang.String
getName()
java.lang.String
getOriginalFontName()
Single
getSize()
Single
getSizeInPoints()
boolean
getStrikeout()
FontStyle
getStyle()
java.lang.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, 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.Throwable
Internal 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: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 java.lang.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 java.lang.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 java.lang.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 java.lang.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:
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
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:
close
in 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
-
-