Class Vertex

java.lang.Object
com.structurizr.view.Vertex

public final class Vertex
extends java.lang.Object
The X, Y coordinate of a bend in a line.
  • Constructor Summary

    Constructors 
    Constructor Description
    Vertex​(int x, int y)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    int getX()
    Gets the horizontal position of the vertex when rendered.
    int getY()
    Gets the vertical position of the vertex when rendered.
    int hashCode()  
    void setX​(int x)  
    void setY​(int y)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Vertex

      public Vertex​(int x, int y)
  • Method Details

    • getX

      public int getX()
      Gets the horizontal position of the vertex when rendered.
      Returns:
      the X coordinate, as an int
    • setX

      public void setX​(int x)
    • getY

      public int getY()
      Gets the vertical position of the vertex when rendered.
      Returns:
      the Y coordinate, as an int
    • setY

      public void setY​(int y)
    • equals

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

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