T
- the kind of item whose visibility is changedpublic interface CombinedHandler<T>
Modifier and Type | Method and Description |
---|---|
int |
getZOrder(T item)
Gets the z order of
item . |
boolean |
isVisible(T item)
Tells whether
item is visible or not. |
void |
setVisible(T item,
boolean visible)
Sets the visibility of
item . |
void |
setZOrder(T item,
int order)
Sets the z order of
item , items with lower z order
are painted first. |
void setVisible(T item, boolean visible)
item
.item
- some itemvisible
- its new visibility statejava.lang.IllegalArgumentException
- if item
does not belong
to the component this handler is attached toboolean isVisible(T item)
item
is visible or not.item
- some itemtrue
if visible, false
otherwisejava.lang.IllegalArgumentException
- if item
does not belong
to the component this handler is attached tovoid setZOrder(T item, int order)
item
, items with lower z order
are painted first.item
- some itemorder
- its z orderint getZOrder(T item)
item
.item
- the itemjava.lang.IllegalArgumentException
- if item
does not
belong to the component this handler is attached to