Package ghidra.util

Class SaveableColor

    • Constructor Detail

      • SaveableColor

        public SaveableColor​(java.awt.Color color)
      • SaveableColor

        public SaveableColor()
    • Method Detail

      • save

        public void save​(ObjectStorage objStorage)
        Description copied from interface: Saveable
        Save to the given ObjectStorage.
        Parameters:
        objStorage - Object that can handle Java primitives, Strings, and arrays of primitives and Strings
        See Also:
        Saveable.restore(ObjectStorage)
      • restore

        public void restore​(ObjectStorage objStorage)
        Description copied from interface: Saveable
        Restore from the given ObjectStorage.
        Parameters:
        objStorage - Object that can handle Java primitives, Strings, and arrays of primitives and Strings
        See Also:
        Saveable.save(ObjectStorage)
      • getColor

        public java.awt.Color getColor()
      • getSchemaVersion

        public int getSchemaVersion()
        Description copied from interface: Saveable
        Get the storage schema version. Any time there is a software release in which the implementing class has changed the data structure used for the save and restore methods, the schema version must be incremented. NOTE: While this could be a static method, the Saveable interface is unable to define such methods.
        Returns:
        storage schema version.
        See Also:
        Saveable.getSchemaVersion()
      • isUpgradeable

        public boolean isUpgradeable​(int oldSchemaVersion)
        Description copied from interface: Saveable
        Determine if the implementation supports an storage upgrade of the specified oldSchemaVersion to the current schema version.
        Returns:
        true if upgrading is supported for the older schema version.
        See Also:
        Saveable.isUpgradeable(int)
      • upgrade

        public boolean upgrade​(ObjectStorage oldObjStorage,
                               int oldSchemaVersion,
                               ObjectStorage currentObjStorage)
        Description copied from interface: Saveable
        Upgrade an older stored object to the current storage schema.
        Parameters:
        oldObjStorage - the old stored object
        oldSchemaVersion - storage schema version number for the old object
        currentObjStorage - new object for storage in the current schema
        Returns:
        true if data was upgraded to the currentObjStorage successfully.
        See Also:
        Saveable.upgrade(ghidra.util.ObjectStorage, int, ghidra.util.ObjectStorage)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object