public abstract class AbstractDisplay<T> extends AbstractRichPlugin implements Display<T>
Display implementations.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isClosed |
| Constructor and Description |
|---|
AbstractDisplay(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
boolean |
canDisplay(Class<?> c)
Tests whether the display is capable of visualizing objects of the given
class.
|
protected void |
checkObject(Object o) |
void |
clear() |
void |
close()
Closes the display and disposes its resources.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
display(Object o)
Displays the given object in this display.
|
T |
get(int index) |
String |
getName()
Gets the name of the object.
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
protected void |
noteStructureChange() |
protected void |
rebuild() |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
void |
setName(String name)
Sets the name of the object.
|
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
String |
toString() |
void |
update()
Updates and redraws the display onscreen.
|
getInfo, getPriority, setInfo, setPrioritycontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanDisplay, isDisplayingequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionprotected void rebuild()
public String toString()
toString in class AbstractRichPluginpublic boolean canDisplay(Class<?> c)
DisplaycanDisplay in interface Display<T>c - The class to check for visualization capabilities.public void display(Object o)
Display
This method is essentially the same as List.add(E) except that it accepts
any Object regardless of type.
public void update()
Displaypublic void close()
Displaypublic String getName()
Namedpublic void setName(String name)
Namedpublic boolean addAll(int index,
Collection<? extends T> c)
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>public boolean add(T o)
public boolean addAll(Collection<? extends T> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <U> U[] toArray(U[] a)
protected void checkObject(Object o)
protected void noteStructureChange()
Copyright © 2015–2022 SciJava. All rights reserved.