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.
|
boolean |
canDisplay(Object o)
Tests whether the display is capable of visualizing the given object.
|
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 |
isDisplaying(Object o)
Tests whether the display is currently visualizing the given object.
|
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, getContext, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamgetIdentifiercontext, 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 boolean canDisplay(Object o)
DisplaycanDisplay in interface Display<T>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 boolean isDisplaying(Object o)
Display
Note that this method may behave differently than List.contains(java.lang.Object); in
general, any time List.contains(java.lang.Object) returns true, this method will also
return true, but not vice versa. For example, in ImageJ, an
ImageDisplay is a Display<DataView> but calling
isDisplaying on a Dataset (which is not a DataView)
will return true if the ImageDisplay currently contains a
DatasetView that wraps that Dataset.
isDisplaying in interface Display<T>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 © 2009–2016 SciJava. All rights reserved.