edu.berkeley.guir.lib.web
Class WebLib
java.lang.Object
|
+--edu.berkeley.guir.lib.web.WebLib
- public class WebLib
- extends Object
Utilities for manipulating web pages and such.
This software is distributed under the
Berkeley Software License.
Revisions: - GUIRLib-v1.3-1.0.0, Jul 10 2000, JH
Created class
- GUIRLib-v1.4-1.0.0, Aug 31 2000, JH
Touched for GUIRLib release
- GUIRLib-v1.4-1.0.1, Sep 01 2000, JH
- Modified initInternalWebBrowserFrame() to minimize the web
browser frame by default
- Changed the image type to INDEXED
- Since:
- JDK 1.3
- Version:
- GUIRLib-v1.4-1.0.0, Aug 31 2000
- Author:
- (jasonh@cs.berkeley.edu)
Method Summary |
static void |
main(String[] argv)
|
static Image |
toImage(String strUrl)
|
static Image |
toImage(String strUrl,
int bwidth,
int bheight,
int imgwidth,
int imgheight)
|
static Image |
toImage(URL url)
Create an image out of the specified URL, defaulting to 600x800 for
the browser size, and defaulting to 150x200 for the image size. |
static Image |
toImage(URL url,
int bwidth,
int bheight,
int imgwidth,
int imgheight)
Create an image out of the specified URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toImage
public static Image toImage(String strUrl)
throws MalformedURLException
toImage
public static Image toImage(String strUrl,
int bwidth,
int bheight,
int imgwidth,
int imgheight)
throws MalformedURLException
toImage
public static Image toImage(URL url)
- Create an image out of the specified URL, defaulting to 600x800 for
the browser size, and defaulting to 150x200 for the image size.
toImage
public static Image toImage(URL url,
int bwidth,
int bheight,
int imgwidth,
int imgheight)
- Create an image out of the specified URL.
When you call this method, you'll see the web browser briefly appear,
just because I haven't figured out how to render an image without the
web browser appearing.
- Parameters:
url
- is the URL address of the web page to load.bwidth
- is the browser width.bheight
- is the browser height.imgwidth
- is the image width.imgheight
- is the image height.
main
public static void main(String[] argv)
throws Exception