public class SweepLineEvent extends Objectimplements Comparable
| Constructor and Description |
|---|
SweepLineEvent(double x, SweepLineEvent
Creates a DELETE event.
|
SweepLineEvent(Object
Creates an INSERT event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object
Events are ordered first by their x-value, and then by their eventType.
|
int |
getDeleteEventIndex()
|
SweepLineEvent |
getInsertEvent()
|
Object |
getObject()
|
boolean |
isDelete()
|
boolean |
isInsert()
|
boolean |
isSameLabel(SweepLineEvent
|
void |
setDeleteEventIndex(int deleteEventIndex)
|
public SweepLineEvent(Objectlabel, double x, Object obj)
label - the edge set label for this object
x - the event location
obj - the object being inserted
public SweepLineEvent(double x,
SweepLineEvent insertEvent)
x - the event location
insertEvent - the corresponding INSERT event
public boolean isInsert()
public boolean isDelete()
public SweepLineEventgetInsertEvent()
public int getDeleteEventIndex()
public void setDeleteEventIndex(int deleteEventIndex)
public ObjectgetObject()
public boolean isSameLabel(SweepLineEventev)
public int compareTo(Objecto)