Search in sources :

Example 6 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testRemoveStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#removeStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testRemoveStroke() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    LineSymbolizer lineSymbolizer = DefaultSymbols.createDefaultLineSymbolizer();
    leaf.removeStroke(lineSymbolizer);
    assertNull(lineSymbolizer.getStroke());
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) LineSymbolizer(org.geotools.styling.LineSymbolizer) Test(org.junit.Test)

Example 7 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testCreateFill.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#createFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testCreateFill() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    leaf.createFill(null);
// Does nothing
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Test(org.junit.Test)

Example 8 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testRemoveFill.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#removeFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testRemoveFill() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    leaf.removeFill(null);
// Does nothing
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) Test(org.junit.Test)

Example 9 with SLDTreeLeafLine

use of com.sldeditor.common.tree.leaf.SLDTreeLeafLine in project sldeditor by robward-scisys.

the class SLDTreeLeafLineTest method testCreateStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafLine#createStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testCreateStroke() {
    SLDTreeLeafLine leaf = new SLDTreeLeafLine();
    LineSymbolizer lineSymbolizer = DefaultSymbols.createDefaultLineSymbolizer();
    lineSymbolizer.setStroke(null);
    leaf.createStroke(lineSymbolizer);
    assertTrue(lineSymbolizer.getStroke() != null);
}
Also used : SLDTreeLeafLine(com.sldeditor.common.tree.leaf.SLDTreeLeafLine) LineSymbolizer(org.geotools.styling.LineSymbolizer) Test(org.junit.Test)

Aggregations

SLDTreeLeafLine (com.sldeditor.common.tree.leaf.SLDTreeLeafLine)9 Test (org.junit.Test)9 LineSymbolizer (org.geotools.styling.LineSymbolizer)3 PolygonSymbolizer (org.geotools.styling.PolygonSymbolizer)1 Stroke (org.geotools.styling.Stroke)1