public class

PrintColorUIResource

extends ColorUIResource
java.lang.Object
   ↳ java.awt.Color
     ↳ javax.swing.plaf.ColorUIResource
       ↳ sun.swing.PrintColorUIResource

Class Overview

A subclass of ColorUIResource that wraps an alternate color for use during printing. Useful to replace color values that may look poor in printed output.

Summary

[Expand]
Inherited Constants
From interface java.awt.Transparency
[Expand]
Inherited Fields
From class java.awt.Color
Public Constructors
PrintColorUIResource(int rgb, Color printColor)
Construct an instance for the given RGB value and alternate color to use during printing.
Public Methods
Color getPrintColor()
Return the color to use during printing.
[Expand]
Inherited Methods
From class java.awt.Color
From class java.lang.Object
From interface java.awt.Paint
From interface java.awt.Transparency

Public Constructors

public PrintColorUIResource (int rgb, Color printColor)

Construct an instance for the given RGB value and alternate color to use during printing.

Parameters
rgb the color rgb value
printColor the alternate color for printing

Public Methods

public Color getPrintColor ()

Return the color to use during printing. If no alternate color was specified on construction, this method will return this.

Returns
  • the color to use during printing