home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-07-02 | 136.2 KB | 5,730 lines |
- DEF_COMPONENTNAME
- MemoryImageSource
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- image
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- ImageProducer
- DEF_ENDLIST
- DEF_DECLARATION
- // This class is an implementation of the ImageProducer interface which
- // uses an array to produce pixel values for an Image. Here is an example
- // which calculates a 100x100 image representing a fade from black to blue
- // along the X axis and a fade from black to red along the Y axis:
- //
- // int w = 100;
- // int h = 100;
- // int pix[] = new int[w * h];
- // int index = 0;
- // for (int y = 0; y < h; y++) {
- // int red = (y * 255) / (h - 1);
- // for (int x = 0; x < w; x++) {
- // int blue = (x * 255) / (w - 1);
- // pix[index++] = (255 << 24) | (red << 16) | blue;
- // }
- // }
- // Image img = createImage(new MemoryImageSource(w, h, pix, 0, w));
- //
- //
- // See Also:
- // ImageProducer
- //
- DEF_ENDLIST
- DEF_METHOD
- public MemoryImageSource(int w,
- int h,
- ColorModel cm,
- byte pix[],
- int off,
- int scan)
- // Constructs an ImageProducer object which uses an array of bytes
- // to produce data for an Image object.
- //
- // See Also:
- // createImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public MemoryImageSource(int w,
- int h,
- ColorModel cm,
- byte pix[],
- int off,
- int scan,
- Hashtable props)
- // Constructs an ImageProducer object which uses an array of bytes
- // to produce data for an Image object.
- //
- // See Also:
- // createImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public MemoryImageSource(int w,
- int h,
- ColorModel cm,
- int pix[],
- int off,
- int scan)
- // Constructs an ImageProducer object which uses an array of integers
- // to produce data for an Image object.
- //
- // See Also:
- // createImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public MemoryImageSource(int w,
- int h,
- ColorModel cm,
- int pix[],
- int off,
- int scan,
- Hashtable props)
- // Constructs an ImageProducer object which uses an array of integers
- // to produce data for an Image object.
- //
- // See Also:
- // createImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public MemoryImageSource(int w,
- int h,
- int pix[],
- int off,
- int scan)
- // Constructs an ImageProducer object which uses an array of integers
- // in the default RGB ColorModel to produce data for an Image object.
- //
- // See Also:
- // createImage, getRGBdefault
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public MemoryImageSource(int w,
- int h,
- int pix[],
- int off,
- int scan,
- Hashtable props)
- // Constructs an ImageProducer object which uses an array of integers
- // in the default RGB ColorModel to produce data for an Image object.
- //
- // See Also:
- // createImage, getRGBdefault
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addConsumer(ImageConsumer ic)
- // Adds an ImageConsumer to the list of consumers interested in
- // data for this image.
- //
- // See Also:
- // ImageConsumer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean isConsumer(ImageConsumer ic)
- // Determine if an ImageConsumer is on the list of consumers currently
- // interested in data for this image.
- //
- // Returns:
- // true if the ImageConsumer is on the list; false otherwise
- // See Also:
- // ImageConsumer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void removeConsumer(ImageConsumer ic)
- // Remove an ImageConsumer from the list of consumers interested in
- // data for this image.
- //
- // See Also:
- // ImageConsumer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void startProduction(ImageConsumer ic)
- // Adds an ImageConsumer to the list of consumers interested in
- // data for this image, and immediately start delivery of the
- // image data through the ImageConsumer interface.
- //
- // See Also:
- // ImageConsumer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void requestTopDownLeftRightResend(ImageConsumer ic)
- // Requests that a given ImageConsumer have the image data delivered
- // one more time in top-down, left-right order.
- //
- // See Also:
- // ImageConsumer
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- PixelGrabber
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- image
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- ImageConsumer
- DEF_ENDLIST
- DEF_DECLARATION
- // The PixelGrabber class implements an ImageConsumer which can be attached
- // to an Image or ImageProducer object to retrieve a subset of the pixels
- // in that image. Here is an example:
- //
- // public abstract void handlesinglepixel(int x, int y, int pixel);
- // public void handlepixels(Image img, int x, int y, int w, int h) {
- // int[] pixels = new int[w * h];
- // PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
- // try {
- // pg.grabPixels();
- // } catch (InterruptedException e) {
- // System.err.println("interrupted waiting for pixels!");
- // return;
- // }
- // if ((pg.status() & ImageObserver.ABORT) != 0) {
- // System.err.println("image fetch aborted or errored");
- // return;
- // }
- // for (int j = 0; j < h; j++) {
- // for (int i = 0; i < w; i++) {
- // handlesinglepixel(x+i, y+j, pixels[j * w + i]);
- // }
- // }
- // }
- //
- DEF_ENDLIST
- DEF_METHOD
- public PixelGrabber(Image img,
- int x,
- int y,
- int w,
- int h,
- int pix[],
- int off,
- int scansize)
- // Create a PixelGrabber object to grab the (x, y, w, h) rectangular
- // section of pixels from the specified image into the given array.
- // The pixels are stored into the array in the default RGB ColorModel.
- // The RGB data for pixel (i, j) where (i, j) is inside the rectangle
- // (x, y, w, h) is stored in the array at
- // pix[(j - y) * scansize + (i - x) + off].
- //
- // Parameters:
- // img - the image to retrieve pixels from
- // x - the x coordinate of the upper left corner of the rectangle
- // of pixels to retrieve from the image, relative to the default
- // (unscaled) size of the image
- // y - the y coordinate of the upper left corner of the rectangle
- // of pixels to retrieve from the image
- // w - the width of the rectangle of pixels to retrieve
- // h - the height of the rectangle of pixels to retrieve
- // pix - the array of integers which are to be used to hold the
- // RGB pixels retrieved from the image
- // off - the offset into the array of where to store the first pixel
- // scansize - the distance from one row of pixels to the next in
- // the array
- // See Also:
- // getRGBdefault
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public PixelGrabber(ImageProducer ip,
- int x,
- int y,
- int w,
- int h,
- int pix[],
- int off,
- int scansize)
- // Create a PixelGrabber object to grab the (x, y, w, h) rectangular
- // section of pixels from the image produced by the specified
- // ImageProducer into the given array.
- // The pixels are stored into the array in the default RGB ColorModel.
- // The RGB data for pixel (i, j) where (i, j) is inside the rectangle
- // (x, y, w, h) is stored in the array at
- // pix[(j - y) * scansize + (i - x) + off].
- //
- // Parameters:
- // img - the image to retrieve pixels from
- // x - the x coordinate of the upper left corner of the rectangle
- // of pixels to retrieve from the image, relative to the default
- // (unscaled) size of the image
- // y - the y coordinate of the upper left corner of the rectangle
- // of pixels to retrieve from the image
- // w - the width of the rectangle of pixels to retrieve
- // h - the height of the rectangle of pixels to retrieve
- // pix - the array of integers which are to be used to hold the
- // RGB pixels retrieved from the image
- // off - the offset into the array of where to store the first pixel
- // scansize - the distance from one row of pixels to the next in
- // the array
- // See Also:
- // getRGBdefault
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean grabPixels() throws InterruptedException
- // Request the Image or ImageProducer to start delivering pixels and
- // wait for all of the pixels in the rectangle of interest to be
- // delivered.
- //
- // Returns:
- // true if the pixels were successfully grabbed, false on
- // abort, error or timeout
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean grabPixels(long ms) throws InterruptedException
- // Request the Image or ImageProducer to start delivering pixels and
- // wait for all of the pixels in the rectangle of interest to be
- // delivered or until the specified timeout has elapsed.
- //
- // Parameters:
- // ms - the number of milliseconds to wait for the image pixels
- // to arrive before timing out
- // Returns:
- // true if the pixels were successfully grabbed, false on
- // abort, error or timeout
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int status()
- // Return the status of the pixels. The ImageObserver flags
- // representing the available pixel information are returned.
- //
- // Returns:
- // the bitwise OR of all relevant ImageObserver flags
- // See Also:
- // ImageObserver
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setDimensions(int width,
- int height)
- // The setDimensions method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setHints(int hints)
- // The setHints method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setProperties(Hashtable props)
- // The setProperties method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setColorModel(ColorModel model)
- // The setColorModel method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setPixels(int srcX,
- int srcY,
- int srcW,
- int srcH,
- ColorModel model,
- byte pixels[],
- int srcOff,
- int srcScan)
- // The setPixels method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setPixels(int srcX,
- int srcY,
- int srcW,
- int srcH,
- ColorModel model,
- int pixels[],
- int srcOff,
- int srcScan)
- // The setPixels method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void imageComplete(int status)
- // The imageComplete method is part of the ImageConsumer API which
- // this class must implement to retrieve the pixels.
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- RGBImageFilter
- DEF_SUPERCLASS
- ImageFilter
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- image
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class provides an easy way to create an ImageFilter which modifies
- // the pixels of an image in the default RGB ColorModel. It is meant to
- // be used in conjunction with a FilteredImageSource object to produce
- // filtered versions of existing images. It is an abstract class that
- // provides the calls needed to channel all of the pixel data through a
- // single method which converts pixels one at a time in the default RGB
- // ColorModel regardless of the ColorModel being used by the ImageProducer.
- // The only method which needs to be defined to create a useable image
- // filter is the filterRGB method. Here is an example of a definition
- // of a filter which swaps the red and blue components of an image:
- //
- // class RedBlueSwapFilter extends RGBImageFilter {
- // public RedBlueSwapFilter() {
- // // The filter's operation does not depend on the
- // // pixel's location, so IndexColorModels can be
- // // filtered directly.
- // canFilterIndexColorModel = true;
- // }
- // public int filterRGB(int x, int y, int rgb) {
- // return ((rgb & 0xff00ff00)
- // | ((rgb & 0xff0000) >> 16)
- // | ((rgb & 0xff) << 16));
- // }
- // }
- //
- //
- // See Also:
- // FilteredImageSource, ImageFilter, getRGBdefault
- //
- DEF_ENDLIST
- DEF_METHOD
- public RGBImageFilter()
- // If the ColorModel is an IndexColorModel, and the subclass has
- // set the canFilterIndexColorModel flag to true, we substitute
- // a filtered version of the color model here and wherever
- // that original ColorModel object appears in the setPixels methods. Otherwise
- // overrides the default ColorModel used by the ImageProducer and
- // specifies the default RGB ColorModel instead.
- //
- // Overrides:
- // setColorModel in class ImageFilter
- // See Also:
- // ImageConsumer, getRGBdefault
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void substituteColorModel(ColorModel oldcm,
- ColorModel newcm)
- // Registers two ColorModel objects for substitution. If the oldcm
- // is encountered during any of the setPixels methods, the newcm
- // is substituted and the pixels passed through
- // untouched (but with the new ColorModel object).
- //
- // Parameters:
- // oldcm - the ColorModel object to be replaced on the fly
- // newcm - the ColorModel object to replace oldcm on the fly
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public IndexColorModel filterIndexColorModel(IndexColorModel icm)
- // Filters an IndexColorModel object by running each entry in its
- // color tables through the filterRGB function that RGBImageFilter
- // subclasses must provide. Uses coordinates of -1 to indicate that
- // a color table entry is being filtered rather than an actual
- // pixel value.
- //
- // Parameters:
- // icm - the IndexColorModel object to be filtered
- // Returns:
- // a new IndexColorModel representing the filtered colors
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void filterRGBPixels(int x,
- int y,
- int w,
- int h,
- int pixels[],
- int off,
- int scansize)
- // Filters a buffer of pixels in the default RGB ColorModel by passing
- // them one by one through the filterRGB method.
- //
- // See Also:
- // getRGBdefault, filterRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setPixels(int x,
- int y,
- int w,
- int h,
- ColorModel model,
- byte pixels[],
- int off,
- int scansize)
- // If the ColorModel object is the same one that has already
- // been converted, then simply passes the pixels through with the
- // converted ColorModel. Otherwise converts the buffer of byte
- // pixels to the default RGB ColorModel and passes the converted
- // buffer to the filterRGBPixels method to be converted one by one.
- //
- // Overrides:
- // setPixels in class ImageFilter
- // See Also:
- // getRGBdefault, filterRGBPixels
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setPixels(int x,
- int y,
- int w,
- int h,
- ColorModel model,
- int pixels[],
- int off,
- int scansize)
- // If the ColorModel object is the same one that has already
- // been converted, then simply passes the pixels through with the
- // converted ColorModel, otherwise converts the buffer of integer
- // pixels to the default RGB ColorModel and passes the converted
- // buffer to the filterRGBPixels method to be converted one by one.
- // Converts a buffer of integer pixels to the default RGB ColorModel
- // and passes the converted buffer to the filterRGBPixels method.
- //
- // Overrides:
- // setPixels in class ImageFilter
- // See Also:
- // getRGBdefault, filterRGBPixels
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int filterRGB(int x,
- int y,
- int rgb)
- // Subclasses must specify a method to convert a single input pixel
- // in the default RGB ColorModel to a single output pixel.
- //
- // See Also:
- // getRGBdefault, filterRGBPixels
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- List
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_CATEGORY
- Standard
- DEF_THUMBNAIL_UP
- list.bmp
- DEF_THUMBNAIL_DOWN
- 2-list.bmp
- DEF_BASE
- DEF_TOOL
- DEF_VISUAL
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A scrolling list of text items.
- DEF_ENDLIST
- DEF_METHOD
- public List()
- // Creates a new scrolling list initialized with no visible Lines
- // or multiple selections.
- //
- DEF_ENDLIST
- DEF_METHOD
- public List(int rows,
- boolean multipleSelections)
- // Creates a new scrolling list initialized with the specified
- // number of visible lines and a boolean stating whether multiple
- // selections are allowed or not.
- //
- // Parameters:
- // rows - the number of items to show.
- // multipleSelections - if true then multiple selections are allowed.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the peer for the list. The peer allows us to modify the
- // list's appearance without changing its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void removeNotify()
- // Removes the peer for this list. The peer allows us to modify the
- // list's appearance without changing its functionality.
- //
- // Overrides:
- // removeNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int countItems()
- // Returns the number of items in the list.
- //
- // See Also:
- // getItem
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getItem(int index)
- // Gets the item associated with the specified index.
- //
- // Parameters:
- // index - the position of the item
- // See Also:
- // countItems
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addItem(String item)
- // Adds the specified item to the end of scrolling list.
- //
- // Parameters:
- // item - the item to be added
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addItem(String item,
- int index)
- // Adds the specified item to the end of scrolling list.
- //
- // Parameters:
- // item - the item to be added
- // index - the position at which to put in the item. The
- // index is zero-based. If index is -1 then the item is added to
- // the end. If index is greater than the number of items in the
- // list, the item gets added at the end.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void replaceItem(String newValue,
- int index)
- // Replaces the item at the given index.
- //
- // Parameters:
- // newValue - the new value to replace the existing item
- // index - the position of the item to replace
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void clear()
- // Clears the list.
- //
- // See Also:
- // delItem, delItems
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void delItem(int position)
- // Delete an item from the list.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void delItems(int start,
- int end)
- // Delete multiple items from the list.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int getSelectedIndex()
- // Get the selected item on the list or -1 if no item is selected.
- //
- // See Also:
- // select, deselect, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int[] getSelectedIndexes()
- // Returns the selected indexes on the list.
- //
- // See Also:
- // select, deselect, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized String getSelectedItem()
- // Returns the selected item on the list or null if no item is selected.
- //
- // See Also:
- // select, deselect, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized String[] getSelectedItems()
- // Returns the selected items on the list.
- //
- // See Also:
- // select, deselect, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void select(int index)
- // Selects the item at the specified index.
- //
- // Parameters:
- // index - the position of the item to select
- // See Also:
- // getSelectedItem, deselect, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void deselect(int index)
- // Deselects the item at the specified index.
- //
- // Parameters:
- // index - the position of the item to deselect
- // See Also:
- // select, getSelectedItem, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean isSelected(int index)
- // Returns true if the item at the specified index has been selected;
- // false otherwise.
- //
- // Parameters:
- // index - the item to be checked
- // See Also:
- // select, deselect, isSelected
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getRows()
- // Returns the number of visible lines in this list.
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean allowsMultipleSelections()
- // Returns true if this list allows multiple selections.
- //
- // See Also:
- // setMultipleSelections
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setMultipleSelections(boolean v)
- // Sets whether this list should allow multiple selections or not.
- //
- // Parameters:
- // v - the boolean to allow multiple selections
- // See Also:
- // allowsMultipleSelections
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getVisibleIndex()
- // Gets the index of the item that was last made visible by the method
- // makeVisible.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void makeVisible(int index)
- // Forces the item at the specified index to be visible.
- //
- // Parameters:
- // index - the position of the item
- // See Also:
- // getVisibleIndex
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize(int rows)
- // Returns the preferred dimensions needed for the list with the specified
- // amount of rows.
- //
- // Parameters:
- // rows - amount of rows in list.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize()
- // Returns the preferred dimensions needed for the list.
- //
- // Returns:
- // the preferred size with the specified number of rows if the
- // row size is greater than 0.
- // Overrides:
- // preferredSize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize(int rows)
- // Returns the minimum dimensions needed for the amount of rows in the
- // list.
- //
- // Parameters:
- // rows - minimum amount of rows in the list
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize()
- // Returns the minimum dimensions needed for the list.
- //
- // Returns:
- // the preferred size with the specified number of rows if
- // the row size is greater than zero.
- // Overrides:
- // minimumSize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this list.
- //
- // Overrides:
- // paramString in class Component
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- MultipleSelections
- boolean
- setMultipleSelections(AVALUE);
- AVALUE = allowsMultipleSelections();
- false
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.white
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
-
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- MediaTracker
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A utility class to track the status of a number of media objects.
- // Media objects could include images as well as audio clips, though
- // currently only images are supported. To use it, simply create an
- // instance and then call addImage() for each image to be tracked.
- // Each image can be assigned a unique ID for indentification purposes.
- // The IDs control the priority order in which the images are fetched
- // as well as identifying unique subsets of the images that can be
- // waited on independently. Here is an example:
- //
- // import java.applet.Applet;
- // import java.awt.Color;
- // import java.awt.Image;
- // import java.awt.Graphics;
- // import java.awt.MediaTracker;
- // public class ImageBlaster extends Applet implements Runnable {
- // MediaTracker tracker;
- // Image bg;
- // Image anim[] = new Image[5];
- // int index;
- // Thread animator;
- // // Get the images for the background (id == 0) and the animation
- // // frames (id == 1) and add them to the MediaTracker
- // public void init() {
- // tracker = new MediaTracker(this);
- // bg = getImage(getDocumentBase(), "images/background.gif");
- // tracker.addImage(bg, 0);
- // for (int i = 0; i < 5; i++) {
- // anim[i] = getImage(getDocumentBase(), "images/anim"+i+".gif");
- // tracker.addImage(anim[i], 1);
- // }
- // }
- // // Start the animation thread.
- // public void start() {
- // animator = new Thread(this);
- // animator.start();
- // }
- // // Stop the animation thread.
- // public void stop() {
- // animator.stop();
- // animator = null;
- // }
- // // Run the animation thread.
- // // First wait for the background image to fully load and paint.
- // // Then wait for all of the animation frames to finish loading.
- // // Finally loop and increment the animation frame index.
- // public void run() {
- // try {
- // tracker.waitForID(0);
- // tracker.waitForID(1);
- // } catch (InterruptedException e) {
- // return;
- // }
- // Thread me = Thread.currentThread();
- // while (animator == me) {
- // try {
- // Thread.sleep(100);
- // } catch (InterruptedException e) {
- // break;
- // }
- // synchronized (this) {
- // index++;
- // if (index >= anim.length) {
- // index = 0;
- // }
- // }
- // repaint();
- // }
- // }
- // // The background image fills our frame so we don't need to clear
- // // the applet on repaints, just call the paint method.
- // public void update(Graphics g) {
- // paint(g);
- // }
- // // Paint a large red rectangle if there are any errors loading the
- // // images. Otherwise always paint the background so that it appears
- // // incrementally as it is loading. Finally, only paint the current
- // // animation frame if all of the frames (id == 1) are done loading
- // // so that we don't get partial animations.
- // public void paint(Graphics g) {
- // if ((tracker.statusAll() & MediaTracker.ERRORED) != 0) {
- // g.setColor(Color.red);
- // g.fillRect(0, 0, size().width, size().height);
- // return;
- // }
- // g.drawImage(bg, 0, 0, this);
- // if ((tracker.statusID(1) & MediaTracker.COMPLETE) != 0) {
- // g.drawImage(anim[index], 10, 10, this);
- // }
- // }
- // }
- //
- DEF_ENDLIST
- DEF_METHOD
- public MediaTracker(Component comp)
- // Creates a Media tracker to track images for a given Component.
- //
- // Parameters:
- // comp - the component on which the images will eventually be drawn
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void addImage(Image image,
- int id)
- // Adds an image to the list of images being tracked. The image
- // will eventually be rendered at its default (unscaled) size.
- //
- // Parameters:
- // image - the image to be tracked
- // id - the identifier used to later track this image
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addImage(Image image,
- int id,
- int w,
- int h)
- // Adds a scaled image to the list of images being tracked. The
- // image will eventually be rendered at the indicated size.
- //
- // Parameters:
- // image - the image to be tracked
- // id - the identifier used to later track this image
- // w - the width that the image will be rendered at
- // h - the height that the image will be rendered at
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean checkAll()
- // Checks to see if all images have finished loading but does not start
- // loading the images if they are not already loading.
- // If there is an error while loading or scaling an image then that
- // image is considered "complete."
- // Use isErrorAny() or isErrorID() to check for errors.
- //
- // Returns:
- // true if all images have finished loading, were aborted or
- // encountered an error
- // See Also:
- // checkAll, checkID, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean checkAll(boolean load)
- // Checks to see if all images have finished loading. If load is
- // true, starts loading any images that are not yet being loaded.
- // If there is an error while loading or scaling an image then
- // that image is considered "complete." Use isErrorAny() or
- // isErrorID() to check for errors.
- //
- // Parameters:
- // load - start loading the images if this parameter is true
- // Returns:
- // true if all images have finished loading, were aborted or
- // encountered an error
- // See Also:
- // isErrorAny, isErrorID, checkID, checkAll
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean isErrorAny()
- // Checks the error status of all of the images.
- //
- // Returns:
- // true if any of the images had an error during loading
- // See Also:
- // isErrorID, getErrorsAny
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Object[] getErrorsAny()
- // Returns a list of all media that have encountered an error.
- //
- // Returns:
- // an array of media objects or null if there are no errors
- // See Also:
- // isErrorAny, getErrorsID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void waitForAll() throws InterruptedException
- // Starts loading all images. Waits until they have finished loading,
- // are aborted, or it receives an error.
- // If there is an error while loading or scaling an image then that
- // image is considered "complete."
- // Use isErrorAny() or statusAll() to check for errors.
- //
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- // See Also:
- // waitForID, waitForAll, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean waitForAll(long ms) throws InterruptedException
- // Starts loading all images. Waits until they have finished loading,
- // are aborted, it receives an error, or until the specified timeout has
- // elapsed.
- // If there is an error while loading or scaling an image then that
- // image is considered "complete."
- // Use isErrorAny() or statusAll() to check for errors.
- //
- // Parameters:
- // ms - the length of time to wait for the loading to complete
- // Returns:
- // true if all images were successfully loaded
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- // See Also:
- // waitForID, waitForAll, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int statusAll(boolean load)
- // Returns the boolean OR of the status of all of the media being
- // tracked.
- //
- // Parameters:
- // load - specifies whether to start the media loading
- // See Also:
- // statusID, LOADING, ABORTED, ERRORED, COMPLETE
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean checkID(int id)
- // Checks to see if all images tagged with the indicated ID have
- // finished loading, but does not start loading the images if they
- // are not already loading.
- // If there is an error while loading or scaling an image then that
- // image is considered "complete."
- // Use isErrorAny() or isErrorID() to check for errors.
- //
- // Parameters:
- // id - the identifier used to determine which images to check
- // Returns:
- // true if all tagged images have finished loading, were
- // aborted, or an error occurred.
- // See Also:
- // checkID, checkAll, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean checkID(int id,
- boolean load)
- // Checks to see if all images tagged with the indicated ID have
- // finished loading. If load is true, starts loading any images
- // with that ID that are not yet being loaded. If there is an
- // error while loading or scaling an image then that image is
- // considered "complete." Use isErrorAny() or isErrorID() to
- // check for errors.
- //
- // Parameters:
- // id - the identifier used to determine which images to check
- // load - start loading the images if this parameter is true
- // Returns:
- // true if all tagged images have finished loading, were
- // aborted, or an error occurred
- // See Also:
- // checkID, checkAll, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean isErrorID(int id)
- // Checks the error status of all of the images with the specified ID.
- //
- // Parameters:
- // id - the identifier used to determine which images to check
- // Returns:
- // true if any of the tagged images had an error during loading
- // See Also:
- // isErrorAny, getErrorsID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Object[] getErrorsID(int id)
- // Returns a list of media with the specified ID that have encountered
- // an error.
- //
- // Parameters:
- // id - the identifier used to determine which images to return
- // Returns:
- // an array of media objects or null if there are no errors
- // See Also:
- // isErrorID, getErrorsAny
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void waitForID(int id) throws InterruptedException
- // Starts loading all images with the specified ID and waits until they
- // have finished loading or receive an error.
- // If there is an error while loading or scaling an image then that
- // image is considered "complete."
- // Use statusID() or isErrorID() to check for errors.
- //
- // Parameters:
- // id - the identifier used to determine which images to wait for
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- // See Also:
- // waitForAll, waitForID, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean waitForID(int id,
- long ms) throws InterruptedException
- // Starts loading all images with the specified ID. Waits until they
- // have finished loading, an error occurs, or the specified
- // timeout has elapsed.
- // If there is an error while loading or scaling an image then that
- // image is considered "complete."
- // Use statusID or isErrorID to check for errors.
- //
- // Parameters:
- // id - the identifier used to determine which images to wait for
- // ms - the length of time to wait for the loading to complete
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- // See Also:
- // waitForAll, waitForID, isErrorAny, isErrorID
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int statusID(int id,
- boolean load)
- // Returns the boolean OR of the status of all of the media with
- // a given ID.
- //
- // Parameters:
- // id - the identifier used to determine which images to check
- // load - specifies whether to start the media loading
- // See Also:
- // statusAll, LOADING, ABORTED, ERRORED, COMPLETE
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Menu
- DEF_SUPERCLASS
- MenuItem
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- MenuContainer
- DEF_ENDLIST
- DEF_DECLARATION
- // A Menu that is a component of a menu bar.
- DEF_ENDLIST
- DEF_METHOD
- public Menu(String label)
- // Constructs a new Menu with the specified label. This menu can
- // not be torn off - the menu will still appear on screen after
- // the the mouse button has been released.
- //
- // Parameters:
- // label - the label to be added to this menu
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Menu(String label,
- boolean tearOff)
- // Constructs a new Menu with the specified label. If tearOff is
- // true, the menu can be torn off - the menu will still appear on
- // screen after the the mouse button has been released.
- //
- // Parameters:
- // label - the label to be added to this menu
- // tearOff - the boolean indicating whether or not the menu will be
- // able to be torn off.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the menu's peer. The peer allows us to modify the
- // appearance of the menu without changing its functionality.
- //
- // Overrides:
- // addNotify in class MenuItem
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void removeNotify()
- // Removes the menu's peer. The peer allows us to modify the appearance
- // of the menu without changing its functionality.
- //
- // Overrides:
- // removeNotify in class MenuComponent
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isTearOff()
- // Returns true if this is a tear-off menu.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int countItems()
- // Returns the number of elements in this menu.
- //
- DEF_ENDLIST
- DEF_METHOD
- public MenuItem getItem(int index)
- // Returns the item located at the specified index of this menu.
- //
- // Parameters:
- // index - the position of the item to be returned
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized MenuItem add(MenuItem mi)
- // Adds the specified item to this menu.
- //
- // Parameters:
- // mi - the item to be added
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void add(String label)
- // Adds an item with with the specified label to this menu.
- //
- // Parameters:
- // label - the text on the item
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void addSeparator()
- // Adds a separator line, or a hypen, to the menu at the current position.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void remove(int index)
- // Deletes the item from this menu at the specified index.
- //
- // Parameters:
- // index - the position of the item to be removed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void remove(MenuComponent item)
- // Deletes the specified item from this menu.
- //
- // Parameters:
- // item - the item to be removed from the menu
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- MenuBar
- DEF_SUPERCLASS
- MenuComponent
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- MenuContainer
- DEF_ENDLIST
- DEF_DECLARATION
- // A class that encapsulates the platform's concept of a menu bar bound
- // to a Frame. In order to associate the MenuBar with an actual Frame,
- // the Frame.setMenuBar() method should be called.
- //
- // See Also:
- // setMenuBar
- //
- DEF_ENDLIST
- DEF_METHOD
- public MenuBar()
- // Creates a new menu bar.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the menu bar's peer. The peer allows us to change the
- // appearance of the menu bar without changing any of the menu bar's
- // functionality.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void removeNotify()
- // Removes the menu bar's peer. The peer allows us to change the
- // appearance of the menu bar without changing any of the menu bar's
- // functionality.
- //
- // Overrides:
- // removeNotify in class MenuComponent
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Menu getHelpMenu()
- // Gets the help menu on the menu bar.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void setHelpMenu(Menu m)
- // Sets the help menu to the specified menu on the menu bar.
- //
- // Parameters:
- // m - the menu to be set
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Menu add(Menu m)
- // Adds the specified menu to the menu bar.
- //
- // Parameters:
- // m - the menu to be added to the menu bar
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void remove(int index)
- // Removes the menu located at the specified index from the menu bar.
- //
- // Parameters:
- // index - the position of the menu to be removed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void remove(MenuComponent m)
- // Removes the specified menu from the menu bar.
- //
- // Parameters:
- // m - the menu to be removed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int countMenus()
- // Counts the number of menus on the menu bar.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Menu getMenu(int i)
- // Gets the specified menu.
- //
- // Parameters:
- // i - the menu to be returned
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- MenuComponent
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The super class of all menu related components.
- DEF_ENDLIST
- DEF_EVENT
- public boolean postEvent(Event evt)
- // Posts the specified event to the menu.
- //
- // Parameters:
- // evt - the event which is to take place
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public MenuComponent()
- // Returns the parent container.
- //
- DEF_ENDLIST
- DEF_METHOD
- public MenuComponentPeer getPeer()
- // Gets the MenuComponent's peer. The peer allows us to modify the
- // appearance of the menu component without changing the functionality of
- // the menu component.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Font getFont()
- // Gets the font used for this MenuItem.
- //
- // Returns:
- // the font if one is used; null otherwise.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setFont(Font f)
- // Sets the font to be used for this MenuItem to the specified font.
- //
- // Parameters:
- // f - the font to be set
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void removeNotify()
- // Removes the menu component's peer. The peer allows us to modify the
- // appearance of the menu component without changing the functionality of
- // the menu component.
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the String parameter of this MenuComponent.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this MenuComponent's values.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- MenuItem
- DEF_SUPERCLASS
- MenuComponent
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A String item that represents a choice in a menu.
- DEF_ENDLIST
- DEF_METHOD
- public MenuItem(String label)
- // Constructs a new MenuItem with the specified label.
- //
- // Parameters:
- // label - the label for this menu item. Note that "-" is
- // reserved to mean a separator between menu items.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the menu item's peer. The peer allows us to modify the
- // appearance of the menu item without changing its functionality.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getLabel()
- // Gets the label for this menu item.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setLabel(String label)
- // Sets the label to be the specified label.
- //
- // Parameters:
- // label - the label for this menu item
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isEnabled()
- // Checks whether the menu item is enabled.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void enable()
- // Makes this menu item selectable by the user.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void enable(boolean cond)
- // Conditionally enables a component.
- //
- // Parameters:
- // cond - enabled if true; disabled otherwise.
- // See Also:
- // enable, disable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void disable()
- // Makes this menu item unselectable by the user.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String paramString()
- // Returns the String parameter of the menu item.
- //
- // Overrides:
- // paramString in class MenuComponent
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Point
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An x,y coordinate.
- DEF_ENDLIST
- DEF_METHOD
- public Point(int x,
- int y)
- // Constructs and initializes a Point from the specified x and y
- // coordinates.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void move(int x,
- int y)
- // Moves the point.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void translate(int x,
- int y)
- // Translates the point.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Returns the hashcode for this Point.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Checks whether two pointers are equal.
- //
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this Point's coordinates.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Polygon
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A polygon consists of a list of x and y coordinates.
- DEF_ENDLIST
- DEF_METHOD
- public Polygon()
- // Creates an empty polygon.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Polygon(int xpoints[],
- int ypoints[],
- int npoints)
- // Constructs and initializes a Polygon from the specified parameters.
- //
- // Parameters:
- // xpoints - the array of x coordinates
- // ypoints - the array of y coordinates
- // npoints - the total number of points in the Polygon
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void addPoint(int x,
- int y)
- // Appends a point to a polygon. If inside(x, y) or another
- // operation that calculates the bounding box has already been
- // performed, this method updates the bounds accordingly.
- //
- // Parameters:
- // x - the x coordinate of the point
- // y - the y coordinate of the point
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle getBoundingBox()
- // Determines the area spanned by this Polygon.
- //
- // Returns:
- // a Rectangle defining the bounds of the Polygon.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean inside(int x,
- int y)
- // Determines whether the point (x,y) is inside the Polygon. Uses
- // an even-odd insideness rule (also known as an alternating
- // rule).
- //
- // Parameters:
- // x - the X coordinate of the point to be tested
- // y - the Y coordinate of the point to be tested
- // Based on code by Hanpeter van Vliet .
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Rectangle
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A rectangle defined by x, y, width and height.
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle()
- // Constructs a new rectangle.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle(int x,
- int y,
- int width,
- int height)
- // Constructs and initializes a rectangle with the specified parameters.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // width - the width of the rectangle
- // height - the height of the rectangle
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle(int width,
- int height)
- // Constructs a rectangle and initializes it with the specified width and
- // height parameters.
- //
- // Parameters:
- // width - the width of the rectangle
- // height - the height of the rectangle
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle(Point p,
- Dimension d)
- // Constructs a rectangle and initializes it to a specified point and
- // dimension.
- //
- // Parameters:
- // p - the point
- // d - dimension
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle(Point p)
- // Constructs a rectangle and initializes it to the specified point.
- //
- // Parameters:
- // p - the value of the x and y coordinate
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle(Dimension d)
- // Constructs a rectangle and initializes it to the specified width and
- // height.
- //
- // Parameters:
- // d - the value of the width and height
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void reshape(int x,
- int y,
- int width,
- int height)
- // Reshapes the rectangle.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void move(int x,
- int y)
- // Moves the rectangle.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void translate(int x,
- int y)
- // Translates the rectangle.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void resize(int width,
- int height)
- // Resizes the rectangle.
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean inside(int x,
- int y)
- // Checks if the specified point lies inside a rectangle.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean intersects(Rectangle r)
- // Checks if two rectangles intersect.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle intersection(Rectangle r)
- // Computes the intersection of two rectangles.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle union(Rectangle r)
- // Computes the union of two rectangles.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void add(int newx,
- int newy)
- // Adds a point to a rectangle. This results in the smallest
- // rectangle that contains both the rectangle and the point.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void add(Point pt)
- // Adds a point to a rectangle. This results in the smallest
- // rectangle that contains both the rectangle and the point.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void add(Rectangle r)
- // Adds a rectangle to a rectangle. This results in the union
- // of the two rectangles.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void grow(int h,
- int v)
- // Grows the rectangle horizontally and vertically.
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isEmpty()
- // Determines whether the rectangle is empty.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Returns the hashcode for this Rectangle.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Checks whether two rectangles are equal.
- //
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this Rectangle's values.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- InterruptedIOException
- DEF_SUPERCLASS
- IOException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.InterruptedIOException
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an I/O operation has been interrupted.
- //
- // See Also:
- // InputStream, OutputStream
- //
- DEF_ENDLIST
- DEF_METHOD
- public InterruptedIOException()
- // Constructs an IOException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public InterruptedIOException(String s)
- // Constructs an IOException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- LineNumberInputStream
- DEF_SUPERCLASS
- FilterInputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.LineNumberInputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An input stream that keeps track of line numbers.
- DEF_ENDLIST
- DEF_METHOD
- public LineNumberInputStream(InputStream in)
- // Constructs a new LineNumberInputStream initialized with
- // the specified input stream.
- //
- // Parameters:
- // in - the input stream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read() throws IOException
- // Reads a byte of data. The method will block if no input is
- // available.
- //
- // Returns:
- // the byte read, or -1 if the end of the
- // stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read(byte b[],
- int off,
- int len) throws IOException
- // Reads into an array of bytes. This method will
- // blocks until some input is available.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // off - the start offset of the data
- // len - the maximum number of bytes read
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setLineNumber(int lineNumber)
- // Sets the current line number.
- //
- // Parameters:
- // lineNumber - the line number to be set
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getLineNumber()
- // Returns the current line number.
- //
- DEF_ENDLIST
- DEF_METHOD
- public long skip(long n) throws IOException
- // Skips n bytes of input.
- //
- // Parameters:
- // n - the number of bytes to be skipped
- // Returns:
- // the actual number of bytes skipped.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // skip in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int available() throws IOException
- // Returns the number of bytes that can be read
- // without blocking.
- //
- // Returns:
- // the number of available bytes
- // Overrides:
- // available in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void mark(int readlimit)
- // Marks the current position in the input stream. A subsequent
- // call to reset() will reposition the stream at the last
- // marked position so that subsequent reads will re-read
- // the same bytes. The stream promises to allow readlimit bytes
- // to be read before the mark position gets invalidated.
- //
- // Parameters:
- // readlimit - the maximum limit of bytes allowed to be read
- // before the mark position becomes invalid.
- // Overrides:
- // mark in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void reset() throws IOException
- // Repositions the stream to the last marked position. If the
- // stream has not been marked, or if the mark has been invalidated,
- // an IOException is thrown. Stream marks are intended to be used in
- // situations where you need to read ahead a little to see what's in
- // the stream. Often this is most easily done by invoking some
- // general parser. If the stream is of the type handled by the
- // parser, it just chugs along happily. If the stream is not of
- // that type, the parser should toss an exception when it fails,
- // which, if it happens within readlimit bytes, allows the outer
- // code to reset the stream and try another parser.
- //
- // Overrides:
- // reset in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- OutputStream
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.OutputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Abstract class representing an output stream of bytes.
- // All OutputStreams are based on this class.
- //
- // See Also:
- // InputStream, FilterOutputStream, BufferedOutputStream, DataOutputStream, ByteArrayOutputStream
- //
- DEF_ENDLIST
- DEF_METHOD
- public OutputStream()
- // Writes a byte. This method will block until the byte is actually
- // written.
- //
- // Parameters:
- // b - the byte
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(byte b[]) throws IOException
- // Writes an array of bytes. This method will block until the bytes
- // are actually written.
- //
- // Parameters:
- // b - the data to be written
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(byte b[],
- int off,
- int len) throws IOException
- // Writes a sub array of bytes.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void flush() throws IOException
- // Flushes the stream. This will write any buffered
- // output bytes.
- //
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void close() throws IOException
- // Closes the stream. This method must be called
- // to release any resources associated with the
- // stream.
- //
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- PipedInputStream
- DEF_SUPERCLASS
- InputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.PipedInputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // PipedInputStream must be connected to a PipedOutputStream
- // to be useful. A thread reading from a PipedInputStream recieves data from
- // a thread writing to the PipedOutputStream it is connected to.
- //
- // See Also:
- // PipedOutputStream
- //
- DEF_ENDLIST
- DEF_METHOD
- public PipedInputStream(PipedOutputStream src) throws IOException
- // Creates an input file from the specified PiledOutputStream.
- //
- // Parameters:
- // src - the stream to connect to.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public PipedInputStream()
- // Creates an input file that isn't connected to anything (yet).
- // It must be connected to a PipedOutputStream before being used.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void connect(PipedOutputStream src) throws IOException
- // Connects this input stream to a sender.
- //
- // Parameters:
- // src - The OutputStream to connect to.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int read() throws IOException
- // Reads a byte of data. This method will block if no input is available.
- //
- // Returns:
- // the byte read, or -1 if the end of the stream is reached.
- // Throws: IOException
- // If the pipe is broken.
- // Overrides:
- // read in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int read(byte b[],
- int off,
- int len) throws IOException
- // Reads into an array of bytes.
- // Blocks until some input is available.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // off - the start offset of the data
- // len - the maximum number of bytes read
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void close() throws IOException
- // Closes the input stream. Must be called
- // to release any resources associated with
- // the stream.
- //
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // close in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- PipedOutputStream
- DEF_SUPERCLASS
- OutputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.PipedOutputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Piped output stream, must be connected to a PipedInputStream.
- // A thread reading from a PipedInputStream receives data from
- // a thread writing to the PipedOutputStream it is connected to.
- //
- // See Also:
- // PipedInputStream
- //
- DEF_ENDLIST
- DEF_METHOD
- public PipedOutputStream(PipedInputStream snk) throws IOException
- // Creates an output file connected to the specified
- // PipedInputStream.
- //
- // Parameters:
- // snk - The InputStream to connect to.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public PipedOutputStream()
- // Creates an output file that isn't connected to anything (yet).
- // It must be connected before being used.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void connect(PipedInputStream snk) throws IOException
- // Connect this output stream to a receiver.
- //
- // Parameters:
- // snk - The InputStream to connect to.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(int b) throws IOException
- // Write a byte. This method will block until the byte is actually
- // written.
- //
- // Parameters:
- // b - the byte to be written
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // write in class OutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(byte b[],
- int off,
- int len) throws IOException
- // Writes a sub array of bytes.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // write in class OutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void close() throws IOException
- // Closes the stream. This method must be called
- // to release any resources associated with the
- // stream.
- //
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // close in class OutputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- PrintStream
- DEF_SUPERCLASS
- FilterOutputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.PrintStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class implements an output stream that has
- // additional methods for printing. You can specify
- // that the stream should be flushed every time a
- // newline character is written.
- // The top byte of 16 bit characters is discarded.
- // Example:
- //
- // System.out.println("Hello world!");
- // System.out.print("x = ");
- // System.out.println(x);
- // System.out.println("y = " + y);
- //
- DEF_ENDLIST
- DEF_METHOD
- public PrintStream(OutputStream out)
- // Creates a new PrintStream.
- //
- // Parameters:
- // out - the output stream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public PrintStream(OutputStream out,
- boolean autoflush)
- // Creates a new PrintStream, with auto flushing.
- //
- // Parameters:
- // out - the output stream
- // autoflush - if true the stream automatically flushes
- // its output when a newline character is printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(int b)
- // Writes a byte. This method will block until the byte is actually
- // written.
- //
- // Parameters:
- // b - the byte
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // write in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(byte b[],
- int off,
- int len)
- // Writes a sub array of bytes.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // write in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void flush()
- // Flushes the stream. This will write any buffered
- // output bytes.
- //
- // Overrides:
- // flush in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void close()
- // Closes the stream.
- //
- // Overrides:
- // close in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean checkError()
- // Flushes the print stream and returns whether or not there was
- // an error on the output stream. Errors are cumulative; once the
- // print stream encounters an error this routine will continue to
- // return true on all successive calls.
- //
- // Returns:
- // true if the print stream has ever encountered an error
- // on the output stream.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(Object obj)
- // Prints an object.
- //
- // Parameters:
- // obj - the object to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void print(String s)
- // Prints a String.
- //
- // Parameters:
- // s - the String to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void print(char s[])
- // Prints an array of characters.
- //
- // Parameters:
- // s - the array of chars to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(char c)
- // Prints an character.
- //
- // Parameters:
- // c - the character to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(int i)
- // Prints an integer.
- //
- // Parameters:
- // i - the integer to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(long l)
- // Prints a long.
- //
- // Parameters:
- // l - the long to be printed.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(float f)
- // Prints a float.
- //
- // Parameters:
- // f - the float to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(double d)
- // Prints a double.
- //
- // Parameters:
- // d - the double to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(boolean b)
- // Prints a boolean.
- //
- // Parameters:
- // b - the boolean to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void println()
- // Prints a newline.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(Object obj)
- // Prints an object followed by a newline.
- //
- // Parameters:
- // obj - the object to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(String s)
- // Prints a string followed by a newline.
- //
- // Parameters:
- // s - the String to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(char s[])
- // Prints an array of characters followed by a newline.
- //
- // Parameters:
- // s - the array of characters to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(char c)
- // Prints a character followed by a newline.
- //
- // Parameters:
- // c - the character to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(int i)
- // Prints an integer followed by a newline.
- //
- // Parameters:
- // i - the integer to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(long l)
- // Prints a long followed by a newline.
- //
- // Parameters:
- // l - the long to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(float f)
- // Prints a float followed by a newline.
- //
- // Parameters:
- // f - the float to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(double d)
- // Prints a double followed by a newline.
- //
- // Parameters:
- // d - the double to be printed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void println(boolean b)
- // Prints a boolean followed by a newline.
- //
- // Parameters:
- // b - the boolean to be printed
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- PushbackInputStream
- DEF_SUPERCLASS
- FilterInputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.PushbackInputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An input stream that has a 1 byte push back buffer.
- DEF_ENDLIST
- DEF_METHOD
- public PushbackInputStream(InputStream in)
- // Creates a PushbackInputStream.
- //
- // Parameters:
- // in - the input stream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read() throws IOException
- // Reads a byte of data. This method will block if no input is
- // available.
- //
- // Returns:
- // the byte read, or -1 if the end of the
- // stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read(byte bytes[],
- int offset,
- int length) throws IOException
- // Reads into an array of bytes. This method
- // blocks until some input is available.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // off - the start offset of the data
- // len - the maximum number of bytes read
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void unread(int ch) throws IOException
- // Pushes back a character.
- //
- // Parameters:
- // ch - the character to push back.
- // Throws: IOException
- // If an attempt to push back more than one
- // character is made.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int available() throws IOException
- // Returns the number of bytes that can be read.
- // without blocking.
- //
- // Overrides:
- // available in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean markSupported()
- // Returns true if this stream type supports mark/reset.
- //
- // Overrides:
- // markSupported in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- RandomAccessFile
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.RandomAccessFile
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DataOutput
- DataInput
- DEF_ENDLIST
- DEF_DECLARATION
- // Random access files can be constructed from file descriptors, file
- // names, or file objects. This class provides a sense of security
- // by offering methods that allow specified mode accesses of
- // read-only or read-write to files.
- DEF_ENDLIST
- DEF_METHOD
- public RandomAccessFile(String name,
- String mode) throws IOException
- // Creates a RandomAccessFile with the specified system dependent
- // file name and the specified mode.
- // Mode "r" is for read-only and mode "rw" is for read+write.
- //
- // Parameters:
- // name - the system dependent file name
- // mode - the access mode
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public RandomAccessFile(File file,
- String mode) throws IOException
- // Creates a RandomAccessFile from a specified File object
- // and mode ("r" or "rw").
- //
- // Parameters:
- // file - the file object
- // mode - the access mode
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final FileDescriptor getFD() throws IOException
- // Returns the opaque file descriptor object.
- //
- // Returns:
- // the file descriptor.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read() throws IOException
- // Reads a byte of data. This method will block if no input is
- // available.
- //
- // Returns:
- // the byte read, or -1 if the end of the
- // stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read(byte b[],
- int off,
- int len) throws IOException
- // Reads a sub array as a sequence of bytes.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int read(byte b[]) throws IOException
- // Reads data into an array of bytes. This method blocks
- // until some input is available.
- //
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void readFully(byte b[]) throws IOException
- // Reads bytes, blocking until all bytes are read.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void readFully(byte b[],
- int off,
- int len) throws IOException
- // Reads bytes, blocking until all bytes are read.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // off - the start offset of the data
- // len - the maximum number of bytes read
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int skipBytes(int n) throws IOException
- // Writes a byte of data. This method will block until the byte
- // is actually written.
- //
- // Parameters:
- // b - the byte to be written
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(byte b[]) throws IOException
- // Writes an array of bytes. Will block until the bytes
- // are actually written.
- //
- // Parameters:
- // b - the data to be written
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void write(byte b[],
- int off,
- int len) throws IOException
- // Wrotes a sub array of bytes.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public long getFilePointer() throws IOException
- // Returns the current location of the file pointer.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void seek(long pos) throws IOException
- // Sets the file pointer to the specified absolute position.
- //
- // Parameters:
- // pos - the absolute position
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public long length() throws IOException
- // Returns the length of the file.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void close() throws IOException
- // Closes the file.
- //
- // Throws: IOException
- // If an I/O error has occurred.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final boolean readBoolean() throws IOException
- // Reads a boolean.
- //
- DEF_ENDLIST
- DEF_METHOD
- public final byte readByte() throws IOException
- // Reads a byte.
- //
- DEF_ENDLIST
- DEF_METHOD
- public final int readUnsignedByte() throws IOException
- // Reads an unsigned 8 bit byte.
- //
- // Returns:
- // the 8 bit byte read.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final short readShort() throws IOException
- // Reads 16 bit short.
- //
- // Returns:
- // the read 16 bit short.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final int readUnsignedShort() throws IOException
- // Reads 16 bit short.
- //
- // Returns:
- // the read 16 bit short.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final char readChar() throws IOException
- // Reads a 16 bit char.
- //
- // Returns:
- // the read 16 bit char.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final int readInt() throws IOException
- // Reads a 32 bit int.
- //
- // Returns:
- // the read 32 bit integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final long readLong() throws IOException
- // Reads a 64 bit long.
- //
- // Returns:
- // the read 64 bit long.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final float readFloat() throws IOException
- // Reads a 32 bit float.
- //
- // Returns:
- // the read 32 bit float.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final double readDouble() throws IOException
- // Reads a 64 bit double.
- //
- // Returns:
- // the read 64 bit double.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final String readLine() throws IOException
- // Reads a line terminated by a '\n' or EOF.
- //
- DEF_ENDLIST
- DEF_METHOD
- public final String readUTF() throws IOException
- // Reads a UTF formatted String.
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeBoolean(boolean v) throws IOException
- // Writes a boolean.
- //
- // Parameters:
- // v - the boolean value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeByte(int v) throws IOException
- // Writes a byte.
- //
- // Parameters:
- // v - the byte
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeShort(int v) throws IOException
- // Writes a short.
- //
- // Parameters:
- // v - the short
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeChar(int v) throws IOException
- // Writes a character.
- //
- // Parameters:
- // v - the char
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeInt(int v) throws IOException
- // Writes an integer.
- //
- // Parameters:
- // v - the integer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeLong(long v) throws IOException
- // Writes a long.
- //
- // Parameters:
- // v - the long
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeFloat(float v) throws IOException
- // Writes a String as a sequence of bytes.
- //
- // Parameters:
- // s - the String
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeChars(String s) throws IOException
- // Writes a String as a sequence of chars.
- //
- // Parameters:
- // s - the String
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void writeUTF(String str) throws IOException
- // Writes a String in UTF format.
- //
- // Parameters:
- // str - the String
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Integer
- DEF_SUPERCLASS
- Number
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The Integer class is a wrapper for integer values. In Java, integers are not
- // objects and most of the Java utility classes require the use of objects. Thus,
- // if you needed to store an integer in a hashtable, you would have to "wrap" an
- // Integer instance around it.
- DEF_ENDLIST
- DEF_METHOD
- public Integer(int value)
- // Constructs an Integer object initialized to the specified int value.
- //
- // Parameters:
- // value - the initial value of the Integer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Integer(String s) throws NumberFormatException
- // Constructs an Integer object initialized to the value specified by the
- // String parameter. The radix is assumed to be 10.
- //
- // Parameters:
- // s - the String to be converted to an Integer
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static String toString(int i,
- int radix)
- // Returns a new String object representing the specified integer in
- // the specified radix.
- //
- // Parameters:
- // i - the integer to be converted
- // radix - the radix
- // See Also:
- // MIN_RADIX, MAX_RADIX
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static String toString(int i)
- // Returns a new String object representing the specified integer. The radix
- // is assumed to be 10.
- //
- // Parameters:
- // i - the integer to be converted
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int parseInt(String s,
- int radix) throws NumberFormatException
- // Assuming the specified String represents an integer, returns that integer's
- // value. Throws an exception if the String cannot be parsed as an int.
- //
- // Parameters:
- // s - the String containing the integer
- // radix - the radix to be used
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int parseInt(String s) throws NumberFormatException
- // Assuming the specified String represents an integer, returns that integer's
- // value. Throws an exception if the String cannot be parsed as an int.
- // The radix is assumed to be 10.
- //
- // Parameters:
- // s - the String containing the integer
- // Throws: NumberFormatException
- // If the string does not contain a parsable
- // integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Integer valueOf(String s,
- int radix) throws NumberFormatException
- // Assuming the specified String represents an integer, returns a new Integer
- // object initialized to that value. Throws an exception if the String cannot be
- // parsed as an int.
- //
- // Parameters:
- // s - the String containing the integer
- // radix - the radix to be used
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Integer valueOf(String s) throws NumberFormatException
- // Assuming the specified String represents an integer, returns a new Integer
- // object initialized to that value. Throws an exception if the String cannot be
- // parsed as an int. The radix is assumed to be 10.
- //
- // Parameters:
- // s - the String containing the integer
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int intValue()
- // Returns the value of this Integer as an int.
- //
- // Overrides:
- // intValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public long longValue()
- // Returns the value of this Integer as a long.
- //
- // Overrides:
- // longValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public float floatValue()
- // Returns the value of this Integer as a float.
- //
- // Overrides:
- // floatValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public double doubleValue()
- // Returns the value of this Integer as a double.
- //
- // Overrides:
- // doubleValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns a String object representing this Integer's value.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Returns a hashcode for this Integer.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares this object to the specified object.
- //
- // Parameters:
- // obj - the object to compare with
- // Returns:
- // true if the objects are the same; false otherwise.
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Integer getInteger(String nm)
- // Gets an Integer property. If the property does not
- // exist, it will return 0.
- //
- // Parameters:
- // nm - the property name
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Integer getInteger(String nm,
- int val)
- // Gets an Integer property. If the property does not
- // exist, it will return val. Deals with Hexadecimal
- // and octal numbers.
- //
- // Parameters:
- // nm - the String name
- // val - the Integer value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Integer getInteger(String nm,
- Integer val)
- // Gets an Integer property. If the property does not
- // exist, it will return val. Deals with Hexadecimal
- // and octal numbers.
- //
- // Parameters:
- // nm - the property name
- // val - the integer value
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- InternalError
- DEF_SUPERCLASS
- VirtualMachineError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an internal error has occurred.
- DEF_ENDLIST
- DEF_METHOD
- public InternalError()
- // Constructs an InternalError with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public InternalError(String s)
- // Constructs an InternalError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- InterruptedException
- DEF_SUPERCLASS
- Exception
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An exception indicated that some thread has interrupted this thread.
- //
- //
- // See Also:
- // interrupt, interrupted
- //
- DEF_ENDLIST
- DEF_METHOD
- public InterruptedException()
- // Constructs an InterruptedException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public InterruptedException(String s)
- // Constructs an InterruptedException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- LinkageError
- DEF_SUPERCLASS
- Error
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // LinkageError and its subclasses indicate that a class has some
- // dependency on another class; however the latter class has incompatibly
- // changed after the compilation of the former class.
- DEF_ENDLIST
- DEF_METHOD
- public LinkageError()
- // Constructs a LinkageError with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public LinkageError(String s)
- // Constructs a LinkageError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Long
- DEF_SUPERCLASS
- Number
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The Long class provides an object wrapper for Long data values and serves as
- // a place for long-oriented operations. A wrapper is useful because most of Java's
- // utility classes require the use of objects. Since longs are not objects in Java,
- // they need to be "wrapped" in a Long instance.
- DEF_ENDLIST
- DEF_METHOD
- public Long(long value)
- // Constructs a Long object initialized to the specified value.
- //
- // Parameters:
- // value - the initial value of the Long
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Long(String s) throws NumberFormatException
- // Constructs a Long object initialized to the value specified by the
- // String parameter. The radix is assumed to be 10.
- //
- // Parameters:
- // s - the String to be converted to a Long
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // long.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static String toString(long i,
- int radix)
- // Returns a new String object representing the specified long in
- // the specified radix.
- //
- // Parameters:
- // i - the long to be converted
- // radix - the radix
- // See Also:
- // MIN_RADIX, MAX_RADIX
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static String toString(long i)
- // Returns a new String object representing the specified integer. The radix
- // is assumed to be 10.
- //
- // Parameters:
- // i - the long to be converted
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static long parseLong(String s,
- int radix) throws NumberFormatException
- // Assuming the specified String represents a long, returns that long's
- // value. Throws an exception if the String cannot be parsed as a long.
- //
- // Parameters:
- // s - the String containing the integer
- // radix - the radix to be used
- // Throws: NumberFormatException
- // If the String does not
- // contain a parsable integer.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static long parseLong(String s) throws NumberFormatException
- // Assuming the specified String represents a long, return that long's
- // value. Throws an exception if the String cannot be parsed as a long.
- // The radix is assumed to be 10.
- //
- // Parameters:
- // s - the String containing the long
- // Throws: NumberFormatException
- // If the string does not contain
- // a parsable long.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Long valueOf(String s,
- int radix) throws NumberFormatException
- // Assuming the specified String represents a long, returns a new Long
- // object initialized to that value. Throws an exception if the String cannot be
- // parsed as a long.
- //
- // Parameters:
- // s - the String containing the long.
- // radix - the radix to be used
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // long.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Long valueOf(String s) throws NumberFormatException
- // Assuming the specified String represents a long, returns a new Long
- // object initialized to that value. Throws an exception if the String cannot be
- // parsed as a long. The radix is assumed to be 10.
- //
- // Parameters:
- // s - the String containing the long
- // Throws: NumberFormatException
- // If the String does not contain a parsable
- // long.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int intValue()
- // Returns the value of this Long as an int.
- //
- // Overrides:
- // intValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public long longValue()
- // Returns the value of this Long as a long.
- //
- // Overrides:
- // longValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public float floatValue()
- // Returns the value of this Long as a float.
- //
- // Overrides:
- // floatValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public double doubleValue()
- // Returns the value of this Long as a double.
- //
- // Overrides:
- // doubleValue in class Number
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns a String object representing this Long's value.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Computes a hashcode for this Long.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares this object against the specified object.
- //
- // Parameters:
- // obj - the object to compare with
- // Returns:
- // true if the objects are the same; false otherwise.
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Long getLong(String nm)
- // Get a Long property. If the property does not
- // exist, it will return 0.
- //
- // Parameters:
- // nm - the property name
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Long getLong(String nm,
- long val)
- // Get a Long property. If the property does not
- // exist, it will return val. Deals with Hexadecimal and octal numbers.
- //
- // Parameters:
- // nm - the String name
- // val - the Long value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Long getLong(String nm,
- Long val)
- // Get a Long property. If the property does not
- // exist, it will return val. Deals with Hexadecimal and octal numbers.
- //
- // Parameters:
- // nm - the property name
- // val - the Long value
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Math
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The standard Math library. For the methods in this Class, error handling
- // for out-of-range or immeasurable results are platform dependent.
- // This class cannot be subclassed or instantiated because all methods and variables
- // are static.
- DEF_ENDLIST
- DEF_METHOD
- public static double sin(double a)
- // Returns the trigonometric sine of an angle.
- //
- // Parameters:
- // a - an assigned angle that is measured in radians
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double cos(double a)
- // Returns the trigonometric cosine of an angle.
- //
- // Parameters:
- // a - an assigned angle that is measured in radians
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double tan(double a)
- // Returns the trigonometric tangent of an angle.
- //
- // Parameters:
- // a - an assigned angle that is measured in radians
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double asin(double a)
- // Returns the arc sine of a, in the range of -Pi/2 through Pi/2.
- //
- // Parameters:
- // a - (-1.0) <= a <= 1.0
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double acos(double a)
- // Returns the arc cosine of a, in the range of 0.0 through Pi.
- //
- // Parameters:
- // a - (-1.0) <= a <= 1.0
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double atan(double a)
- // Returns the arc tangent of a, in the range of -Pi/2 through Pi/2.
- //
- // Parameters:
- // a - an assigned value
- // Returns:
- // the arc tangent of a.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double exp(double a)
- // Returns the exponential number e(2.718...) raised to the power of a.
- //
- // Parameters:
- // a - an assigned value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double log(double a) throws ArithmeticException
- // Returns the natural logarithm (base e) of a.
- //
- // Parameters:
- // a - a is a number greater than 0.0
- // Throws: ArithmeticException
- // If a is less than 0.0 .
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double sqrt(double a) throws ArithmeticException
- // Returns the square root of a.
- //
- // Parameters:
- // a - a is a number greater than or equal to 0.0
- // Throws: ArithmeticException
- // If a is a value less than 0.0 .
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double IEEEremainder(double f1,
- double f2)
- // Returns the remainder of f1 divided by f2 as defined by IEEE 754.
- //
- // Parameters:
- // f1 - the dividend
- // f2 - the divisor
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double ceil(double a)
- // Returns the "ceiling" or smallest whole number greater than or equal to a.
- //
- // Parameters:
- // a - an assigned value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double floor(double a)
- // Returns the "floor" or largest whole number less than or equal to a.
- //
- // Parameters:
- // a - an assigned value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double rint(double a)
- // Converts a double value into an integral value in double format.
- //
- // Parameters:
- // a - an assigned double value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double atan2(double a,
- double b)
- // Converts rectangular coordinates (a, b) to polar (r, theta). This method
- // computes the phase theta by computing an arc tangent of b/a in
- // the range of -Pi to Pi.
- //
- // Parameters:
- // a - an assigned value
- // b - an assigned value
- // Returns:
- // the polar coordinates (r, theta).
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double pow(double a,
- double b) throws ArithmeticException
- // Returns the number a raised to the power of b. If (a == 0.0), then b
- // must be greater than 0.0; otherwise you will throw an exception.
- // An exception will also occur if (a <= 0.0) and b is not equal to a
- // whole number.
- //
- // Parameters:
- // a - an assigned value with the exceptions: (a == 0.0) -> (b > 0.0)
- // && (a (b == a whole number)
- // b - an assigned value with the exceptions: (a == 0.0) -> (b > 0.0)
- // && (a (b == a whole number)
- // Throws: ArithmeticException
- // If (a == 0.0) and (b <= 0.0) .
- // Throws: ArithmeticException
- // If (a <= 0.0) and b is not equal to
- // a whole number.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int round(float a)
- // Rounds off a float value by first adding 0.5 to it and then returning the
- // largest integer that is less than or equal to this new value.
- //
- // Parameters:
- // a - the value to be rounded off
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static long round(double a)
- // Rounds off a double value by first adding 0.5 to it and then returning the
- // largest integer that is less than or equal to this new value.
- //
- // Parameters:
- // a - the value to be rounded off
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static synchronized double random()
- // Generates a random number between 0.0 and 1.0.
- // Random number generators are often referred to as pseudorandom number
- // generators because the numbers produced tend to repeat themselves after
- // a period of time.
- //
- // Returns:
- // a pseudorandom double between 0.0 and 1.0.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int abs(int a)
- // Returns the absolute integer value of a.
- //
- // Parameters:
- // a - an assigned integer value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static long abs(long a)
- // Returns the absolute long value of a.
- //
- // Parameters:
- // a - an assigned long value.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static float abs(float a)
- // Returns the absolute float value of a.
- //
- // Parameters:
- // a - an assigned float value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double abs(double a)
- // Returns the absolute double value of a.
- //
- // Parameters:
- // a - an assigned double value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int max(int a,
- int b)
- // Takes two int values, a and b, and returns the greater number of the two.
- //
- // Parameters:
- // a - an integer value to be compared
- // b - an integer value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static long max(long a,
- long b)
- // Takes two long values, a and b, and returns the greater number of the two.
- //
- // Parameters:
- // a - a long value to be compared
- // b - a long value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static float max(float a,
- float b)
- // Takes two float values, a and b, and returns the greater number of the two.
- //
- // Parameters:
- // a - a float value to be compared
- // b - a float value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double max(double a,
- double b)
- // Takes two double values, a and b, and returns the greater number of the two.
- //
- // Parameters:
- // a - a double value to be compared
- // b - a double value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int min(int a,
- int b)
- // Takes two integer values, a and b, and returns the smallest number of the two.
- //
- // Parameters:
- // a - an integer value to be compared
- // b - an integer value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static long min(long a,
- long b)
- // Takes two long values, a and b, and returns the smallest number of the two.
- //
- // Parameters:
- // a - a long value to be compared
- // b - a long value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static float min(float a,
- float b)
- // Takes two float values, a and b, and returns the smallest number of the two.
- //
- // Parameters:
- // a - a float value to be compared
- // b - a float value to be compared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static double min(double a,
- double b)
- // Takes two double values, a and b, and returns the smallest number of the two.
- //
- // Parameters:
- // a - a double value to be compared
- // b - a double value to be compared
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NegativeArraySizeException
- DEF_SUPERCLASS
- RuntimeException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an attempt has been made to create an array with negative size.
- DEF_ENDLIST
- DEF_METHOD
- public NegativeArraySizeException()
- // Constructs a NegativeArraySizeException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NegativeArraySizeException(String s)
- // Constructs a NegativeArraySizeException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NoClassDefFoundError
- DEF_SUPERCLASS
- LinkageError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a class could not be found.
- DEF_ENDLIST
- DEF_METHOD
- public NoClassDefFoundError()
- // Constructs a NoClassDefFoundError with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NoClassDefFoundError(String s)
- // Constructs a NoClassDefFoundError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NoSuchElementException
- DEF_SUPERCLASS
- RuntimeException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an enumeration is empty.
- //
- // See Also:
- // Enumeration
- //
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchElementException()
- // Constructs a NoSuchElementException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchElementException(String s)
- // Constructs a NoSuchElementException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NoSuchFieldError
- DEF_SUPERCLASS
- IncompatibleClassChangeError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a particular field could not be found.
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchFieldError()
- // Constructs a NoSuchFieldException without a detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchFieldError(String s)
- // Constructs a NoSuchFieldException with a detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NoSuchMethodError
- DEF_SUPERCLASS
- IncompatibleClassChangeError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a particular method could not be found.
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchMethodError()
- // Constructs a NoSuchMethodException with a detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NoSuchMethodException
- DEF_SUPERCLASS
- Exception
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a particular method could not be found.
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchMethodException()
- // Constructs a NoSuchMethodException without a detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NoSuchMethodException(String s)
- // Constructs a NoSuchMethodException with a detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NullPointerException
- DEF_SUPERCLASS
- RuntimeException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals the illegal use of a null pointer.
- DEF_ENDLIST
- DEF_METHOD
- public NullPointerException()
- // Constructs a NullPointerException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NullPointerException(String s)
- // Constructs a NullPointerException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Number
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Number is an abstract superclass for numeric scalar types.
- // Integer, Long, Float and Double are subclasses of Number that bind
- // to a particular numeric representation.
- //
- // See Also:
- // Integer, Long, Float, Double
- //
- DEF_ENDLIST
- DEF_METHOD
- public Number()
- // Returns the value of the number as an int.
- // This may involve rounding if the number is not already an integer.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract long longValue()
- // Returns the value of the number as a long. This may involve rounding
- // if the number is not already a long.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract float floatValue()
- // Returns the value of the number as a float. This may involve rounding
- // if the number is not already a float.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract double doubleValue()
- // Returns the value of the number as a double. This may involve rounding
- // if the number is not already a double.
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- NumberFormatException
- DEF_SUPERCLASS
- IllegalArgumentException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an invalid number format has occurred.
- //
- // See Also:
- // toString
- //
- DEF_ENDLIST
- DEF_METHOD
- public NumberFormatException()
- // Constructs a NumberFormatException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public NumberFormatException(String s)
- // Constructs a NumberFormatException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Object
- DEF_SUPERCLASS
-
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The root of the Class hierarchy. Every Class in the system
- // has Object as its ultimate parent. Every variable and method
- // defined here is available in every Object.
- //
- // See Also:
- // Class
- //
- DEF_ENDLIST
- DEF_METHOD
- void initialize()
- // Default initialization for all objects. Called after all
- // initial property values are set in the constructor.
- DEF_ENDLIST
- DEF_METHOD
- public Object()
- // Returns the Class of this Object. Java has a runtime
- // representation for classes- a descriptor of type Class-
- // which the method getClass() returns for any Object.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Returns a hashcode for this Object.
- // Each Object in the Java system has a hashcode. The hashcode
- // is a number that is usually different for different Objects.
- // It is used when storing Objects in hashtables.
- // Note: hashcodes can be negative as well as positive.
- //
- // See Also:
- // Hashtable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares two Objects for equality.
- // Returns a boolean that indicates whether this Object is equivalent
- // to the specified Object. This method is used when an Object is stored
- // in a hashtable.
- //
- // Parameters:
- // obj - the Object to compare with
- // Returns:
- // true if these Objects are equal; false otherwise.
- // See Also:
- // Hashtable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected Object clone() throws CloneNotSupportedException
- // Creates a clone of the object. A new instance is allocated and a
- // bitwise clone of the current object is place in the new object.
- //
- // Returns:
- // a clone of this Object.
- // Throws: OutOfMemoryError
- // If there is not enough memory.
- // Throws: CloneNotSupportedException
- // Object explicitly does not
- // want to be cloned, or it does not support the
- // Cloneable interface.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns a String that represents the value of this Object. It is recommended
- // that all subclasses override this method.
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void notify()
- // Notifies a single waiting thread on a change in condition of another thread.
- // The thread effecting the change notifies the waiting thread
- // using notify(). Threads that want to wait for a condition to
- // change before proceeding can call wait().
- // The method notify() can only be called from within a synchronized method.
- //
- // Throws: IllegalMonitorStateException
- // If the current thread
- // is not the owner of the Object's monitor.
- // See Also:
- // wait, notifyAll
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void notifyAll()
- // Notifies all of the threads waiting for a condition to change.
- // Threads that are waiting are generally waiting for another thread to
- // change some condition. Thus, the thread effecting a change that more
- // than one thread is waiting for notifies all the waiting threads using
- // the method notifyAll(). Threads that want to wait for a condition to
- // change before proceeding can call wait().
- // The method notifyAll() can only be called from within a synchronized method.
- //
- // Throws: IllegalMonitorStateException
- // If the current thread
- // is not the owner of the Object's monitor.
- // See Also:
- // wait, notify
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void wait(long timeout) throws InterruptedException
- // Causes a thread to wait until it is notified or the specified timeout
- // expires.
- // The method wait() can only be called from within a synchronized method.
- //
- // Parameters:
- // timeout - the maximum time to wait in milliseconds
- // Throws: IllegalMonitorStateException
- // If the current thread
- // is not the owner of the Object's monitor.
- // Throws: InterruptedException
- // Another thread has interrupted
- // this thread.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void wait(long timeout,
- int nanos) throws InterruptedException
- // More accurate wait.
- // The method wait() can only be called from within a synchronized method.
- //
- // Parameters:
- // timeout - the maximum time to wait in milliseconds
- // nano - additional time, in nanoseconds range 0-999999
- // Throws: IllegalMonitorStateException
- // If the current thread
- // is not the owner of the Object's monitor.
- // Throws: InterruptedException
- // Another thread has interrupted
- // this thread.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public final void wait() throws InterruptedException
- // Causes a thread to wait forever until it is notified.
- // The method wait() can only be called from within a synchronized method
- //
- // Throws: IllegalMonitorStateException
- // If the current thread
- // is not the owner of the Object's monitor.
- // Throws: InterruptedException
- // Another thread has interrupted
- // this thread.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected void finalize() throws Throwable
- // Code to perform when this object is garbage collected.
- // The default is that nothing needs to be performed.
- // Any exception thrown by a finalize method causes the finalization to
- // halt. But otherwise, it is ignored.
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- OutOfMemoryError
- DEF_SUPERCLASS
- VirtualMachineError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that you are out of memory.
- DEF_ENDLIST
- DEF_METHOD
- public OutOfMemoryError()
- // Constructs an OutOfMemoryError with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public OutOfMemoryError(String s)
- // Constructs an OutOfMemoryError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Process
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An instance of class Process is returned by variants of the exec ()
- // method in class System. From the Process instance, it is
- // possible to: get the standin and/or standout of the subprocess,
- // kill the subprocess, wait for it to terminate, and to
- // retrieve the final exit value of the process.
- //
- // Dropping the last reference to a Process instance does not
- // kill the subprocess. There is no requirement that the
- // subprocess execute asynchronously with the existing Java process.
- DEF_ENDLIST
- DEF_METHOD
- public Process()
- // Returns a Stream connected to the input of the child process.
- // This stream is traditionally buffered.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract InputStream getInputStream()
- // Returns a Stream connected to the output of the child process.
- // This stream is traditionally buffered.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract InputStream getErrorStream()
- // Returns the an InputStream connected to the error stream of the child process.
- // This stream is traditionally unbuffered.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int waitFor() throws InterruptedException
- // Waits for the subprocess to complete. If the subprocess has
- // already terminated, the exit value is simply returned. If the
- // subprocess has not yet terminated the calling thread will be
- // blocked until the subprocess exits.
- //
- // Throws: InterruptedException
- // Another thread has interrupted this thread.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int exitValue()
- // Returns the exit value for the subprocess.
- //
- // Throws: IllegalThreadStateException
- // If the subprocess has not yet
- // terminated.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract void destroy()
- // Kills the subprocess.
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- MalformedURLException
- DEF_SUPERCLASS
- IOException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- net
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.net.MalformedURLException
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a malformed URL has occurred.
- DEF_ENDLIST
- DEF_METHOD
- public MalformedURLException()
- // Constructs a MalformedURLException with no detail message. A
- // detail message is a String that describes this particular
- // exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public MalformedURLException(String msg)
- // Constructs a MalformedURLException with the specified detail
- // message. A detail message is a String that describes this
- // particular exception.
- //
- // Parameters:
- // msg - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ProtocolException
- DEF_SUPERCLASS
- IOException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- net
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.net.ProtocolException
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals when connect gets an EPROTO. This exception is specifically
- // caught in class Socket.
- DEF_ENDLIST
- DEF_METHOD
- public ProtocolException(String host)
- // Constructs a new ProtocolException with the specified detail
- // message.
- // A detail message is a String that gives a specific description
- // of this error.
- //
- // Parameters:
- // host - the detail message
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public ProtocolException()
- // Constructs a new ProtocolException with no detail message.
- // A detail message is a String that gives a specific description
- // of this error.
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Observable
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- util
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.util.Observable
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class should be subclassed by observable object, or "data"
- // in the Model-View paradigm. An Observable object may have any
- // number of Observers. Whenever the Observable instance changes, it
- // notifies all of its observers. Notification is done by calling
- // the update() method on all observers.
- DEF_ENDLIST
- DEF_METHOD
- public Observable()
- // Adds an observer to the observer list.
- //
- // Parameters:
- // o - the observer to be added
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void deleteObserver(Observer o)
- // Deletes an observer from the observer list.
- //
- // Parameters:
- // o - the observer to be deleted
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void notifyObservers()
- // Notifies all observers if an observable change occurs.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void notifyObservers(Object arg)
- // Notifies all observers of the specified observable change
- // which occurred.
- //
- // Parameters:
- // arg - what is being notified
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void deleteObservers()
- // Deletes observers from the observer list.
- //
- DEF_ENDLIST
- DEF_METHOD
- protected synchronized void setChanged()
- // Sets a flag to note an observable change.
- //
- DEF_ENDLIST
- DEF_METHOD
- protected synchronized void clearChanged()
- // Clears an observable change.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean hasChanged()
- // Returns a true boolean if an observable change has occurred.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int countObservers()
- // Counts the number of observers.
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Properties
- DEF_SUPERCLASS
- Hashtable
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- util
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.util.Properties
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Persistent properties class. This class is basically a hashtable
- // that can be saved/loaded from a stream. If a property is not found,
- // a property list containing defaults is searched. This allows
- // arbitrary nesting.
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void load(InputStream in) throws IOException
- // Loads properties from an InputStream.
- //
- // Parameters:
- // in - the input stream
- // Throws: IOException
- // Error when reading from input stream.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void save(OutputStream out,
- String header)
- // Save properties to an OutputStream. Use the header as
- // a comment at the top of the file.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getProperty(String key)
- // Gets a property with the specified key. If the key is not
- // found in this property list, tries the defaults. This method
- // returns null if the property is not found.
- //
- // Parameters:
- // key - the hashtable key
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getProperty(String key,
- String defaultValue)
- // Gets a property with the specified key and default. If the
- // key is not found in this property list, tries the defaults.
- // This method returns defaultValue if the property is not found.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Enumeration propertyNames()
- // Enumerates all the keys.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void list(PrintStream out)
- // List properties, for debugging
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Random
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- util
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.util.Random
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A Random class generates a stream of pseudo-random numbers.
- // To create a new random number generator, use one of the following methods:
- //
- // new Random()
- // new Random(long seed)
- //
- // The form new Random() initializes the generator
- // to a value based on the current time. The form
- // new Random(long seed) seeds the random number generator with
- // a specific initial value; use this if an application requires a repeatable
- // stream of pseudo-random numbers.
- // The random number generator uses a 48-bit seed, which is modified using
- // a linear congruential formula. See Donald Knuth, The Art of Computer
- // Programming, Volume 2, Section 3.2.1.
- // The generator's seed can be reset with the following method:
- //
- // setSeed(long seed)
- //
- // To create a pseudo-random number, use one of the following functions:
- //
- // nextInt()
- // nextLong()
- // nextFloat()
- // nextDouble()
- // nextGaussian()
- //
- //
- // See Also:
- // random
- //
- DEF_ENDLIST
- DEF_METHOD
- public Random()
- // Creates a new random number generator. Its seed will be
- // initialized to a value based on the current time.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Random(long seed)
- // Creates a new random number generator using a single
- // long seed.
- //
- // Parameters:
- // seed - the initial seed
- // See Also:
- // setSeed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void setSeed(long seed)
- // Sets the seed of the random number generator using a single
- // long seed.
- //
- // Parameters:
- // seed - the initial seed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int nextInt()
- // Generates a pseudorandom uniformally distributed
- // int value.
- //
- // Returns:
- // an integer value.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public long nextLong()
- // Generate a pseudorandom uniformally distributed long value.
- //
- // Returns:
- // A long integer value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public float nextFloat()
- // Generates a pseudorandom uniformally distributed
- // float value between 0.0 and 1.0.
- //
- // Returns:
- // a float between 0.0 and 1.0 .
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public double nextDouble()
- // Generates a pseudorandom uniformally distributed
- // double value between 0.0 and 1.0.
- //
- // Returns:
- // a float between 0.0 and 1.0 .
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized double nextGaussian()
- // Generates a pseudorandom Gaussian distributed
- // double value with mean 0.0 and standard
- // deviation 1.0.
- //
- // Returns:
- // a Gaussian distributed double.
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
-