home *** CD-ROM | disk | FTP | other *** search
/ Inside Dreamweaver 4 / IDW4.ISO / pc / Projects / ch20 / java / quote / src / TextQuote.java < prev    next >
Encoding:
Java Source  |  1998-08-28  |  1.8 KB  |  49 lines

  1. /*
  2. * Copyright (c) 1994-1998 Sun Microsystems, Inc. All Rights Reserved.
  3. *
  4. * Permission to use, copy, modify, and distribute this software and its
  5. * documentation for NON-COMMERCIAL or COMMERCIAL purposes and without fee is
  6. * hereby granted. Please refer to the file
  7. * http://java.sun.com/nav/business/trademark_guidelines.html for further
  8. * important copyright and trademark information and to
  9. * http://java.sun.com/nav/business/index.html for further important licensing
  10. * information for the Java (tm) Technology.
  11. * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  12. * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  13. * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
  14. * NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
  15. * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR
  16. * ITS DERIVATIVES.
  17. * THIS SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE OR RESALE AS ON-LINE
  18. * CONTROL EQUIPMENT IN HAZARDOUS ENVIRONMENTS REQUIRING FAIL-SAFE PERFORMANCE,
  19. * SUCH AS IN THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR
  20. * COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, DIRECT LIFE SUPPORT MACHINES, OR
  21. * WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE SOFTWARE COULD LEAD DIRECTLY TO
  22. * DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH
  23. * RISK ACTIVITIES"). SUN SPECIFICALLY DISCLAIMS ANY EXPRESS OR IMPLIED
  24. * WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES.
  25. */
  26.  
  27. import java.awt.*;
  28. import java.util.*;
  29.  
  30. public class TextQuote extends Object
  31. {
  32.    public String[] text;
  33.    public String company;
  34.    public long length;
  35.    public Color fgColor;
  36.    public Color bgColor;
  37.  
  38.    TextQuote(String[] t, String c, int len, Color fg, Color bg)
  39.    {
  40.       text = t;
  41.       company = c;
  42.       length = len * 1000;
  43.       fgColor = fg;
  44.       bgColor = bg;
  45.    }
  46. }
  47.