public abstract class NdxDisplayer extends Object
Modifier | Constructor and Description |
---|---|
protected |
NdxDisplayer(String endpoint,
String displayMethod)
Constructs a new NdxDisplayer, describing the SOAP service
which can be used for RPC.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDisplay(uk.ac.starlink.ndx.Ndx ndx)
Indicates whether this displayer can be expected to display the
given NDX.
|
boolean |
display(uk.ac.starlink.ndx.Ndx ndx,
boolean embedded)
Attempts to display the given NDX.
|
abstract boolean |
localDisplay(uk.ac.starlink.ndx.Ndx ndx,
boolean embedded)
Attempts to display the given NDX using a locally created
object.
|
static void |
main(String[] args)
Attempts to display one or more NDXs using an appropriate viewer.
|
boolean |
soapDisplay(uk.ac.starlink.ndx.Ndx ndx)
Attempts to display the given NDX using remote communication.
|
protected NdxDisplayer(String endpoint, String displayMethod)
The arguments endpoint and displayMethod relate to the SOAP sercice for RPC display. If any are null, it is assumed that no SOAP display service is available, and only local display will be attempted.
endpoint
- the endpoint for the SOAP communication
(must be a valid URL)displayMethod
- the operation name for the display servicepublic abstract boolean localDisplay(uk.ac.starlink.ndx.Ndx ndx, boolean embedded)
ndx
- the NDX to displayembedded
- is the local object to be embeddedpublic boolean canDisplay(uk.ac.starlink.ndx.Ndx ndx)
ndx
- the Ndx to displaydisplay(uk.ac.starlink.ndx.Ndx, boolean)
public boolean display(uk.ac.starlink.ndx.Ndx ndx, boolean embedded)
ndx
- the NDX to displayembedded
- whether a local displayer should not assume it is
the full application instance, or notpublic boolean soapDisplay(uk.ac.starlink.ndx.Ndx ndx)
ndx
- the NDX to displaypublic static void main(String[] args)
args
- an array of NDX namesCopyright © 2002-2021 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.