001: /*
002: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/utils/image/ImageComponent2DURL.java,v 1.1 2005/04/20 21:05:02 paulby Exp $
003: *
004: * Sun Public License Notice
005: *
006: * The contents of this file are subject to the Sun Public License Version
007: * 1.0 (the "License"). You may not use this file except in compliance with
008: * the License. A copy of the License is available at http://www.sun.com/
009: *
010: * The Original Code is Java 3D(tm) Fly Through.
011: * The Initial Developer of the Original Code is Paul Byrne.
012: * Portions created by Paul Byrne are Copyright (C) 2002.
013: * All Rights Reserved.
014: *
015: * Contributor(s): Paul Byrne.
016: *
017: **/
018: package org.jdesktop.j3dfly.utils.image;
019:
020: /**
021: *
022: * @author paulby
023: * @version
024: */
025: public class ImageComponent2DURL extends
026: javax.media.j3d.ImageComponent2D {
027:
028: private java.net.URL url = null;
029:
030: public ImageComponent2DURL(int format,
031: java.awt.image.BufferedImage image) {
032: super (format, image);
033: }
034:
035: public ImageComponent2DURL(int format,
036: java.awt.image.BufferedImage image, java.net.URL url) {
037: super (format, image);
038: this .url = url;
039: }
040:
041: public ImageComponent2DURL(int format,
042: java.awt.image.BufferedImage image, boolean byReference,
043: boolean yUp) {
044: super (format, image, byReference, yUp);
045: }
046:
047: public ImageComponent2DURL(int format,
048: java.awt.image.BufferedImage image, boolean byReference,
049: boolean yUp, java.net.URL url) {
050: super (format, image, byReference, yUp);
051: this .url = url;
052: }
053:
054: public ImageComponent2DURL(int format, int width, int height) {
055: super (format, width, height);
056: }
057:
058: public ImageComponent2DURL(int format, int width, int height,
059: boolean byReference, boolean yUp) {
060: super (format, width, height, byReference, yUp);
061: }
062:
063: public ImageComponent2DURL(int format,
064: java.awt.image.RenderedImage image) {
065: super (format, image);
066: }
067:
068: public ImageComponent2DURL(int format,
069: java.awt.image.RenderedImage image, java.net.URL url) {
070: super (format, image);
071: this .url = url;
072: }
073:
074: public ImageComponent2DURL(int format,
075: java.awt.image.RenderedImage image, boolean byReference,
076: boolean yUp) {
077: super (format, image, byReference, yUp);
078: }
079:
080: public ImageComponent2DURL(int format,
081: java.awt.image.RenderedImage image, boolean byReference,
082: boolean yUp, java.net.URL url) {
083: super (format, image, byReference, yUp);
084: this .url = url;
085: }
086:
087: /**
088: * Set the URL for this image component
089: *
090: * @param url The URL for the image component
091: */
092: public void setURL(java.net.URL url) {
093: this .url = url;
094: }
095:
096: /**
097: * Get the URL for this image component
098: *
099: * @return TheURL for this image component
100: */
101: public java.net.URL getURL() {
102: return url;
103: }
104: }
|