Package system.windows.media
Class GlyphTypeface
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.media.GlyphTypeface
-
- All Implemented Interfaces:
IJCOBridgeReflected
,ISupportInitialize
public class GlyphTypeface extends NetObject implements ISupportInitialize
The base .NET class managing System.Windows.Media.GlyphTypeface, PresentationCore, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.See: https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.GlyphTypeface
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static String
assemblyShortName
Assembly name: PresentationCorestatic String
className
Qualified class name: System.Windows.Media.GlyphTypefacestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description GlyphTypeface()
GlyphTypeface(Object instance)
Internal constructor.GlyphTypeface(Uri typefaceSource)
GlyphTypeface(Uri typefaceSource, StyleSimulations styleSimulations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
BeginInit()
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.static GlyphTypeface
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoGlyphTypeface
, a cast assert is made to check if types are compatible.void
EndInit()
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.double
getBaseline()
double
getCapsHeight()
FontEmbeddingRight
getEmbeddingRights()
Stream
GetFontStream()
Uri
getFontUri()
int
getGlyphCount()
Geometry
GetGlyphOutline(UInt16 glyphIndex, double renderingEmSize, double hintingEmSize)
double
getHeight()
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 TypeFontStretch
getStretch()
double
getStrikethroughPosition()
double
getStrikethroughThickness()
FontStyle
getStyle()
StyleSimulations
getStyleSimulations()
boolean
getSymbol()
double
getUnderlinePosition()
double
getUnderlineThickness()
double
getVersion()
FontWeight
getWeight()
double
getXHeight()
void
setFontUri(Uri FontUri)
void
setJCOInstance(JCObject instance)
void
setStyleSimulations(StyleSimulations StyleSimulations)
-
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: PresentationCore, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Windows.Media.GlyphTypeface- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GlyphTypeface
public GlyphTypeface(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
GlyphTypeface
public GlyphTypeface(Uri typefaceSource, StyleSimulations styleSimulations) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, ExternalException, UriFormatException, FormatException, InvalidEnumArgumentException, FileNotFoundException, UnauthorizedAccessException, FileFormatException, SecurityException, IOException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
ExternalException
UriFormatException
FormatException
InvalidEnumArgumentException
FileNotFoundException
UnauthorizedAccessException
FileFormatException
SecurityException
IOException
-
GlyphTypeface
public GlyphTypeface(Uri typefaceSource) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, UriFormatException, FormatException, InvalidEnumArgumentException, FileNotFoundException, UnauthorizedAccessException, FileFormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
CultureNotFoundException
UriFormatException
FormatException
InvalidEnumArgumentException
FileNotFoundException
UnauthorizedAccessException
FileFormatException
-
-
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 interfaceISupportInitialize
- Overrides:
getJCOAssemblyName
in classNetObject
- 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 interfaceISupportInitialize
- Overrides:
getJCOClassName
in classNetObject
- 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 interfaceISupportInitialize
- Overrides:
getJCOObjectName
in classNetObject
- 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 interfaceISupportInitialize
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISupportInitialize
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static GlyphTypeface cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoGlyphTypeface
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
GlyphTypeface
instance- Throws:
Throwable
- in case of error during cast operation
-
GetFontStream
public Stream GetFontStream() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, IndexOutOfRangeException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, FormatException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, IOException, FileFormatException, KeyNotFoundException, NotSupportedException, WebException, Win32Exception, CookieException, OverflowException
- Throws:
Throwable
ArgumentNullException
ArgumentException
CultureNotFoundException
InvalidOperationException
PlatformNotSupportedException
ObjectDisposedException
OutOfMemoryException
ExternalException
IndexOutOfRangeException
ArgumentOutOfRangeException
UriFormatException
ArrayTypeMismatchException
FormatException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
IOException
FileFormatException
KeyNotFoundException
NotSupportedException
WebException
Win32Exception
CookieException
OverflowException
-
GetGlyphOutline
public Geometry GetGlyphOutline(UInt16 glyphIndex, double renderingEmSize, double hintingEmSize) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, FileNotFoundException, UnauthorizedAccessException, FileFormatException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException, ArrayTypeMismatchException, Win32Exception
- Throws:
Throwable
ArgumentNullException
ArgumentException
CultureNotFoundException
InvalidOperationException
PlatformNotSupportedException
ObjectDisposedException
OutOfMemoryException
ExternalException
FileNotFoundException
UnauthorizedAccessException
FileFormatException
IndexOutOfRangeException
FormatException
ArgumentOutOfRangeException
ArrayTypeMismatchException
Win32Exception
-
BeginInit
@Deprecated public void BeginInit() throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToISupportInitialize method available in ISupportInitialize to obtain an object with an invocable method- Specified by:
BeginInit
in interfaceISupportInitialize
- Throws:
Throwable
-
EndInit
@Deprecated public void EndInit() throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToISupportInitialize method available in ISupportInitialize to obtain an object with an invocable method- Specified by:
EndInit
in interfaceISupportInitialize
- Throws:
Throwable
-
getSymbol
public boolean getSymbol() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getBaseline
public double getBaseline() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getCapsHeight
public double getCapsHeight() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getHeight
public double getHeight() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getStrikethroughPosition
public double getStrikethroughPosition() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getStrikethroughThickness
public double getStrikethroughThickness() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getUnderlinePosition
public double getUnderlinePosition() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getUnderlineThickness
public double getUnderlineThickness() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getVersion
public double getVersion() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, FileNotFoundException, UnauthorizedAccessException, FileFormatException, SecurityException, IOException, NotSupportedException, ArgumentOutOfRangeException, OverflowException
- Throws:
Throwable
ArgumentNullException
ArgumentException
CultureNotFoundException
InvalidOperationException
PlatformNotSupportedException
ObjectDisposedException
OutOfMemoryException
ExternalException
FileNotFoundException
UnauthorizedAccessException
FileFormatException
SecurityException
IOException
NotSupportedException
ArgumentOutOfRangeException
OverflowException
-
getXHeight
public double getXHeight() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getGlyphCount
public int getGlyphCount() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, FileNotFoundException, UnauthorizedAccessException, FileFormatException
-
getFontUri
public Uri getFontUri() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
setFontUri
public void setFontUri(Uri FontUri) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getStretch
public FontStretch getStretch() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getStyle
public FontStyle getStyle() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getWeight
public FontWeight getWeight() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getEmbeddingRights
public FontEmbeddingRight getEmbeddingRights() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, FileNotFoundException, UnauthorizedAccessException, FileFormatException
-
getStyleSimulations
public StyleSimulations getStyleSimulations() throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
setStyleSimulations
public void setStyleSimulations(StyleSimulations StyleSimulations) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
-