< prev index next >
src/java.desktop/share/classes/sun/print/PeekMetrics.java
Print this page
*** 50,62 ****
private boolean mHasText;
private boolean mHasImages;
/**
! * Return <code>true</code> if the application
* has done any drawing with a Paint that
! * is not an instance of <code>Color</code>
*/
public boolean hasNonSolidColors() {
return mHasNonSolidColors;
}
--- 50,62 ----
private boolean mHasText;
private boolean mHasImages;
/**
! * Return {@code true} if the application
* has done any drawing with a Paint that
! * is not an instance of {@code Color}
*/
public boolean hasNonSolidColors() {
return mHasNonSolidColors;
}
*** 117,127 ****
checkDrawingMode(g);
}
/**
* The application is drawing text
! * defined by <code>TextLayout</code>
* so record the needed information.
*/
public void drawText(Graphics2D g, TextLayout textLayout) {
mHasText = true;
checkDrawingMode(g);
--- 117,127 ----
checkDrawingMode(g);
}
/**
* The application is drawing text
! * defined by {@code TextLayout}
* so record the needed information.
*/
public void drawText(Graphics2D g, TextLayout textLayout) {
mHasText = true;
checkDrawingMode(g);
*** 162,172 ****
}
/**
* Record information about drawing done
! * with the supplied <code>Paint</code>.
*/
private void checkPaint(Paint paint) {
if (paint instanceof Color) {
if (((Color)paint).getAlpha() < 255) {
--- 162,172 ----
}
/**
* Record information about drawing done
! * with the supplied {@code Paint}.
*/
private void checkPaint(Paint paint) {
if (paint instanceof Color) {
if (((Color)paint).getAlpha() < 255) {
*** 177,187 ****
}
}
/**
* Record information about drawing done
! * with the supplied <code>Composite</code>.
*/
private void checkAlpha(Composite composite) {
if (composite instanceof AlphaComposite) {
AlphaComposite alphaComposite = (AlphaComposite) composite;
--- 177,187 ----
}
}
/**
* Record information about drawing done
! * with the supplied {@code Composite}.
*/
private void checkAlpha(Composite composite) {
if (composite instanceof AlphaComposite) {
AlphaComposite alphaComposite = (AlphaComposite) composite;
< prev index next >