Class ncsa.horizon.viewable.ComputerGraphicsViewable
All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.horizon.viewable.ComputerGraphicsViewable
java.lang.Object
|
+----ncsa.horizon.viewable.ComputerGraphicsViewable
- public class ComputerGraphicsViewable
- extends Object
- implements Viewable, ImageObserver
-
coord
-
-
defaultview
-
-
dimension
-
-
image
-
-
source
-
-
ComputerGraphicsViewable(Image)
- Constructs a new instance of a ComputerGraphicsViewable that wraps
around an already constructed java Image object;
-
ComputerGraphicsViewable(String)
- Constructs a new instance of a ComputerGraphicsViewable given a
filename string.
-
ComputerGraphicsViewable(URL)
- Constructs a new instance of a ComputerGraphicsViewable given a URL.
-
getCoordSys()
- Implementation of a Viewable interface method.
-
getData()
- Implementation of a Viewable interface method.
-
getData(Volume)
- Implementation of a ncsa.horizon.viewable.Viewable interface method.
-
getMetadata()
- Return the metadata associated with this viewable.
-
getNaxes()
- Returns the dimension of the data, i.e.
-
getSize()
- return the size of the dataset.
-
getView()
- Implementation of a Viewable interface method.
-
getView(Slice)
- This specific getView() returns a subregion and/or resampled version
of the image, and optionally makes this new image the default view.
-
getView(Slice, ColorModel, boolean)
- Implementation of a Viewable interface method.
-
imageUpdate(Image, int, int, int, int, int)
-
coord
protected CoordinateSystem coord
dimension
protected Dimension dimension
source
protected Object source
image
protected Image image
defaultview
protected Image defaultview
ComputerGraphicsViewable
public ComputerGraphicsViewable(URL url)
- Constructs a new instance of a ComputerGraphicsViewable given a URL.
- Parameters:
- _url - The URL of an image from which to create the Viewable.
ComputerGraphicsViewable
public ComputerGraphicsViewable(String filename)
- Constructs a new instance of a ComputerGraphicsViewable given a
filename string.
- Parameters:
- filename - The complete filename of an image from which to
create the Viewable.
ComputerGraphicsViewable
public ComputerGraphicsViewable(Image image) throws NullPointerException
- Constructs a new instance of a ComputerGraphicsViewable that wraps
around an already constructed java Image object;
- Parameters:
- image - the input Image object to wrap around; should not be
null
- Throws: s
- NullPointerException if image is null
getData
public Object getData()
- Implementation of a Viewable interface method.
This generic getData() returns all the data in the image. It
currently returns null.
- Returns:
- s java.awt.Object which is a multidimensional array
getData
public Object getData(Volume volume)
- Implementation of a ncsa.horizon.viewable.Viewable interface method.
This specific getData() returns a subregion of the data that makes up
the image. This implementation always returns null.
- Parameters:
- volume - Specifies the subset of data to return.
- Returns:
- s java.awt.Object which is a multidimensional array
getNaxes
public int getNaxes()
- Returns the dimension of the data, i.e. the number of axes in the
dataset. This currently always returns the value 2.
- Returns:
- The dimensionality of the data.
getView
public Image getView(Slice slice)
- This specific getView() returns a subregion and/or resampled version
of the image, and optionally makes this new image the default view.
- Parameters:
- slice - The 2-dimensional area of the image to return.
- colorModel - The cooro model to use for the image.
- makeDefault - True to make this slice the default view.
- Returns:
- s java.awt.Image
getView
public Image getView()
- Implementation of a Viewable interface method.
This generic getView() returns either a previously defined default
view, or the whole image at nominal resolution if no default has
been defined.
- Returns:
- s java.awt.Image
getView
public Image getView(Slice slice,
ColorModel colorModel,
boolean makeDefault)
- Implementation of a Viewable interface method.
This specific getView() returns a subregion and/or resampled version
of the URL image, and optionally makes this new image the default view.
This implementation ignores the color model parameter.
- Parameters:
- slice - The 2-dimensional area of the image to return.
- colorModel - The cooro model to use for the image.
- makeDefault - True to make this slice the default view.
- Returns:
- s java.awt.Image
getCoordSys
public CoordinateSystem getCoordSys()
- Implementation of a Viewable interface method.
This returns null.
- Returns:
- null
getMetadata
public Metadata getMetadata()
- Return the metadata associated with this viewable.
getSize
public int[] getSize()
- return the size of the dataset. If the data is not loaded yet,
this method will wait until it is (this will is not always good,
so this will get changed in the future).
imageUpdate
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
All Packages Class Hierarchy This Package Previous Next Index