Package system.windows.ink
Class Stroke
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.ink.Stroke
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Stroke extends NetObject
The base .NET class managing System.Windows.Ink.Stroke, PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Ink.Stroke
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.Ink.Strokestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Stroke()
Stroke(java.lang.Object instance)
Internal constructor.Stroke(StylusPointCollection stylusPoints)
Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes)
-
Method Summary
-
-
-
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.Ink.Stroke- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Stroke
public Stroke(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Stroke
public Stroke() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Stroke
public Stroke(StylusPointCollection stylusPoints, DrawingAttributes drawingAttributes) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, MulticastNotSupportedException, NullReferenceException
-
Stroke
public Stroke(StylusPointCollection stylusPoints) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, OverflowException, MulticastNotSupportedException, NullReferenceException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- 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
- Overrides:
getJCOClassName
in classNetObject
- 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
- Overrides:
getJCOObjectName
in classNetObject
- 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
- 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
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Stroke cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoStroke
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Stroke
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ContainsPropertyData
public boolean ContainsPropertyData(Guid propertyDataId) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
HitTest
public boolean HitTest(Point point, double diameter) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
NotImplementedException
-
HitTest
public boolean HitTest(Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, NotImplementedException
-
HitTest
public boolean HitTest(Rect bounds, int percentageWithinBounds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
MulticastNotSupportedException
-
GetPropertyDataIds
public Guid[] GetPropertyDataIds() throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
GetPropertyData
public NetObject GetPropertyData(Guid propertyDataId) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException
-
Clone
public Stroke Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MulticastNotSupportedException, NullReferenceException
-
GetClipResult
public StrokeCollection GetClipResult(Rect bounds) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, MulticastNotSupportedException
-
GetEraseResult
public StrokeCollection GetEraseResult(Rect bounds) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, MulticastNotSupportedException, NullReferenceException
-
GetBezierStylusPoints
public StylusPointCollection GetBezierStylusPoints() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException
-
GetGeometry
public Geometry GetGeometry() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException
-
GetGeometry
public Geometry GetGeometry(DrawingAttributes drawingAttributes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
GetBounds
public Rect GetBounds() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException
-
AddPropertyData
public void AddPropertyData(Guid propertyDataId, NetObject propertyData) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, OverflowException
-
Draw
public void Draw(DrawingContext drawingContext, DrawingAttributes drawingAttributes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OverflowException, MulticastNotSupportedException, NullReferenceException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OverflowException
MulticastNotSupportedException
NullReferenceException
IndexOutOfRangeException
-
Draw
public void Draw(DrawingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MulticastNotSupportedException, NullReferenceException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
MulticastNotSupportedException
NullReferenceException
IndexOutOfRangeException
-
RemovePropertyData
public void RemovePropertyData(Guid propertyDataId) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ArgumentException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
-
Transform
public void Transform(Matrix transformMatrix, boolean applyToStylusTip) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OverflowException
-
getDrawingAttributes
public DrawingAttributes getDrawingAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDrawingAttributes
public void setDrawingAttributes(DrawingAttributes DrawingAttributes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, MulticastNotSupportedException
-
getStylusPoints
public StylusPointCollection getStylusPoints() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStylusPoints
public void setStylusPoints(StylusPointCollection StylusPoints) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, MulticastNotSupportedException
-
addInvalidated
public void addInvalidated(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeInvalidated
public void removeInvalidated(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addStylusPointsChanged
public void addStylusPointsChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeStylusPointsChanged
public void removeStylusPointsChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addDrawingAttributesReplaced
public void addDrawingAttributesReplaced(DrawingAttributesReplacedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDrawingAttributesReplaced
public void removeDrawingAttributesReplaced(DrawingAttributesReplacedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addDrawingAttributesChanged
public void addDrawingAttributesChanged(PropertyDataChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDrawingAttributesChanged
public void removeDrawingAttributesChanged(PropertyDataChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addPropertyDataChanged
public void addPropertyDataChanged(PropertyDataChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removePropertyDataChanged
public void removePropertyDataChanged(PropertyDataChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addStylusPointsReplaced
public void addStylusPointsReplaced(StylusPointsReplacedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeStylusPointsReplaced
public void removeStylusPointsReplaced(StylusPointsReplacedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-