Class Vertex

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

public final class Vertex extends 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
     
    int
    Gets the horizontal position of the vertex when rendered.
    int
    Gets the vertical position of the vertex when rendered.
    int
     
    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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object