uk.ac.starlink.treeview
Class SplatNdxDisplayer

java.lang.Object
  extended by uk.ac.starlink.treeview.NdxDisplayer
      extended by uk.ac.starlink.treeview.SplatNdxDisplayer

public class SplatNdxDisplayer
extends NdxDisplayer

NDX displayer which will display using SPLAT classes. Although a public constructor is available, the getInstance() method is also provided for singleton-liek use of the class.


Constructor Summary
SplatNdxDisplayer()
           
 
Method Summary
 boolean canDisplay(uk.ac.starlink.ndx.Ndx ndx)
          Indicates whether this displayer can be expected to display the given NDX.
static SplatNdxDisplayer getInstance()
           
 boolean localDisplay(uk.ac.starlink.ndx.Ndx ndx, boolean embedded)
          Attempts to display the given NDX using a locally created object.
 
Methods inherited from class uk.ac.starlink.treeview.NdxDisplayer
display, main, soapDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplatNdxDisplayer

public SplatNdxDisplayer()
Method Detail

getInstance

public static SplatNdxDisplayer getInstance()

canDisplay

public boolean canDisplay(uk.ac.starlink.ndx.Ndx ndx)
Description copied from class: NdxDisplayer
Indicates whether this displayer can be expected to display the given NDX. The NdxDisplayer implementation returns true.

Overrides:
canDisplay in class NdxDisplayer
Parameters:
ndx - the Ndx to display
Returns:
whether it's worth trying to call NdxDisplayer.display(uk.ac.starlink.ndx.Ndx, boolean)

localDisplay

public boolean localDisplay(uk.ac.starlink.ndx.Ndx ndx,
                            boolean embedded)
Description copied from class: NdxDisplayer
Attempts to display the given NDX using a locally created object. If this is for use in an embedded sense then embedded should be true (in this case local created objects should expect to be not remotely controlled and not take charge of application exit).

Specified by:
localDisplay in class NdxDisplayer
Parameters:
ndx - the NDX to display
embedded - is the local object to be embedded
Returns:
true if the display was successful


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