public abstract class AbstractViewLayer extends java.lang.Object implements ViewLayer
| Modifier and Type | Field and Description |
|---|---|
protected LayerViewComponent |
component
The LayerViewComponent this layer is part of.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractViewLayer()
Construct a new, visible AbstractViewLayer.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<javax.swing.JMenuItem> |
getPopupMenuItems()
Get the menu items this layer wants added to the LayerViewComponent popup menu.
|
void |
initialise(Config config)
Initialise this view layer.
|
boolean |
isVisible()
Find out if this layer should be rendered or not.
|
protected void |
processView(java.lang.Object... objects)
Process a set of objects and recursively inspect collections and arrays.
|
void |
setLayerViewComponent(LayerViewComponent c)
Set the LayerViewComponent for this layer.
|
void |
setVisible(boolean b)
Set whether this layer should be rendered or not.
|
protected abstract void |
viewObject(java.lang.Object o)
Callback function for processing a concrete viewable object.
|
protected LayerViewComponent component
protected AbstractViewLayer()
public void setLayerViewComponent(LayerViewComponent c)
ViewLayersetLayerViewComponent in interface ViewLayerc - The LayerViewComponent that this layer is part of.public java.util.List<javax.swing.JMenuItem> getPopupMenuItems()
ViewLayergetPopupMenuItems in interface ViewLayerpublic void initialise(Config config)
ViewLayerinitialise in interface ViewLayerconfig - The system configuration.public void setVisible(boolean b)
ViewLayersetVisible in interface ViewLayerb - True if this layer should be rendered, false otherwise.public boolean isVisible()
ViewLayerprotected void processView(java.lang.Object... objects)
objects - The objects to process.protected abstract void viewObject(java.lang.Object o)
o - The object to process.