Package system.windows.ink
Class StrokeCollection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.windows.ink.StrokeCollection
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>,IEnumerable,IJCOBridgeReflected
public class StrokeCollection extends NetObjectEnumerable
The base .NET class managing System.Windows.Ink.StrokeCollection, PresentationCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Ink.StrokeCollection
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=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Ink.StrokeCollectionstatic JCTypeclassTypeThe type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description StrokeCollection()StrokeCollection(java.lang.Object instance)Internal constructor.StrokeCollection(Stream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAdd(StrokeCollection strokes)voidAddPropertyData(Guid propertyDataId, NetObject propertyData)voidaddPropertyDataChanged(PropertyDataChangedEventHandler handler)voidaddStrokesChanged(StrokeCollectionChangedEventHandler handler)static StrokeCollectioncast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoStrokeCollection, a cast assert is made to check if types are compatible.voidClip(Rect bounds)StrokeCollectionClone()booleanContainsPropertyData(Guid propertyDataId)voidDraw(DrawingContext context)voidErase(Rect bounds)RectGetBounds()IncrementalLassoHitTesterGetIncrementalLassoHitTester(int percentageWithinLasso)IncrementalStrokeHitTesterGetIncrementalStrokeHitTester(StylusShape eraserShape)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 TypeNetObjectGetPropertyData(Guid propertyDataId)Guid[]GetPropertyDataIds()StrokeCollectionHitTest(Point point)StrokeCollectionHitTest(Point point, double diameter)StrokeCollectionHitTest(Rect bounds, int percentageWithinBounds)intIndexOfNewStrokeCollection(Stroke stroke)voidRemove(StrokeCollection strokes)voidRemovePropertyData(Guid propertyDataId)voidremovePropertyDataChanged(PropertyDataChangedEventHandler handler)voidremoveStrokesChanged(StrokeCollectionChangedEventHandler handler)voidReplace(StrokeCollection strokesToReplace, StrokeCollection strokesToReplaceWith)voidReplace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith)voidSave(Stream stream)voidSave(Stream stream, boolean compress)voidsetJCOInstance(JCObject instance)voidTransform(Matrix transformMatrix, boolean applyToStylusTip)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
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.StrokeCollection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StrokeCollection
public StrokeCollection(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
StrokeCollection
public StrokeCollection() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
StrokeCollection
public StrokeCollection(Stream stream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException, TypeLoadException, FileLoadException, MissingMethodException, TargetInvocationException, MulticastNotSupportedException, NullReferenceException, IOException, EndOfStreamException, OverflowException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionTypeLoadExceptionFileLoadExceptionMissingMethodExceptionTargetInvocationExceptionMulticastNotSupportedExceptionNullReferenceExceptionIOExceptionEndOfStreamExceptionOverflowExceptionInvalidEnumArgumentException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObjectEnumerable- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObjectEnumerable- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObjectEnumerable- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObjectEnumerable- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObjectEnumerable- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static StrokeCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoStrokeCollection, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
StrokeCollectioninstance- 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.ThrowableNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedException
-
IndexOfNewStrokeCollection
public int IndexOfNewStrokeCollection(Stroke stroke) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPropertyDataIds
public Guid[] GetPropertyDataIds() throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentOutOfRangeException
-
GetPropertyData
public NetObject GetPropertyData(Guid propertyDataId) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedException
-
GetIncrementalLassoHitTester
public IncrementalLassoHitTester GetIncrementalLassoHitTester(int percentageWithinLasso) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, MulticastNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionMulticastNotSupportedException
-
GetIncrementalStrokeHitTester
public IncrementalStrokeHitTester GetIncrementalStrokeHitTester(StylusShape eraserShape) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, MulticastNotSupportedException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionNullReferenceException
-
Clone
public StrokeCollection Clone() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, OverflowException, InvalidOperationException, MulticastNotSupportedException, NullReferenceException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionOverflowExceptionInvalidOperationExceptionMulticastNotSupportedExceptionNullReferenceException
-
HitTest
public StrokeCollection HitTest(Point point, double diameter) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, NotImplementedException
-
HitTest
public StrokeCollection HitTest(Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, NotImplementedException
-
HitTest
public StrokeCollection HitTest(Rect bounds, int percentageWithinBounds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, MulticastNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionMulticastNotSupportedException
-
GetBounds
public Rect GetBounds() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
Add
public void Add(StrokeCollection strokes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
-
AddPropertyData
public void AddPropertyData(Guid propertyDataId, NetObject propertyData) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, OverflowException
-
Clip
public void Clip(Rect bounds) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, MulticastNotSupportedException
-
Draw
public void Draw(DrawingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, OverflowException, MulticastNotSupportedException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionOverflowExceptionMulticastNotSupportedExceptionNullReferenceException
-
Erase
public void Erase(Rect bounds) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, MulticastNotSupportedException, NullReferenceException
-
Remove
public void Remove(StrokeCollection strokes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
-
RemovePropertyData
public void RemovePropertyData(Guid propertyDataId) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
Replace
public void Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidCastException
-
Replace
public void Replace(StrokeCollection strokesToReplace, StrokeCollection strokesToReplaceWith) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidCastException
-
Save
public void Save(Stream stream, boolean compress) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, KeyNotFoundException, OverflowException, UnauthorizedAccessException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionOverflowExceptionUnauthorizedAccessException
-
Save
public void Save(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, KeyNotFoundException, OverflowException, ArrayTypeMismatchException, UnauthorizedAccessException
-
Transform
public void Transform(Matrix transformMatrix, boolean applyToStylusTip) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, OverflowException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionOverflowException
-
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
-
addStrokesChanged
public void addStrokesChanged(StrokeCollectionChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeStrokesChanged
public void removeStrokesChanged(StrokeCollectionChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-