public class SelectionLogic<S> extends java.lang.Object implements IScrollable
| Constructor and Description |
|---|
SelectionLogic(SelectionWidget widget,
ISelectableProvider<S> provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw() |
void |
filterEntries(java.lang.String searchText) |
ToolTip |
getToolTip(int mouseX,
int mouseY) |
java.util.Set<forestry.sorting.gui.widgets.SelectionLogic.SelectableWidget> |
getVisible() |
boolean |
isFocused(int mouseX,
int mouseY) |
boolean |
isSame(ISelectableProvider provider) |
void |
onScroll(int value) |
void |
select(int mouseX,
int mouseY) |
public SelectionLogic(SelectionWidget widget, ISelectableProvider<S> provider)
public boolean isSame(ISelectableProvider provider)
public void onScroll(int value)
onScroll in interface IScrollablepublic java.util.Set<forestry.sorting.gui.widgets.SelectionLogic.SelectableWidget> getVisible()
public void filterEntries(java.lang.String searchText)
public boolean isFocused(int mouseX,
int mouseY)
isFocused in interface IScrollablemouseX - the mouse x position relative to the screenmouseY - the mouse y position relative to the screenpublic void draw()
@Nullable public ToolTip getToolTip(int mouseX, int mouseY)
public void select(int mouseX,
int mouseY)