Class AbstractInterfaceObject

All Implemented Interfaces:
InterfaceObject, NamedObject, TreeObject, CleanableObject
Direct Known Subclasses:
AbstractEnvironmentDataSource, AbstractGraphEdge, AbstractGraphNode, AbstractNetworkComponent, Attribute, AttributeList, Axes3D, Camera3D, Camera3D.CameraLightSource, ClipPlane, ColourMap, DataConnection, DataField, DataQuery, DataSource, DataTable, DataTableSet, Function, Graphic2DGrid, GraphShape, InterfaceAbstractModel, InterfaceNeuroAtlas, InterfacePlotObject, InterfaceProject, InterfaceShape, InterfaceShape.VertexDataSet, InterfaceWorkspace, InterfaceWorkspace.CollectionTreeNode, LayoutDocument, LayoutItem, LinkedDataStream, Map, NameMap, PathDataRenderer, PipelineProcessLibrary, PipelineTask, ProjectDataItem, ProjectDirectory, ProjectInstance, ProjectInstanceGroup, PulseTrainUpdater.CurrentPulse, PulseTrainUpdater.CurrentPulse, SgtAxis, ShapeModel3D, ShapeSelectionSet, SimpleEnvironment, SimpleEnvironmentUpdater, VariableInt, VertexDataColumn, VertexSelection, Video, View3D

public abstract class AbstractInterfaceObject
extends java.lang.Object
implements InterfaceObject
Abstract class which acts as the base class for all "interface" objects; i.e., objects which provide an interface between user and the underlying model. Provides generic implementations for tree nodes and object destruction.
Andrew Reid
  • Field Details

    • isDestroyed

      protected boolean isDestroyed
    • tree_nodes

      protected java.util.ArrayList<InterfaceTreeNode> tree_nodes
  • Constructor Details

    • AbstractInterfaceObject

      public AbstractInterfaceObject()
  • Method Details

    • clean

      public void clean()
      Description copied from interface: CleanableObject
      Instructs this object to search its members for any object which has been destroyed, and release the pointer to it.
      Specified by:
      clean in interface CleanableObject
    • issueTreeNode

      public InterfaceTreeNode issueTreeNode()
      Issues a new tree node and sets it using setTreeNode(mgui.interfaces.trees.InterfaceTreeNode). The tree node is stored in this object, which facilitates their destruction when necessary (e.g., when this object is destroyed). All issued tree nodes can informed of changes to their user object using the method updateTreeNodes().
      Specified by:
      issueTreeNode in interface TreeObject
      a new InterfaceTreeNode
    • setTreeNode

      public void setTreeNode​(InterfaceTreeNode tree_node)
      Description copied from interface: TreeObject
      Sets the children for this node's InterfaceTreeNode.
      Specified by:
      setTreeNode in interface TreeObject
    • getTreeLabel

      public java.lang.String getTreeLabel()
      Description copied from interface: TreeObject
      Returns the label text to appear in a tree node.
      Specified by:
      getTreeLabel in interface TreeObject
    • updateTreeNodes

      public void updateTreeNodes()
    • destroy

      public void destroy()
      Description copied from interface: InterfaceObject
      Destroy this object (prepare it to be removed from memory)
      Specified by:
      destroy in interface InterfaceObject
    • isDestroyed

      public boolean isDestroyed()
      Description copied from interface: InterfaceObject
      Test whether this object has been destroyed
      Specified by:
      isDestroyed in interface InterfaceObject
    • getName

      public java.lang.String getName()
      Description copied from interface: NamedObject
      Gets the name for this object.
      Specified by:
      getName in interface NamedObject
    • setName

      public void setName​(java.lang.String name)
      Description copied from interface: NamedObject
      Sets the name for this object.
      Specified by:
      setName in interface NamedObject