Class AnchorKey


  • public class AnchorKey
    extends java.lang.Object
    AnchorKey combines an anchored Node with a String qualifier to identify an anchor target.
    • Constructor Summary

      Constructors 
      Constructor Description
      AnchorKey​(javafx.scene.Node anchored, java.lang.String id)
      Creates a new AnchorKey for the given anchored Node with the given id.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      javafx.scene.Node getAnchored()
      Returns the anchored Node of this AnchorKey.
      java.lang.String getId()
      The String identifier of this AnchorKey.
      int hashCode()  
      protected void setAnchored​(javafx.scene.Node anchored)
      Sets the anchored Node of this AnchorKey to the given value.
      protected void setId​(java.lang.String id)
      Sets the String identifier of this AnchorKey to the given value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AnchorKey

        public AnchorKey​(javafx.scene.Node anchored,
                         java.lang.String id)
        Creates a new AnchorKey for the given anchored Node with the given id.
        Parameters:
        anchored - The anchored Node.
        id - The identifier for this AnchorKey, used to differentiate multiple keys with the same anchored Node.
    • Method Detail

      • equals

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

        public javafx.scene.Node getAnchored()
        Returns the anchored Node of this AnchorKey.
        Returns:
        The anchored Node of this AnchorKey.
      • getId

        public java.lang.String getId()
        The String identifier of this AnchorKey.
        Returns:
        The String identifier of this AnchorKey.
      • hashCode

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

        protected void setAnchored​(javafx.scene.Node anchored)
        Sets the anchored Node of this AnchorKey to the given value.
        Parameters:
        anchored - The new anchored Node for this AnchorKey.
      • setId

        protected void setId​(java.lang.String id)
        Sets the String identifier of this AnchorKey to the given value.
        Parameters:
        id - The new String identifier for this AnchorKey.
      • toString

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