use of com.sldeditor.ui.legend.option.LegendOptionData in project sldeditor by robward-scisys.
the class LegendOptionDataTest method testLabelFontColour.
/**
* Test method for {@link com.sldeditor.ui.legend.option.LegendOptionData#getLabelFontColour()}.
* Test method for {@link com.sldeditor.ui.legend.option.LegendOptionData#setLabelFontColour(java.awt.Color)}.
*/
@Test
public void testLabelFontColour() {
LegendOptionData data = new LegendOptionData();
Color expectedColor = Color.CYAN;
data.setLabelFontColour(expectedColor);
assertEquals(expectedColor, data.getLabelFontColour());
}
use of com.sldeditor.ui.legend.option.LegendOptionData in project sldeditor by robward-scisys.
the class LegendOptionDataTest method testFontAntiAliasing.
/**
* Test method for {@link com.sldeditor.ui.legend.option.LegendOptionData#isFontAntiAliasing()}.
* Test method for {@link com.sldeditor.ui.legend.option.LegendOptionData#setFontAntiAliasing(boolean)}.
*/
@Test
public void testFontAntiAliasing() {
LegendOptionData data = new LegendOptionData();
data.setFontAntiAliasing(true);
assertTrue(data.isFontAntiAliasing());
data.setFontAntiAliasing(false);
assertFalse(data.isFontAntiAliasing());
}
use of com.sldeditor.ui.legend.option.LegendOptionData in project sldeditor by robward-scisys.
the class LegendOptionDataTest method testImageWidth.
/**
* Test method for {@link com.sldeditor.ui.legend.option.LegendOptionData#setImageWidth(int)}.
* Test method for {@link com.sldeditor.ui.legend.option.LegendOptionData#getImageWidth()}.
*/
@Test
public void testImageWidth() {
LegendOptionData data = new LegendOptionData();
int imageWidth = 42;
data.setImageWidth(imageWidth);
assertEquals(imageWidth, data.getImageWidth());
}
use of com.sldeditor.ui.legend.option.LegendOptionData 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