com.vividsolutions.jts.geomgraph.index

Class SweepLineEvent

Implemented Interfaces:
Comparable

public class SweepLineEvent
extends java.lang.Object
implements Comparable

Version:
1.6

Field Summary

static int
DELETE
static int
INSERT

Constructor Summary

SweepLineEvent(Object edgeSet, double x, SweepLineEvent insertEvent, Object obj)

Method Summary

int
compareTo(Object o)
ProjectionEvents are ordered first by their x-value, and then by their eventType.
int
getDeleteEventIndex()
SweepLineEvent
getInsertEvent()
Object
getObject()
boolean
isDelete()
boolean
isInsert()
void
setDeleteEventIndex(int deleteEventIndex)

Field Details

DELETE

public static final int DELETE
Field Value:
2

INSERT

public static final int INSERT
Field Value:
1

Constructor Details

SweepLineEvent

public SweepLineEvent(Object edgeSet,
                      double x,
                      SweepLineEvent insertEvent,
                      Object obj)

Method Details

compareTo

public int compareTo(Object o)
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.

getDeleteEventIndex

public int getDeleteEventIndex()

getInsertEvent

public SweepLineEvent getInsertEvent()

getObject

public Object getObject()

isDelete

public boolean isDelete()

isInsert

public boolean isInsert()

setDeleteEventIndex

public void setDeleteEventIndex(int deleteEventIndex)