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.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.StrokeCollectionstatic JCType
classType
The 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 void
Add(StrokeCollection strokes)
void
AddPropertyData(Guid propertyDataId, NetObject propertyData)
void
addPropertyDataChanged(PropertyDataChangedEventHandler handler)
void
addStrokesChanged(StrokeCollectionChangedEventHandler handler)
static StrokeCollection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoStrokeCollection
, a cast assert is made to check if types are compatible.void
Clip(Rect bounds)
StrokeCollection
Clone()
boolean
ContainsPropertyData(Guid propertyDataId)
void
Draw(DrawingContext context)
void
Erase(Rect bounds)
Rect
GetBounds()
IncrementalLassoHitTester
GetIncrementalLassoHitTester(int percentageWithinLasso)
IncrementalStrokeHitTester
GetIncrementalStrokeHitTester(StylusShape eraserShape)
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 TypeNetObject
GetPropertyData(Guid propertyDataId)
Guid[]
GetPropertyDataIds()
StrokeCollection
HitTest(Point point)
StrokeCollection
HitTest(Point point, double diameter)
StrokeCollection
HitTest(Rect bounds, int percentageWithinBounds)
int
IndexOfNewStrokeCollection(Stroke stroke)
void
Remove(StrokeCollection strokes)
void
RemovePropertyData(Guid propertyDataId)
void
removePropertyDataChanged(PropertyDataChangedEventHandler handler)
void
removeStrokesChanged(StrokeCollectionChangedEventHandler handler)
void
Replace(StrokeCollection strokesToReplace, StrokeCollection strokesToReplaceWith)
void
Replace(Stroke strokeToReplace, StrokeCollection strokesToReplaceWith)
void
Save(Stream stream)
void
Save(Stream stream, boolean compress)
void
setJCOInstance(JCObject instance)
void
Transform(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.Throwable
Internal 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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
TypeLoadException
FileLoadException
MissingMethodException
TargetInvocationException
MulticastNotSupportedException
NullReferenceException
IOException
EndOfStreamException
OverflowException
InvalidEnumArgumentException
-
-
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 classNetObjectEnumerable
- 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 classNetObjectEnumerable
- 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 classNetObjectEnumerable
- 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 classNetObjectEnumerable
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObjectEnumerable
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static StrokeCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoStrokeCollection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
StrokeCollection
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
-
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.Throwable
ArgumentOutOfRangeException
-
GetPropertyData
public NetObject GetPropertyData(Guid propertyDataId) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
GetIncrementalLassoHitTester
public IncrementalLassoHitTester GetIncrementalLassoHitTester(int percentageWithinLasso) 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
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
MulticastNotSupportedException
NullReferenceException
-
Clone
public StrokeCollection Clone() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, OverflowException, InvalidOperationException, MulticastNotSupportedException, NullReferenceException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
OverflowException
InvalidOperationException
MulticastNotSupportedException
NullReferenceException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
MulticastNotSupportedException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
OverflowException
MulticastNotSupportedException
NullReferenceException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
KeyNotFoundException
OverflowException
UnauthorizedAccessException
-
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.Throwable
NotSupportedException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
OverflowException
-
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
-
-