Search in sources :

Example 1 with LegendOptionPanel

use of com.sldeditor.ui.legend.option.LegendOptionPanel in project sldeditor by robward-scisys.

the class LegendManager method createLegendOptionsPanel.

/**
 * Creates the legend options panel.
 *
 * @param legendPanel the legend panel
 * @return the legend option panel
 */
public LegendOptionPanel createLegendOptionsPanel(LegendPanel legendPanel) {
    if (legendOptionPanel == null) {
        legendOptionPanel = new LegendOptionPanel();
        legendOptionPanel.addListener(this);
        refreshSymbol = legendPanel;
    }
    return legendOptionPanel;
}
Also used : LegendOptionPanel(com.sldeditor.ui.legend.option.LegendOptionPanel)

Example 2 with LegendOptionPanel

use of com.sldeditor.ui.legend.option.LegendOptionPanel in project sldeditor by robward-scisys.

the class LegendOptionPanelTest method testLegendOptionPanel.

/**
 * Test method for {@link com.sldeditor.ui.legend.option.LegendOptionPanel#LegendOptionPanel()}.
 */
@Test
public void testLegendOptionPanel() {
    LegendOptionPanel testObj = new LegendOptionPanel();
    testObj.addListener(new LegendOptionDataUpdateInterface() {

        @Override
        public void updateLegendOptionData(LegendOptionData data) {
        }
    });
    LegendOptionData newOptionData = new LegendOptionData();
    testObj.updateData(newOptionData);
    LegendOptionData actualData = testObj.getData();
    assertEquals(actualData, newOptionData);
}
Also used : LegendOptionDataUpdateInterface(com.sldeditor.ui.legend.option.LegendOptionDataUpdateInterface) LegendOptionPanel(com.sldeditor.ui.legend.option.LegendOptionPanel) LegendOptionData(com.sldeditor.ui.legend.option.LegendOptionData) Test(org.junit.Test)

Aggregations

LegendOptionPanel (com.sldeditor.ui.legend.option.LegendOptionPanel)2 LegendOptionData (com.sldeditor.ui.legend.option.LegendOptionData)1 LegendOptionDataUpdateInterface (com.sldeditor.ui.legend.option.LegendOptionDataUpdateInterface)1 Test (org.junit.Test)1