Class InsertPoint

java.lang.Object
  extended by InsertPoint
All Implemented Interfaces:
java.lang.Comparable<InsertPoint>

public class InsertPoint
extends java.lang.Object
implements java.lang.Comparable<InsertPoint>


Constructor Summary
InsertPoint(int x, int y)
           
 
Method Summary
 int compareTo(InsertPoint insertPoint)
           
 boolean equals(InsertPoint tocka)
          Provjerava da li dva objekta predstavljaju istu točku
 int getX()
          Vraća x koordinatu točke
 int getY()
          Vraća y koordinatu točke
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertPoint

public InsertPoint(int x,
                   int y)
Method Detail

getX

public int getX()
Vraća x koordinatu točke

Returns:
x koordinata

getY

public int getY()
Vraća y koordinatu točke

Returns:
y koordinata

equals

public boolean equals(InsertPoint tocka)
Provjerava da li dva objekta predstavljaju istu točku

Parameters:
tocka - objekt s kojim se trenutni objekt provjerava
Returns:
true ako su točke jednake, inače false

toString

public String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(InsertPoint insertPoint)
Specified by:
compareTo in interface java.lang.Comparable<InsertPoint>