Package system.windows.media
Class DrawingContext
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.threading.DispatcherObject
-
- system.windows.media.DrawingContext
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDisposable
public class DrawingContext extends DispatcherObject implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.Windows.Media.DrawingContext, PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.DrawingContext
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: PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: PresentationCorestatic java.lang.String
className
Qualified class name: System.Windows.Media.DrawingContextstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DrawingContext()
DrawingContext(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DrawingContext
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDrawingContext
, a cast assert is made to check if types are compatible.void
close()
void
Close()
void
DrawDrawing(Drawing drawing)
void
DrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY)
void
DrawEllipse(Brush brush, Pen pen, Point center, AnimationClock centerAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations)
void
DrawGeometry(Brush brush, Pen pen, Geometry geometry)
void
DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun)
void
DrawImage(ImageSource imageSource, Rect rectangle)
void
DrawImage(ImageSource imageSource, Rect rectangle, AnimationClock rectangleAnimations)
void
DrawLine(Pen pen, Point point0, AnimationClock point0Animations, Point point1, AnimationClock point1Animations)
void
DrawLine(Pen pen, Point point0, Point point1)
void
DrawRectangle(Brush brush, Pen pen, Rect rectangle)
void
DrawRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations)
void
DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY)
void
DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations)
void
DrawText(FormattedText formattedText, Point origin)
void
DrawVideo(MediaPlayer player, Rect rectangle)
void
DrawVideo(MediaPlayer player, Rect rectangle, AnimationClock rectangleAnimations)
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 Typevoid
Pop()
void
PushClip(Geometry clipGeometry)
void
PushEffect(BitmapEffect effect, BitmapEffectInput effectInput)
void
PushGuidelineSet(GuidelineSet guidelines)
void
PushOpacity(double opacity)
void
PushOpacity(double opacity, AnimationClock opacityAnimations)
void
PushOpacityMask(Brush opacityMask)
void
PushTransform(Transform transform)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.windows.threading.DispatcherObject
CheckAccess, getDispatcher, VerifyAccess
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IDisposable
Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Media.DrawingContext- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDisposable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classDispatcherObject
- 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 interfaceIDisposable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classDispatcherObject
- 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 interfaceIDisposable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classDispatcherObject
- 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 interfaceIDisposable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classDispatcherObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classDispatcherObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDisposable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classDispatcherObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DrawingContext cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDrawingContext
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DrawingContext
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Close
public void Close() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawDrawing
public void DrawDrawing(Drawing drawing) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawEllipse
public void DrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawEllipse
public void DrawEllipse(Brush brush, Pen pen, Point center, AnimationClock centerAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawGeometry
public void DrawGeometry(Brush brush, Pen pen, Geometry geometry) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawGlyphRun
public void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawImage
public void DrawImage(ImageSource imageSource, Rect rectangle, AnimationClock rectangleAnimations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawImage
public void DrawImage(ImageSource imageSource, Rect rectangle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawLine
public void DrawLine(Pen pen, Point point0, AnimationClock point0Animations, Point point1, AnimationClock point1Animations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawLine
public void DrawLine(Pen pen, Point point0, Point point1) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawRectangle
public void DrawRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawRectangle
public void DrawRectangle(Brush brush, Pen pen, Rect rectangle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawRoundedRectangle
public void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawRoundedRectangle
public void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawText
public void DrawText(FormattedText formattedText, Point origin) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidEnumArgumentException, Win32Exception, SecurityException, IOException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidCastException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidEnumArgumentException
Win32Exception
SecurityException
IOException
NotSupportedException
-
DrawVideo
public void DrawVideo(MediaPlayer player, Rect rectangle, AnimationClock rectangleAnimations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawVideo
public void DrawVideo(MediaPlayer player, Rect rectangle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Pop
public void Pop() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushClip
public void PushClip(Geometry clipGeometry) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushEffect
public void PushEffect(BitmapEffect effect, BitmapEffectInput effectInput) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushGuidelineSet
public void PushGuidelineSet(GuidelineSet guidelines) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushOpacity
public void PushOpacity(double opacity, AnimationClock opacityAnimations) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushOpacity
public void PushOpacity(double opacity) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushOpacityMask
public void PushOpacityMask(Brush opacityMask) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PushTransform
public void PushTransform(Transform transform) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-