use of org.geotools.styling.PolygonSymbolizer in project sldeditor by robward-scisys.
the class SLDTreeLeafPolygonTest method testGetStroke.
/**
* Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPolygon#getStroke(org.opengis.style.Symbolizer)}.
*/
@Test
public void testGetStroke() {
SLDTreeLeafPolygon leaf = new SLDTreeLeafPolygon();
assertNull(leaf.getStroke(null));
assertNull(leaf.getStroke(DefaultSymbols.createDefaultPointSymbolizer()));
PolygonSymbolizer polygonSymbolizer = DefaultSymbols.createDefaultPolygonSymbolizer();
assertEquals(polygonSymbolizer.getStroke(), leaf.getStroke(polygonSymbolizer));
}
use of org.geotools.styling.PolygonSymbolizer in project sldeditor by robward-scisys.
the class SLDTreeLeafPolygonTest method testRemoveFill.
/**
* Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPolygon#removeFill(org.opengis.style.Symbolizer)}.
*/
@Test
public void testRemoveFill() {
SLDTreeLeafPolygon leaf = new SLDTreeLeafPolygon();
PolygonSymbolizer polygonSymbolizer = DefaultSymbols.createDefaultPolygonSymbolizer();
leaf.removeFill(polygonSymbolizer);
assertNull(polygonSymbolizer.getFill());
}
use of org.geotools.styling.PolygonSymbolizer in project sldeditor by robward-scisys.
the class SLDTreeLeafPolygonTest method testHasFill.
/**
* Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPolygon#hasFill(org.opengis.style.Symbolizer)}.
*/
@Test
public void testHasFill() {
SLDTreeLeafPolygon leaf = new SLDTreeLeafPolygon();
assertFalse(leaf.hasFill(null));
assertFalse(leaf.hasFill(DefaultSymbols.createDefaultPointSymbolizer()));
PolygonSymbolizer polygonSymbolizer = DefaultSymbols.createDefaultPolygonSymbolizer();
assertTrue(leaf.hasFill(polygonSymbolizer));
polygonSymbolizer.setFill(null);
assertFalse(leaf.hasFill(polygonSymbolizer));
}
use of org.geotools.styling.PolygonSymbolizer in project sldeditor by robward-scisys.
the class SLDTreeLeafPolygonTest method testCreateStroke.
/**
* Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPolygon#createStroke(org.opengis.style.Symbolizer)}.
*/
@Test
public void testCreateStroke() {
SLDTreeLeafPolygon leaf = new SLDTreeLeafPolygon();
PolygonSymbolizer polygonSymbolizer = DefaultSymbols.createDefaultPolygonSymbolizer();
polygonSymbolizer.setStroke(null);
leaf.createStroke(polygonSymbolizer);
assertTrue(polygonSymbolizer.getStroke() != null);
}
use of org.geotools.styling.PolygonSymbolizer in project sldeditor by robward-scisys.
the class SLDTreeLeafPolygonTest method testGetFill.
/**
* Test method for {@link com.sldeditor.common.tree.leaf.SLDTreeLeafPolygon#getFill(org.opengis.style.Symbolizer)}.
*/
@Test
public void testGetFill() {
SLDTreeLeafPolygon leaf = new SLDTreeLeafPolygon();
assertNull(leaf.getFill(null));
assertNull(leaf.getFill(DefaultSymbols.createDefaultPointSymbolizer()));
PolygonSymbolizer polygonSymbolizer = DefaultSymbols.createDefaultPolygonSymbolizer();
assertEquals(polygonSymbolizer.getFill(), leaf.getFill(polygonSymbolizer));
}
Aggregations