Package com.structurizr.view
Class ElementView
java.lang.Object
com.structurizr.view.ElementView
- All Implemented Interfaces:
Comparable<ElementView>
Represents an instance of an Element in a View.
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ElementView elementView) booleangetId()Gets the ID of the Element.intgetX()Gets the horizontal position of the element when rendered.intgetY()Gets the vertical position of the element when rendered.inthashCode()voidsetX(int x) voidsetY(int y) toString()
-
Method Details
-
getElement
-
getId
Gets the ID of the Element.- Returns:
- the ID of the Element, as a String
-
getX
public int getX()Gets the horizontal position of the element 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 element when rendered.- Returns:
- the Y coordinate, as an int
-
setY
public void setY(int y) -
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<ElementView>
-