Class Vertex

java.lang.Object
com.structurizr.view.Vertex
All Implemented Interfaces:
Comparable<Vertex>

public final class Vertex extends Object implements Comparable<Vertex>
The X, Y coordinate of a bend in a line.
  • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Vertex vertex)
      Specified by:
      compareTo in interface Comparable<Vertex>