public class SweepLineEvent extends Object implements Comparable
| Constructor and Description |
|---|
SweepLineEvent(double x,
SweepLineEvent insertEvent)
Creates a DELETE event.
|
SweepLineEvent(Object label,
double x,
Object obj)
Creates an INSERT event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
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 ev) |
void |
setDeleteEventIndex(int deleteEventIndex) |
public SweepLineEvent(double x,
SweepLineEvent insertEvent)
x - the event locationinsertEvent - the corresponding INSERT eventpublic int compareTo(Object o)
compareTo in interface Comparablepublic int getDeleteEventIndex()
public SweepLineEvent getInsertEvent()
public Object getObject()
public boolean isDelete()
public boolean isInsert()
public boolean isSameLabel(SweepLineEvent ev)
public void setDeleteEventIndex(int deleteEventIndex)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.