|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.display.AbstractDisplay<T>
public abstract class AbstractDisplay<T>
Abstract superclass of Display
implementations.
Field Summary | |
---|---|
protected boolean |
isClosed
|
Constructor Summary | |
---|---|
AbstractDisplay(Class<T> type)
|
Method Summary | ||
---|---|---|
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 display. |
|
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 display. |
|
int |
size()
|
|
List<T> |
subList(int fromIndex,
int toIndex)
|
|
Object[] |
toArray()
|
|
|
toArray(U[] a)
|
|
String |
toString()
|
|
void |
update()
Updates and redraws the display onscreen. |
Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
---|
compareTo, getInfo, getPriority, setInfo, setPriority |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Methods inherited from interface org.scijava.Contextual |
---|
context, getContext, setContext |
Methods inherited from interface org.scijava.Prioritized |
---|
getPriority, setPriority |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.scijava.plugin.HasPluginInfo |
---|
getInfo, setInfo |
Field Detail |
---|
protected boolean isClosed
Constructor Detail |
---|
public AbstractDisplay(Class<T> type)
Method Detail |
---|
protected void rebuild()
public String toString()
toString
in class AbstractRichPlugin
public boolean canDisplay(Class<?> c)
Display
canDisplay
in interface Display<T>
c
- The class to check for visualization capabilities.
public boolean canDisplay(Object o)
Display
canDisplay
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.
display
in interface Display<T>
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()
Display
update
in interface Display<T>
public void close()
Display
close
in interface Display<T>
public String getName()
Display
getName
in interface Display<T>
public void setName(String name)
Display
setName
in interface Display<T>
public void add(int index, T element)
add
in interface List<T>
public boolean addAll(int index, Collection<? extends T> c)
addAll
in interface List<T>
public T get(int index)
get
in interface List<T>
public int indexOf(Object o)
indexOf
in interface List<T>
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 T remove(int index)
remove
in interface List<T>
public T set(int index, T element)
set
in interface List<T>
public List<T> subList(int fromIndex, int toIndex)
subList
in interface List<T>
public boolean add(T o)
add
in interface Collection<T>
add
in interface List<T>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
addAll
in interface List<T>
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
public boolean contains(Object o)
contains
in interface Collection<T>
contains
in interface List<T>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface List<T>
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in interface List<T>
public boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface List<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
removeAll
in interface List<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
retainAll
in interface List<T>
public int size()
size
in interface Collection<T>
size
in interface List<T>
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface List<T>
public <U> U[] toArray(U[] a)
toArray
in interface Collection<T>
toArray
in interface List<T>
protected void checkObject(Object o)
protected void noteStructureChange()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |