Class SweepLineEvent
java.lang.Object
org.locationtech.jts.index.sweepline.SweepLineEvent
- All Implemented Interfaces:
Comparable
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private int
private int
static final int
private SweepLineEvent
(package private) SweepLineInterval
private double
-
Constructor Summary
ConstructorsConstructorDescriptionSweepLineEvent
(double x, SweepLineEvent insertEvent, SweepLineInterval sweepInt) -
Method Summary
Modifier and TypeMethodDescriptionint
ProjectionEvents are ordered first by their x-value, and then by their eventType.int
(package private) SweepLineInterval
boolean
isDelete()
boolean
isInsert()
void
setDeleteEventIndex
(int deleteEventIndex)
-
Field Details
-
INSERT
public static final int INSERT- See Also:
-
DELETE
public static final int DELETE- See Also:
-
xValue
private double xValue -
eventType
private int eventType -
insertEvent
-
deleteEventIndex
private int deleteEventIndex -
sweepInt
SweepLineInterval sweepInt
-
-
Constructor Details
-
SweepLineEvent
-
-
Method Details
-
isInsert
public boolean isInsert() -
isDelete
public boolean isDelete() -
getInsertEvent
-
getDeleteEventIndex
public int getDeleteEventIndex() -
setDeleteEventIndex
public void setDeleteEventIndex(int deleteEventIndex) -
getInterval
SweepLineInterval getInterval() -
compareTo
ProjectionEvents are ordered first by their x-value, and then by their eventType. It is important that 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:
compareTo
in interfaceComparable
-