Interface CanCopy

All Known Implementing Classes:
GCurve, GLine, GObject, GPoint, GTri

public interface CanCopy
Interface for objects that can be copied. This allows for a standardised way to duplicate objects, potentially with modifications specified by CopyProperties.
Author:
Lehlogonolo Poole
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Copies the properties of this object based on the provided CopyProperties.
  • Method Details

    • copy

      void copy(CopyProperties props) throws InvalidCopyException
      Copies the properties of this object based on the provided CopyProperties. The implementation should handle how the copying is performed, potentially creating a new instance or modifying an existing one.
      Parameters:
      props - The properties defining how the copy operation should be performed.
      Throws:
      InvalidCopyException - If the copy operation cannot be completed due to invalid properties or state.