Added by Johann Sorel, last edited by Johann Sorel on Oct 05, 2007  (view change)

Labels

 
(None)

JStrokePanel

This panel can be used for creating SLD editor panels.
It handle most of the possibilities of the SLD Stroke.

It's also a bean, so you can add it in the Swing Palette of NetBeans Matisse WYSIWYG for example.

How to use it ?

JStrokePanel guiStroke = new JStrokePanel();

//apply the stroke
guiStroke.parseStroke(sym.getStroke());

//get back the new stroke 
Stroke stroke = guiStroke.getStroke();