uk.ac.starlink.treeview
Class SogNdxDisplayer

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

public class SogNdxDisplayer
extends NdxDisplayer

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


Constructor Summary
SogNdxDisplayer()
           
 
Method Summary
 boolean canDisplay(uk.ac.starlink.ndx.Ndx ndx)
          Indicates whether this displayer can be expected to display the given NDX.
static SogNdxDisplayer 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

SogNdxDisplayer

public SogNdxDisplayer()
Method Detail

getInstance

public static SogNdxDisplayer 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.