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;
}
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);
}
Aggregations