Search in sources :

Example 6 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testHasStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafText#hasStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testHasStroke() {
    SLDTreeLeafText leaf = new SLDTreeLeafText();
    assertFalse(leaf.hasStroke(null));
    assertFalse(leaf.hasStroke(DefaultSymbols.createDefaultPointSymbolizer()));
    assertFalse(leaf.hasStroke(DefaultSymbols.createDefaultTextSymbolizer()));
}
Also used : SLDTreeLeafText(com.sldeditor.common.tree.leaf.SLDTreeLeafText) Test(org.junit.Test)

Example 7 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testCreateStroke.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafText#createStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testCreateStroke() {
    SLDTreeLeafText leaf = new SLDTreeLeafText();
    TextSymbolizer textSymbolizer = DefaultSymbols.createDefaultTextSymbolizer();
    leaf.createStroke(textSymbolizer);
// Does nothing
}
Also used : TextSymbolizer(org.geotools.styling.TextSymbolizer) SLDTreeLeafText(com.sldeditor.common.tree.leaf.SLDTreeLeafText) Test(org.junit.Test)

Example 8 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testRemoveFill.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafText#removeFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testRemoveFill() {
    SLDTreeLeafText leaf = new SLDTreeLeafText();
    TextSymbolizer textSymbolizer = DefaultSymbols.createDefaultTextSymbolizer();
    leaf.removeFill(textSymbolizer);
// Does nothing
}
Also used : TextSymbolizer(org.geotools.styling.TextSymbolizer) SLDTreeLeafText(com.sldeditor.common.tree.leaf.SLDTreeLeafText) Test(org.junit.Test)

Example 9 with SLDTreeLeafText

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

the class SLDTreeLeafTextTest method testCreateFill.

/**
 * Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafText#createFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testCreateFill() {
    SLDTreeLeafText leaf = new SLDTreeLeafText();
    TextSymbolizer textSymbolizer = DefaultSymbols.createDefaultTextSymbolizer();
    leaf.createFill(textSymbolizer);
// Does nothing
}
Also used : TextSymbolizer(org.geotools.styling.TextSymbolizer) SLDTreeLeafText(com.sldeditor.common.tree.leaf.SLDTreeLeafText) Test(org.junit.Test)

Aggregations

SLDTreeLeafText (com.sldeditor.common.tree.leaf.SLDTreeLeafText)9 Test (org.junit.Test)9 TextSymbolizer (org.geotools.styling.TextSymbolizer)4