Class AnchorKey

java.lang.Object
org.eclipse.gef.fx.anchors.AnchorKey

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

    • AnchorKey

      public AnchorKey(javafx.scene.Node anchored, 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 Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getAnchored

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

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

      public int hashCode()
      Overrides:
      hashCode in class 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(String id)
      Sets the String identifier of this AnchorKey to the given value.
      Parameters:
      id - The new String identifier for this AnchorKey.
    • toString

      public String toString()
      Overrides:
      toString in class Object