Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Reopened: (UDIG-1564) Blackboard is missing label painter.

     [ http://jira.codehaus.org/browse/UDIG-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jody Garnett reopened UDIG-1564:
--------------------------------


> Blackboard is missing label painter.
> ------------------------------------
>
>                 Key: UDIG-1564
>                 URL: http://jira.codehaus.org/browse/UDIG-1564
>             Project: uDIG
>          Issue Type: Bug
>          Components: application
>    Affects Versions: UDIG 1.2.M6
>            Reporter: Matthias Lendholt
>            Assignee: Jody Garnett
>            Priority: Minor
>             Fix For: UDIG 1.2.M7
>
>
> The map's blackboard doesn't contain a label painter. Instead you have to add one manually to enable TextSymbolizer rendering for SLD styles. 
> my work around (inserted directly behind map creation): 
> final String LABEL_PAINTER_KEY = "LABEL_PAINTER";
> ILabelPainter lp = (ILabelPainter) map.getBlackboard().get(LABEL_PAINTER_KEY);
> if (lp == null){
>   lp = new UDIGLabelCache();
>   map.getBlackboard().put(LABEL_PAINTER_KEY,lp);
> }
> This was not necessary in uDig 1.1.x. (I haven't tested it in any other 1.2.x version). 

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

        


Back to the top