public class

PeekMetrics

extends Object
java.lang.Object
   ↳ sun.print.PeekMetrics

Class Overview

Maintain information about the type of drawing performed by a printing application.

Summary

Public Constructors
PeekMetrics()
Public Methods
void clear(Graphics2D g)
The application is performing a clearRect so record the needed information.
void draw(Graphics2D g)
The application is performing a draw so record the needed information.
void drawImage(Graphics2D g, RenderedImage image)
The application is drawing the passed in image.
void drawImage(Graphics2D g, Image image)
The application is drawing the passed in image.
void drawImage(Graphics2D g, RenderableImage image)
The application is drawing the passed in image.
void drawText(Graphics2D g, TextLayout textLayout)
The application is drawing text defined by TextLayout so record the needed information.
void drawText(Graphics2D g)
The application is drawing text so record the needed information.
void fill(Graphics2D g)
The application is performing a fill so record the needed information.
boolean hasCompositing()
Return true if the application has done any drawing with an alpha other than 1.0.
boolean hasImages()
Return true if the application has drawn any images.
boolean hasNonSolidColors()
Return true if the application has done any drawing with a Paint that is not an instance of Color
boolean hasText()
Return true if the application has drawn any text.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PeekMetrics ()

Public Methods

public void clear (Graphics2D g)

The application is performing a clearRect so record the needed information.

public void draw (Graphics2D g)

The application is performing a draw so record the needed information.

public void drawImage (Graphics2D g, RenderedImage image)

The application is drawing the passed in image.

public void drawImage (Graphics2D g, Image image)

The application is drawing the passed in image.

public void drawImage (Graphics2D g, RenderableImage image)

The application is drawing the passed in image.

public void drawText (Graphics2D g, TextLayout textLayout)

The application is drawing text defined by TextLayout so record the needed information.

public void drawText (Graphics2D g)

The application is drawing text so record the needed information.

public void fill (Graphics2D g)

The application is performing a fill so record the needed information.

public boolean hasCompositing ()

Return true if the application has done any drawing with an alpha other than 1.0.

public boolean hasImages ()

Return true if the application has drawn any images.

public boolean hasNonSolidColors ()

Return true if the application has done any drawing with a Paint that is not an instance of Color

public boolean hasText ()

Return true if the application has drawn any text.