uk.ac.starlink.treeview
Class ApplicationDetailViewer

java.lang.Object
  extended by uk.ac.starlink.treeview.ApplicationDetailViewer
All Implemented Interfaces:
uk.ac.starlink.datanode.nodes.DetailViewer

public class ApplicationDetailViewer
extends Object
implements uk.ac.starlink.datanode.nodes.DetailViewer

Extends DetailViewer to provide extensive information about nodes which supply certain generic data objects. This class contains much of the intelligence about how to display specific information about items in DataNodes found in a tree. In particular it contains rules about applications which can be invoked for data objects available from nodes - if a node can provide a StarTable it can start up TOPCAT for instance. This cannot be done within the DATANODE package itself (though it would be easier to write if it could) since DATANODE is and must be compiled prior to applications like TOPCAT, SPLAT and SoG, since they want to use it.

Since:
27 Jan 2005
Author:
Mark Taylor (Starlink)

Constructor Summary
ApplicationDetailViewer(uk.ac.starlink.datanode.nodes.DataNode node)
          Constructs a DetailViewer which contains basic information (name, node type etc) for a given DataNode.
ApplicationDetailViewer(String overName)
          Constructs a DetailViewer which has an overview panel with a given name.
 
Method Summary
 void addAction(Action act)
          Adds an action which can be invoked from this viewer.
 void addIcon(Icon icon)
           
 void addKeyedItem(String name, boolean value)
           
 void addKeyedItem(String name, double value)
           
 void addKeyedItem(String name, float value)
           
 void addKeyedItem(String name, int value)
           
 void addKeyedItem(String name, long value)
           
 void addKeyedItem(String name, Object value)
           
 void addKeyedItem(String name, String value)
           
 void addNdxViews(uk.ac.starlink.ndx.Ndx ndx)
          Configure this viewer for NDX-specific properties of a node.
 void addPane(String title, Component comp)
           
 void addPane(String title, uk.ac.starlink.datanode.nodes.ComponentMaker maker)
           
 void addScalingPane(String title, uk.ac.starlink.datanode.nodes.ComponentMaker maker)
           
 void addSeparator()
           
 void addSpace()
           
 void addSubHead(String text)
           
 void addText(String text)
           
 void addTitle(String title)
           
 JComponent getComponent()
          Returns the main component in which this viewer represents its data.
 void logError(Throwable th)
           
 void setSelectedIndex(int index)
          Selects the numbered pane for display as if the user had selected the tab; number 0 is the initial overview pane, and the others are in the order they were added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationDetailViewer

public ApplicationDetailViewer(String overName)
Constructs a DetailViewer which has an overview panel with a given name.

Parameters:
overName - overview panel name

ApplicationDetailViewer

public ApplicationDetailViewer(uk.ac.starlink.datanode.nodes.DataNode node)
Constructs a DetailViewer which contains basic information (name, node type etc) for a given DataNode.

Parameters:
node - the DataNode to which this viewer relates
Method Detail

getComponent

public JComponent getComponent()
Returns the main component in which this viewer represents its data.

Returns:
tabbed pane

setSelectedIndex

public void setSelectedIndex(int index)
Selects the numbered pane for display as if the user had selected the tab; number 0 is the initial overview pane, and the others are in the order they were added.

Parameters:
index - the index of the pane to select

addTitle

public void addTitle(String title)
Specified by:
addTitle in interface uk.ac.starlink.datanode.nodes.DetailViewer

addSubHead

public void addSubHead(String text)
Specified by:
addSubHead in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         String value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         Object value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         double value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         float value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         long value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         int value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

addKeyedItem

public void addKeyedItem(String name,
                         boolean value)
Specified by:
addKeyedItem in interface uk.ac.starlink.datanode.nodes.DetailViewer

logError

public void logError(Throwable th)
Specified by:
logError in interface uk.ac.starlink.datanode.nodes.DetailViewer

addSeparator

public void addSeparator()
Specified by:
addSeparator in interface uk.ac.starlink.datanode.nodes.DetailViewer

addText

public void addText(String text)
Specified by:
addText in interface uk.ac.starlink.datanode.nodes.DetailViewer

addSpace

public void addSpace()
Specified by:
addSpace in interface uk.ac.starlink.datanode.nodes.DetailViewer

addIcon

public void addIcon(Icon icon)

addPane

public void addPane(String title,
                    Component comp)
Specified by:
addPane in interface uk.ac.starlink.datanode.nodes.DetailViewer

addPane

public void addPane(String title,
                    uk.ac.starlink.datanode.nodes.ComponentMaker maker)
Specified by:
addPane in interface uk.ac.starlink.datanode.nodes.DetailViewer

addScalingPane

public void addScalingPane(String title,
                           uk.ac.starlink.datanode.nodes.ComponentMaker maker)
Specified by:
addScalingPane in interface uk.ac.starlink.datanode.nodes.DetailViewer

addAction

public void addAction(Action act)
Adds an action which can be invoked from this viewer.

Parameters:
act - action

addNdxViews

public void addNdxViews(uk.ac.starlink.ndx.Ndx ndx)
Configure this viewer for NDX-specific properties of a node.

Parameters:
ndx - NDX


Copyright © 2002-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.