[
https://issues.apache.org/jira/browse/PIVOT-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902906#action_12902906
]
Sandro Martini commented on PIVOT-511:
--------------------------------------
Verify also in the appletviewer (of the jdk) if this happens (I don't remember
if it has a Print feature), mainly to simplify development tests.
Suggestions for the fix:
- in Pivot 1.4 was working, and since Pivot 1.5 no more.
- TerraLabelSkin extends LabelSkin , so look at its paint() method
- try to disable double buffering when the graphics is for a printer (but only
here ?). So, in detail:
see if you can detect whether or not the graphics is from a printer (in this
case the graphics object may be an instance of java.awt.print.PrintGraphics),
and so we can try disabling double-buffering or disabling the scale factor
Others (less probable):
- check when the Java Plugin prints, if a dedicated method could be used to
have a right print of text
- take a look at layout method in LabelSkin (It might also have something to do
with the transform. here or in another method)
- or maybe an alpha channel of the text drawn
> Print doesn't work on Labels
> ----------------------------
>
> Key: PIVOT-511
> URL: https://issues.apache.org/jira/browse/PIVOT-511
> Project: Pivot
> Issue Type: Bug
> Components: wtk, wtk-terra
> Reporter: Sandro Martini
> Assignee: Sandro Martini
> Fix For: 2.0
>
> Attachments: Kitchen Sink _ Apache Pivot 1.4.pdf, Kitchen Sink _
> Apache Pivot 1.5.pdf, Stock Tracker _ Apache Pivot 1.4.pdf, Stock Tracker _
> Apache Pivot 1.5.pdf
>
>
> From a Browser, Printing a page, for some reason I have all Labels not in
> output (see attached pdf, but the same happens with a print to paper).
> With 1.4 it was not so good but labels were present, while in current 1.5
> pre-release it seems that all is present but not labels.
> This should be a great fix to have in the final 1.5
> This happens on Win XP and Windows 7, both from latest Firefox and IE 8, and
> on all Pivot Applets.
> Sandro
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.