Search in sources :

Example 6 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testSetParentPanel.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#setParentPanel(com.sldeditor.ui.iface.UpdateSymbolInterface)}.
 */
@Test
public void testSetParentPanel() {
    class TestUpdateSymbolInterface implements UpdateSymbolInterface {

        public boolean called = false;

        @Override
        public void dataChanged(FieldIdEnum changedField) {
            called = true;
        }
    }
    TestUpdateSymbolInterface receiver = new TestUpdateSymbolInterface();
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    testObj.setParentPanel(receiver);
    testObj.dataChanged(FieldIdEnum.ANGLE);
    assertTrue(receiver.called);
    assertEquals(receiver, testObj.getParentPanel());
}
Also used : UpdateSymbolInterface(com.sldeditor.ui.iface.UpdateSymbolInterface) FieldIdEnum(com.sldeditor.common.xml.ui.FieldIdEnum) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 7 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testUpdateSymbolRasterSymbolizer.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#updateSymbol(org.geotools.styling.RasterSymbolizer)}.
 */
@Test
public void testUpdateSymbolRasterSymbolizer() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    RasterSymbolizer symbolizer = null;
    testObj.updateSymbol(symbolizer);
}
Also used : RasterSymbolizer(org.geotools.styling.RasterSymbolizer) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 8 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testGetFieldDataManager.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#getFieldDataManager()}.
 */
@Test
public void testGetFieldDataManager() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    assertNotNull(testObj.getFieldDataManager());
}
Also used : VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 9 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testPopulateSelectedSymbol.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#populate(com.sldeditor.common.data.SelectedSymbol)}.
 */
@Test
public void testPopulateSelectedSymbol() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    SelectedSymbol selectedSymbol = null;
    testObj.populate(selectedSymbol);
}
Also used : SelectedSymbol(com.sldeditor.common.data.SelectedSymbol) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Example 10 with VOGeoServerTextSymbolizer2

use of com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2 in project sldeditor by robward-scisys.

the class VOGeoServerTextSymbolizer2Test method testUpdateSymbolFeatureTypeStyle.

/**
 * Test method for {@link
 * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2#updateSymbol(org.geotools.styling.FeatureTypeStyle)}.
 */
@Test
public void testUpdateSymbolFeatureTypeStyle() {
    TextSymbolizerDetails panel = new TextSymbolizerDetails();
    VOGeoServerTextSymbolizer2 testObj = new VOGeoServerTextSymbolizer2(panel.getClass());
    FeatureTypeStyle style = null;
    testObj.updateSymbol(style);
}
Also used : FeatureTypeStyle(org.geotools.styling.FeatureTypeStyle) VOGeoServerTextSymbolizer2(com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2) TextSymbolizerDetails(com.sldeditor.ui.detail.TextSymbolizerDetails) Test(org.junit.jupiter.api.Test)

Aggregations

TextSymbolizerDetails (com.sldeditor.ui.detail.TextSymbolizerDetails)22 VOGeoServerTextSymbolizer2 (com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerTextSymbolizer2)22 Test (org.junit.jupiter.api.Test)22 PolygonSymbolizer (org.geotools.styling.PolygonSymbolizer)3 RasterSymbolizer (org.geotools.styling.RasterSymbolizer)3 VendorOptionPresent (com.sldeditor.common.vendoroption.minversion.VendorOptionPresent)2 FeatureTypeStyle (org.geotools.styling.FeatureTypeStyle)2 SelectedChannelType (org.geotools.styling.SelectedChannelType)2 TextSymbolizer (org.geotools.styling.TextSymbolizer)2 TextSymbolizer2 (org.geotools.styling.TextSymbolizer2)2 FilterFactory (org.opengis.filter.FilterFactory)2 SelectedSymbol (com.sldeditor.common.data.SelectedSymbol)1 FieldIdEnum (com.sldeditor.common.xml.ui.FieldIdEnum)1 UpdateSymbolInterface (com.sldeditor.ui.iface.UpdateSymbolInterface)1 File (java.io.File)1 MalformedURLException (java.net.MalformedURLException)1 ArrayList (java.util.ArrayList)1 Graphic (org.geotools.styling.Graphic)1 OtherText (org.geotools.styling.OtherText)1 OtherTextImpl (org.geotools.styling.OtherTextImpl)1