Class ClipKey


  • class ClipKey
    extends java.lang.Object
    Inner class used to key clip definitions in a Map. This is needed because we need to test equality on the value of GeneralPath and GeneralPath's equal method does not implement that behavior.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int hashCodeValue
      This clip hash code.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClipKey​(java.awt.geom.GeneralPath proxiedPath, SVGGeneratorContext gc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object clipKey)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hashCodeValue

        int hashCodeValue
        This clip hash code. Based on the serialized path data
    • Constructor Detail

      • ClipKey

        public ClipKey​(java.awt.geom.GeneralPath proxiedPath,
                       SVGGeneratorContext gc)
        Parameters:
        proxiedPath - path used as an index in the Map
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        this object's hashcode
      • equals

        public boolean equals​(java.lang.Object clipKey)
        Overrides:
        equals in class java.lang.Object
        Parameters:
        clipKey - object to compare
        Returns:
        true if equal, false otherwise