public class Row extends Object implements Serializable
| Constructor and Description |
|---|
Row()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEvent(GridEvent e)
Adds an event to this row
|
boolean |
addEvent(ListIterator<GridEvent> iterator,
GridEvent e)
Adds an event to this row using
ListIterator.add(java.lang.Object) |
boolean |
canMerge(Row other)
Returns true if merge is possible.
|
ArrayList<GridEvent> |
getEvents() |
BitSet |
getOccupancyGridCopy()
Returns a copy of the internal occupancy grid.
|
String |
getStyle() |
Set<String> |
getTextIDs()
Get Salt IDs of all texts used by events of this row.
|
boolean |
merge(Row other)
Merges the other row into this row.
|
boolean |
removeEvent(GridEvent event) |
void |
removeEvent(ListIterator<GridEvent> iterator)
Call
ListIterator.remove() and update internal occupancy grid. |
void |
setStyle(String style) |
public boolean addEvent(GridEvent e)
e - public boolean addEvent(ListIterator<GridEvent> iterator, GridEvent e)
ListIterator.add(java.lang.Object)e - public boolean canMerge(Row other)
other - #merge(org.corpus_tools.annis.gui.visualizers.component.grid.Row)public BitSet getOccupancyGridCopy()
public String getStyle()
public Set<String> getTextIDs()
public boolean merge(Row other) throws IllegalArgumentException
Row are added
to this row. The other Row will not be changed. Only rows which have no overlapping
events can be merged.other - The other Row which will be merged into this one.IllegalArgumentException#canMerge(org.corpus_tools.annis.gui.visualizers.component.grid.Row)public boolean removeEvent(GridEvent event)
public void removeEvent(ListIterator<GridEvent> iterator)
ListIterator.remove() and update internal occupancy grid.iterator - public void setStyle(String style)
Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.