Package com.macrofocus.order
Class DefaultVisibleOrder<E>
- java.lang.Object
-
- com.macrofocus.order.AbstractOrder<E>
-
- com.macrofocus.order.DefaultVisibleOrder<E>
-
- All Implemented Interfaces:
MutableOrder<E>
,MutableVisibleOrder<E>
,Order<E>
,VisibleOrder<E>
,java.lang.Iterable<E>
public class DefaultVisibleOrder<E> extends AbstractOrder<E> implements MutableVisibleOrder<E>
-
-
Constructor Summary
Constructors Constructor Description DefaultVisibleOrder(E... elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E axisModel)
E
get(int index)
E
getAll(int index)
void
hide(E... elements)
void
hide(java.lang.Iterable<E> elements)
int
indexOf(E element)
boolean
isVisible(E element)
java.lang.Iterable<E>
iterableAll()
java.util.Iterator<E>
iterator()
void
moveToFirst(E element)
void
moveToNext(E element, boolean skipHidden)
void
moveToPrevious(E element, boolean skipHidden)
E
next(E element)
E
previous(E element)
void
remove(E axisModel)
void
set(java.lang.Iterable<E> all, java.lang.Iterable<E> visible)
void
setOrder(java.util.List<E> elements)
void
setVisible(E element, boolean visible)
void
show(E... elements)
void
show(java.lang.Iterable<E> elements)
int
size()
int
sizeAll()
void
sort(java.util.Comparator<E> comparator)
java.lang.String
toString()
-
Methods inherited from class com.macrofocus.order.AbstractOrder
addOrderListener, addWeakOrderListener, notifyOrderAdded, notifyOrderChanged, notifyOrderRemoved, notifyOrderVisibility, removeFilterListeners, removeOrderListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.macrofocus.order.Order
addOrderListener, addWeakOrderListener, removeOrderListener
-
-
-
-
Constructor Detail
-
DefaultVisibleOrder
public DefaultVisibleOrder(E... elements)
-
-
Method Detail
-
iterator
public java.util.Iterator<E> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<E>
-
sizeAll
public int sizeAll()
- Specified by:
sizeAll
in interfaceVisibleOrder<E>
-
getAll
public E getAll(int index)
- Specified by:
getAll
in interfaceVisibleOrder<E>
-
iterableAll
public java.lang.Iterable<E> iterableAll()
- Specified by:
iterableAll
in interfaceVisibleOrder<E>
-
moveToFirst
public void moveToFirst(E element)
- Specified by:
moveToFirst
in interfaceMutableOrder<E>
-
moveToPrevious
public void moveToPrevious(E element, boolean skipHidden)
- Specified by:
moveToPrevious
in interfaceMutableOrder<E>
-
moveToNext
public void moveToNext(E element, boolean skipHidden)
- Specified by:
moveToNext
in interfaceMutableOrder<E>
-
setOrder
public void setOrder(java.util.List<E> elements)
- Specified by:
setOrder
in interfaceMutableOrder<E>
-
sort
public void sort(java.util.Comparator<E> comparator)
- Specified by:
sort
in interfaceMutableOrder<E>
-
add
public void add(E axisModel)
- Specified by:
add
in interfaceMutableOrder<E>
-
remove
public void remove(E axisModel)
- Specified by:
remove
in interfaceMutableOrder<E>
-
setVisible
public void setVisible(E element, boolean visible)
- Specified by:
setVisible
in interfaceMutableVisibleOrder<E>
-
show
public void show(java.lang.Iterable<E> elements)
- Specified by:
show
in interfaceMutableVisibleOrder<E>
-
hide
public void hide(java.lang.Iterable<E> elements)
- Specified by:
hide
in interfaceMutableVisibleOrder<E>
-
show
public void show(E... elements)
- Specified by:
show
in interfaceMutableVisibleOrder<E>
-
hide
public void hide(E... elements)
- Specified by:
hide
in interfaceMutableVisibleOrder<E>
-
isVisible
public boolean isVisible(E element)
- Specified by:
isVisible
in interfaceVisibleOrder<E>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-