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)
ViewLayer
setLayerViewComponent
in interface ViewLayer
c
- The LayerViewComponent that this layer is part of.public java.util.List<javax.swing.JMenuItem> getPopupMenuItems()
ViewLayer
getPopupMenuItems
in interface ViewLayer
public void initialise(Config config)
ViewLayer
initialise
in interface ViewLayer
config
- The system configuration.public void setVisible(boolean b)
ViewLayer
setVisible
in interface ViewLayer
b
- True if this layer should be rendered, false otherwise.public boolean isVisible()
ViewLayer
protected void processView(java.lang.Object... objects)
objects
- The objects to process.protected abstract void viewObject(java.lang.Object o)
o
- The object to process.