Uses of Class
protocols.apps.canvas.PaintOp
Packages that use PaintOp
-
Uses of PaintOp in protocols.apps.canvas
Methods in protocols.apps.canvas that return PaintOpModifier and TypeMethodDescriptionstatic PaintOpCanvasPayload.decode(byte[] bytes) Parse the bytes delivered by the gossip layer back into a paint op.static PaintOpPaintOp.readFrom(DataInputStream in) Read one op previously written bywriteTo(java.io.DataOutputStream).Methods in protocols.apps.canvas that return types with arguments of type PaintOpModifier and TypeMethodDescriptionPixelCanvas.snapshotOps()All current winning ops (one per painted cell) — used to seed a joining peer.Methods in protocols.apps.canvas with parameters of type PaintOpModifier and TypeMethodDescriptionbooleanApply an op under last-writer-wins.static byte[]Serialize a paint op to the bytes carried inside a broadcast message.booleanPaintOp.isNewerThan(PaintOp other) Total, deterministic last-writer-wins order: this op beatsotheriff it has a strictly higher timestamp, or an equal timestamp and a greateroriginId, or equal on both and a greateropId.Method parameters in protocols.apps.canvas with type arguments of type PaintOpModifier and TypeMethodDescriptionintPixelCanvas.mergeSnapshot(List<PaintOp> ops) Merge a peer's snapshot into this canvas under LWW. -
Uses of PaintOp in protocols.apps.canvas.messages
Methods in protocols.apps.canvas.messages that return types with arguments of type PaintOpConstructor parameters in protocols.apps.canvas.messages with type arguments of type PaintOp