stsci.factory
Class PlanarImageFactory

java.lang.Object
  |
  +--stsci.factory.Factory
        |
        +--stsci.factory.WebFactory
              |
              +--stsci.factory.PlanarImageFactory
All Implemented Interfaces:
ImageProd, java.rmi.Remote
Direct Known Subclasses:
DSS2factory

public abstract class PlanarImageFactory
extends WebFactory
implements ImageProd

Construct a JAI image from the given page. * @author


Field Summary
protected  double alpha
           
protected  double delta
           
protected  java.lang.String fn
           
protected  java.lang.String format
           
protected  double r
           
 
Fields inherited from class stsci.factory.WebFactory
local
 
Fields inherited from class stsci.factory.Factory
dstream, finished, name, opened
 
Constructor Summary
PlanarImageFactory()
           
 
Method Summary
protected  void getFile()
           
 javax.media.jai.PlanarImage getImage()
           
 ImageInfo getInfo()
           
 void init(java.lang.String url, double a, double d, double r)
          The base url (of the server) plus the parameters need to query the web page are passed in the init method.
 void setFormat(java.lang.String fomrat)
           
protected  void skipToData()
          Skip down the data stream to where the data is.
 
Methods inherited from class stsci.factory.WebFactory
finished, getCmd, getURL, open, openCmd, openURL, setLocal
 
Methods inherited from class stsci.factory.Factory
nextObj, openDisk, setFinished
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

protected java.lang.String format

alpha

protected double alpha

delta

protected double delta

r

protected double r

fn

protected java.lang.String fn
Constructor Detail

PlanarImageFactory

public PlanarImageFactory()
Throws:
-  
Method Detail

init

public void init(java.lang.String url,
                 double a,
                 double d,
                 double r)
The base url (of the server) plus the parameters need to query the web page are passed in the init method. The intention is to have one factory per query (see HTTPwrapper). * @param url
Parameters:
a -  
d -  
r -  
Returns:
void
Throws:
-  

getImage

public javax.media.jai.PlanarImage getImage()
                                     throws java.rmi.RemoteException,
                                            java.lang.Exception
Specified by:
getImage in interface ImageProd
Returns:
PlanarImage
Throws:
RemoteException,Exception -  

setFormat

public void setFormat(java.lang.String fomrat)
Parameters:
fomrat -  
Returns:
void
Throws:
-  

skipToData

protected void skipToData()
Skip down the data stream to where the data is. * @return void
Overrides:
skipToData in class WebFactory
Throws:
-  

getFile

protected void getFile()
                throws java.lang.Exception
Returns:
void
Throws:
java.lang.Exception -  

getInfo

public ImageInfo getInfo()
                  throws java.rmi.RemoteException,
                         java.lang.Exception
Specified by:
getInfo in interface ImageProd
Returns:
ImageInfo
Throws:
RemoteException,Exception -