[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2593) Cap and Join not working correctly in UIStroke

Tim Blommerde (JIRA) jira-events at lists.jboss.org
Thu Feb 7 03:20:03 EST 2008


Cap and Join not working correctly in UIStroke
----------------------------------------------

                 Key: JBSEAM-2593
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2593
             Project: JBoss Seam
          Issue Type: Bug
          Components: PDF
    Affects Versions: 2.0.1.GA, 2.0.1.CR2, 2.0.1.CR1, 2.0.0.GA
            Reporter: Tim Blommerde


There is a small copy-and-paste error in the 'joinValue(String join)' method of the UIStroke class (org.jboss.seam.pdf.ui.UIStroke). Because of this error, setting the cap value of a Stroke to something else then 'round' causes a Runtime Exception and setting a join value does not work.

Below I've added a fix for the joinMethod:

    public int joinValue(String join) {
        if (join == null || join.equalsIgnoreCase("miter")) {
            return BasicStroke.JOIN_MITER;
        } else if (join.equalsIgnoreCase("round")) {
            return BasicStroke.JOIN_ROUND;
        } else if (join.equalsIgnoreCase("bevel")) {
            return BasicStroke.JOIN_BEVEL;
        }
        throw new RuntimeException("invalid join value: " + join);
    } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list