Search in sources :

Example 21 with SLDTreeTools

use of com.sldeditor.ui.tree.SLDTreeTools in project sldeditor by robward-scisys.

the class SingleSymbolUI method getSymbolTree.

/**
 * Gets the symbol tree.
 *
 * @return the symbol tree
 */
public SLDTree getSymbolTree() {
    if (sldTree == null) {
        SLDTreeTools sldTreeTools = new SLDTreeTools();
        sldTree = SLDTreeManager.getInstance().createSLDTree(getRendererList(), sldTreeTools);
        // Register for updates to the SLD tree structure
        SelectedSymbol.getInstance().setTreeUpdateListener(sldTree);
        // Register for notifications when user clicks on the SLD tree
        sldTree.addSymbolSelectedListener((SymbolizerSelectedInterface) getSymbolizerDetailsPanel());
    }
    return sldTree;
}
Also used : SLDTreeTools(com.sldeditor.ui.tree.SLDTreeTools)

Aggregations

SLDTreeTools (com.sldeditor.ui.tree.SLDTreeTools)21 Test (org.junit.jupiter.api.Test)20 StyledLayerDescriptor (org.geotools.styling.StyledLayerDescriptor)17 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)16 StyleFactoryImpl (org.geotools.styling.StyleFactoryImpl)16 TreeSelectionData (com.sldeditor.TreeSelectionData)6 RenderSymbolInterface (com.sldeditor.datasource.RenderSymbolInterface)3 ArrayList (java.util.ArrayList)2 FeatureTypeStyleImpl (org.geotools.styling.FeatureTypeStyleImpl)2 SLDData (com.sldeditor.common.data.SLDData)1 SymbolizerDetailsPanel (com.sldeditor.ui.detail.SymbolizerDetailsPanel)1 PopulateDetailsInterface (com.sldeditor.ui.iface.PopulateDetailsInterface)1 SLDTree (com.sldeditor.ui.tree.SLDTree)1 File (java.io.File)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 NamedLayerImpl (org.geotools.styling.NamedLayerImpl)1 RuleImpl (org.geotools.styling.RuleImpl)1 StyleImpl (org.geotools.styling.StyleImpl)1