Search in sources :

Example 1 with SLDTreeLeafPoint

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

the class SLDTreeLeafPointTest method testCreateStroke.

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

Example 2 with SLDTreeLeafPoint

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

the class SLDTreeLeafPointTest method testGetStroke.

/**
 * Test method for
 * {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#getStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testGetStroke() {
    SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
    assertNull(leaf.getStroke(null));
    assertNull(leaf.getStroke(DefaultSymbols.createDefaultPointSymbolizer()));
    PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
    assertNull(leaf.getStroke(pointSymbolizer));
}
Also used : PointSymbolizer(org.geotools.styling.PointSymbolizer) SLDTreeLeafPoint(com.sldeditor.common.tree.leaf.SLDTreeLeafPoint) Test(org.junit.Test)

Example 3 with SLDTreeLeafPoint

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

the class SLDTreeLeafPointTest method testHasFill.

/**
 * Test method for
 * {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#hasFill(org.opengis.style.Symbolizer)}.
 */
@Test
public void testHasFill() {
    SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
    assertFalse(leaf.hasFill(null));
    assertFalse(leaf.hasFill(DefaultSymbols.createDefaultPolygonSymbolizer()));
    PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
    assertTrue(leaf.hasFill(pointSymbolizer));
    pointSymbolizer.setGraphic(null);
    assertFalse(leaf.hasFill(pointSymbolizer));
}
Also used : PointSymbolizer(org.geotools.styling.PointSymbolizer) SLDTreeLeafPoint(com.sldeditor.common.tree.leaf.SLDTreeLeafPoint) Test(org.junit.Test)

Example 4 with SLDTreeLeafPoint

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

the class SLDTreeLeafPointTest method testHasStroke.

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

Example 5 with SLDTreeLeafPoint

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

the class SLDTreeLeafPointTest method testRemoveStroke.

/**
 * Test method for
 * {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPoint#removeStroke(org.opengis.style.Symbolizer)}.
 */
@Test
public void testRemoveStroke() {
    SLDTreeLeafPoint leaf = new SLDTreeLeafPoint();
    PointSymbolizer pointSymbolizer = DefaultSymbols.createDefaultPointSymbolizer();
    leaf.removeStroke(pointSymbolizer);
// Does nothing
}
Also used : PointSymbolizer(org.geotools.styling.PointSymbolizer) SLDTreeLeafPoint(com.sldeditor.common.tree.leaf.SLDTreeLeafPoint) Test(org.junit.Test)

Aggregations

SLDTreeLeafPoint (com.sldeditor.common.tree.leaf.SLDTreeLeafPoint)9 Test (org.junit.Test)9 PointSymbolizer (org.geotools.styling.PointSymbolizer)8 Fill (org.geotools.styling.Fill)1 Graphic (org.geotools.styling.Graphic)1 MarkImpl (org.geotools.styling.MarkImpl)1 GraphicalSymbol (org.opengis.style.GraphicalSymbol)1