Package com.structurizr.view
Class ElementView
java.lang.Object
com.structurizr.view.ElementView
public final class ElementView
extends java.lang.Object
Represents an instance of an Element in a View.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
Element
getElement()
java.lang.String
getId()
Gets the ID of the Element.int
getX()
Gets the horizontal position of the element when rendered.int
getY()
Gets the vertical position of the element when rendered.int
hashCode()
void
setX(int x)
void
setY(int y)
java.lang.String
toString()
-
Method Details
-
getElement
-
getId
public java.lang.String 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
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-