Class SweepLineEvent

Hierarchy: Object , SweepLineEvent
All Implemented Interfaces: Comparable
public class SweepLineEvent
implements Comparable

Other

  • version: 1.7
public SweepLineEvent(Object label, double x, Object obj)
Creates an INSERT event.
Parameters:
label - label the edge set label for this object
x - x the event location
obj - obj the object being inserted
public SweepLineEvent(double x, SweepLineEvent insertEvent)
Creates a DELETE event.
Parameters:
x - x the event location
insertEvent - insertEvent the corresponding INSERT event
public boolean isInsert()
public boolean isDelete()
public SweepLineEvent getInsertEvent()
public int getDeleteEventIndex()
public void setDeleteEventIndex(int deleteEventIndex)
public Object getObject()
public boolean isSameLabel(SweepLineEvent ev)
public int compareTo(Object o)
Events are ordered first by their x-value, and then by their eventType. Insert events are sorted before Delete events, so that items whose Insert and Delete events occur at the same x-value will be correctly handled.