Hello all !

I am trying to implement a font color feature in "JFontChooser" 
( http://svn.osgeo.org/geotools/tags/8.0-M4/modules/unsupported/swing/src/main/java/org/geotools/swing/styling/JFontChooser.java )

My main purpose is to change the color of Labels of fields on the layer using 
JSimpleStyleDialog(http://svn.osgeo.org/geotools/tags/8.0-M4/modules/unsupported/swing/src/main/java/org/geotools/swing/styling/JSimpleStyleDialog.java).

In the source code of JFontChooser, the following lines are creating new font 

    private void createSelectedFont() {
        selectedFont = sf.createFont(
                ff.literal(families[familyIndex]),
                ff.literal(styles[styleIndex]),
                ff.literal(weights[weightIndex]),
                ff.literal(String.valueOf(sizes[sizeIndex])));
        
    } 

using which, I obviously cannot modify the font color.. because color is not 
property of org.geotools.styling.Font.

Is there any way to achieve this goal ?
As I said, basically I need to enable the user to choose font color of layer. 
Because sometimes, it is required to have some lighter coor than black.

Thanks !

________________________________
Best regards,Rakshit Majithiya
Techno geek, Web Developer,Code Lover
email : [email protected]
blog : http://thetechtime.com
skype : rakshit.majithiya
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to