Class SweepLineEvent
java.lang.Object
org.locationtech.jts.geomgraph.index.SweepLineEvent
- All Implemented Interfaces:
Comparable
- Version:
- 1.7
-
Constructor Summary
ConstructorsConstructorDescriptionSweepLineEvent(double x, SweepLineEvent insertEvent) Creates a DELETE event.SweepLineEvent(Object label, double x, Object obj) Creates an INSERT event. -
Method Summary
Modifier and TypeMethodDescriptionintEvents are ordered first by their x-value, and then by their eventType.intbooleanisDelete()booleanisInsert()booleanvoidsetDeleteEventIndex(int deleteEventIndex)
-
Constructor Details
-
SweepLineEvent
-
SweepLineEvent
Creates a DELETE event.- Parameters:
x- the event locationinsertEvent- the corresponding INSERT event
-
-
Method Details
-
isInsert
public boolean isInsert() -
isDelete
public boolean isDelete() -
getInsertEvent
-
getDeleteEventIndex
public int getDeleteEventIndex() -
setDeleteEventIndex
public void setDeleteEventIndex(int deleteEventIndex) -
getObject
-
isSameLabel
-
compareTo
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.- Specified by:
compareToin interfaceComparable
-