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=4.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.StringassemblyFullNameFully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Media.DrawingContextstatic JCTypeclassTypeThe 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 DrawingContextcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDrawingContext, a cast assert is made to check if types are compatible.voidclose()voidClose()voidDrawDrawing(Drawing drawing)voidDrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY)voidDrawEllipse(Brush brush, Pen pen, Point center, AnimationClock centerAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations)voidDrawGeometry(Brush brush, Pen pen, Geometry geometry)voidDrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun)voidDrawImage(ImageSource imageSource, Rect rectangle)voidDrawImage(ImageSource imageSource, Rect rectangle, AnimationClock rectangleAnimations)voidDrawLine(Pen pen, Point point0, AnimationClock point0Animations, Point point1, AnimationClock point1Animations)voidDrawLine(Pen pen, Point point0, Point point1)voidDrawRectangle(Brush brush, Pen pen, Rect rectangle)voidDrawRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations)voidDrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY)voidDrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations)voidDrawText(FormattedText formattedText, Point origin)voidDrawVideo(MediaPlayer player, Rect rectangle)voidDrawVideo(MediaPlayer player, Rect rectangle, AnimationClock rectangleAnimations)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 TypevoidPop()voidPushClip(Geometry clipGeometry)voidPushEffect(BitmapEffect effect, BitmapEffectInput effectInput)voidPushGuidelineSet(GuidelineSet guidelines)voidPushOpacity(double opacity)voidPushOpacity(double opacity, AnimationClock opacityAnimations)voidPushOpacityMask(Brush opacityMask)voidPushTransform(Transform transform)voidsetJCOInstance(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=4.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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDisposable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classDispatcherObject- 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 interfaceIDisposable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classDispatcherObject- 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 interfaceIDisposable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classDispatcherObject- 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 interfaceIDisposable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classDispatcherObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classDispatcherObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDisposable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classDispatcherObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DrawingContext cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDrawingContext, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DrawingContextinstance- 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) 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
-
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) 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
-
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, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidEnumArgumentException, Win32Exception, SecurityException, IOException
-
DrawVideo
public void DrawVideo(MediaPlayer player, Rect rectangle) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DrawVideo
public void DrawVideo(MediaPlayer player, Rect rectangle, AnimationClock rectangleAnimations) 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) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
PushOpacity
public void PushOpacity(double opacity, AnimationClock opacityAnimations) 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:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-