Package cruise.umple.compiler
Class Coordinate
java.lang.Object
cruise.umple.compiler.Coordinate
public class Coordinate
extends java.lang.Object
A Coordinate is used in the layout of classes
It represents the shape of a class box in a diagram
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Coordinate.Status
-
Constructor Summary
Constructors Constructor Description Coordinate(int aX, int aY, int aWidth, int aHeight)
-
Method Summary
Modifier and Type Method Description void
delete()
int
distanceTo(Coordinate other)
boolean
equals(java.lang.Object obj)
Point
getBottomLeft()
Point
getBottomMiddle()
Point
getBottomRight()
int
getHeight()
Point
getLeftMiddle()
Point
getRightMiddle()
Coordinate.Status
getStatus()
java.lang.String
getStatusFullName()
Point
getTopLeft()
Point
getTopMiddle()
Point
getTopRight()
int
getWidth()
int
getX()
int
getY()
int
hashCode()
boolean
setHeight(int aHeight)
boolean
setStatus(Coordinate.Status aStatus)
boolean
setWidth(int aWidth)
boolean
setX(int aX)
boolean
setY(int aY)
java.lang.String
toString()
java.lang.String
whereIs(Coordinate neighbour)
-
Constructor Details
-
Coordinate
public Coordinate(int aX, int aY, int aWidth, int aHeight)
-
-
Method Details
-
setX
public boolean setX(int aX) -
setY
public boolean setY(int aY) -
setWidth
public boolean setWidth(int aWidth) -
setHeight
public boolean setHeight(int aHeight) -
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getStatusFullName
public java.lang.String getStatusFullName() -
getStatus
-
setStatus
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete() -
getTopLeft
-
getTopRight
-
getBottomLeft
-
getBottomRight
-
getTopMiddle
-
getBottomMiddle
-
getRightMiddle
-
getLeftMiddle
-
whereIs
-
distanceTo
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-