Package org.graffiti.graphics
Class Port
java.lang.Object
org.graffiti.graphics.Port
public class Port extends Object
A port comprises a name and a coordinate.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
String
getName()
Returns the name.double
getX()
Returns the x ccordinate of this port.double
getY()
Returns the y ccordinate of this port.void
setName(String name)
Sets the name.void
setX(double x)
Sets the x coordinate of this port.void
setY(double y)
Sets the y ccordinate of this port.
-
Constructor Details
-
Port
Constructor for Port.- Parameters:
name
- DOCUMENT ME!x
- DOCUMENT ME!y
- DOCUMENT ME!
-
-
Method Details
-
setName
Sets the name.- Parameters:
name
- The name to set
-
getName
Returns the name.- Returns:
- String
-
setX
public void setX(double x)Sets the x coordinate of this port.- Parameters:
x
-
-
getX
public double getX()Returns the x ccordinate of this port.- Returns:
- double
-
setY
public void setY(double y)Sets the y ccordinate of this port.- Parameters:
y
-
-
getY
public double getY()Returns the y ccordinate of this port.- Returns:
- double
-
equals
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-