~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBox.java

  • Committer: Hans Joachim Desserud
  • Date: 2015-11-11 18:22:53 UTC
  • mfrom: (9.1.5 sid)
  • Revision ID: hans_joachim_desserud-20151111182253-zwi0frfm97j0wddn
  * Merge from Debian unstable.  Remaining changes:
    - d/control: Drop dependencies required for unit testing as they
      include libmockito-java which would pull maven into main, disable unit
      test execution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: DSCCommentBoundingBox.java 750418 2009-03-05 11:03:54Z vhennebert $ */
 
18
/* $Id: DSCCommentBoundingBox.java 1681698 2015-05-26 07:49:35Z ssteiner $ */
19
19
 
20
20
package org.apache.xmlgraphics.ps.dsc.events;
21
21
 
90
90
    public void generate(PSGenerator gen) throws IOException {
91
91
        if (getBoundingBox() != null) {
92
92
            gen.writeDSCComment(getName(), new Object[] {
93
 
                new Integer((int)Math.floor(this.bbox.getX())),
94
 
                new Integer((int)Math.floor(this.bbox.getY())),
95
 
                new Integer((int)Math.ceil(this.bbox.getX() + this.bbox.getWidth())),
96
 
                new Integer((int)Math.ceil(this.bbox.getY() + this.bbox.getHeight()))});
 
93
                    (int) Math.floor(this.bbox.getX()),
 
94
                    (int) Math.floor(this.bbox.getY()),
 
95
                    (int) Math.ceil(this.bbox.getX() + this.bbox.getWidth()),
 
96
                    (int) Math.ceil(this.bbox.getY() + this.bbox.getHeight())});
97
97
        } else {
98
98
            gen.writeDSCComment(getName(), DSCConstants.ATEND);
99
99
        }