@Test public void fill() throws Exception { FillBuilder b = new FillBuilder(); Fill fill = b.color(Color.BLUE).opacity(0.75).build(); assertNotNull(fill); assertNotNull(b.color); assertEquals(Color.BLUE, fill.getColor().evaluate(null, Color.class)); }
public Style build() { if (unset) { return null; } Style s; if (fts.size() == 0) { s = sf.createNamedStyle(); s.setName(name); } else { s = sf.createStyle(); s.setName(name); if (styleAbstract != null) s.getDescription().setAbstract(new SimpleInternationalString(styleAbstract)); if (title != null) s.getDescription().setTitle(new SimpleInternationalString(title)); for (FeatureTypeStyleBuilder builder : fts) { s.featureTypeStyles().add(builder.build()); } s.setDefault(isDefault); } if (background != null) { s.setBackground(background.build()); } reset(); return s; }
StyleBuilder extends AbstractStyleBuilder<Style> { public Style build() { if (unset) { return null; } Style s; if (fts.size() == 0) { s = sf.createNamedStyle(); s.setName(name); } else { s = sf.createStyle(); s.setName(name); if (styleAbstract != null) s.getDescription().setAbstract(new SimpleInternationalString(styleAbstract)); if (title != null) s.getDescription().setTitle(new SimpleInternationalString(title)); for (FeatureTypeStyleBuilder builder : fts) { s.featureTypeStyles().add(builder.build()); } s.setDefault(isDefault); } if (background != null) { s.setBackground(background.build()); } reset(); return s; } }
StyleBuilder extends AbstractStyleBuilder<Style> { public Style build() { if (unset) { return null; } Style s; if (fts.size() == 0) { s = sf.createNamedStyle(); s.setName(name); } else { s = sf.createStyle(); s.setName(name); if (styleAbstract != null) s.getDescription().setAbstract(new SimpleInternationalString(styleAbstract)); if (title != null) s.getDescription().setTitle(new SimpleInternationalString(title)); for (FeatureTypeStyleBuilder builder : fts) { s.featureTypeStyles().add(builder.build()); } s.setDefault(isDefault); } if (background != null) { s.setBackground(background.build()); } reset(); return s; } StyleBuilder();   StyleBuilder(AbstractSLDBuilder<?> parent); }
StyleBuilder extends AbstractStyleBuilder<Style> { public Style build() { if (unset) { return null; } Style s; if (fts.size() == 0) { s = sf.createNamedStyle(); s.setName(name); } else { s = sf.createStyle(); s.setName(name); if (styleAbstract != null) s.getDescription().setAbstract(new SimpleInternationalString(styleAbstract)); if (title != null) s.getDescription().setTitle(new SimpleInternationalString(title)); for (FeatureTypeStyleBuilder builder : fts) { s.featureTypeStyles().add(builder.build()); } s.setDefault(isDefault); } if (background != null) { s.setBackground(background.build()); } reset(); return s; } StyleBuilder();   StyleBuilder(AbstractSLDBuilder<?> parent); StyleBuilder name(String name); StyleBuilder title(String title); StyleBuilder styleAbstract(String styleAbstract); FeatureTypeStyleBuilder featureTypeStyle(); FillBuilder background(); Style build(); StyleBuilder unset(); StyleBuilder reset(); StyleBuilder reset(Style style); @Override Style buildStyle(); }
StyleBuilder extends AbstractStyleBuilder<Style> { public Style build() { if (unset) { return null; } Style s; if (fts.size() == 0) { s = sf.createNamedStyle(); s.setName(name); } else { s = sf.createStyle(); s.setName(name); if (styleAbstract != null) s.getDescription().setAbstract(new SimpleInternationalString(styleAbstract)); if (title != null) s.getDescription().setTitle(new SimpleInternationalString(title)); for (FeatureTypeStyleBuilder builder : fts) { s.featureTypeStyles().add(builder.build()); } s.setDefault(isDefault); } if (background != null) { s.setBackground(background.build()); } reset(); return s; } StyleBuilder();   StyleBuilder(AbstractSLDBuilder<?> parent); StyleBuilder name(String name); StyleBuilder title(String title); StyleBuilder styleAbstract(String styleAbstract); FeatureTypeStyleBuilder featureTypeStyle(); FillBuilder background(); Style build(); StyleBuilder unset(); StyleBuilder reset(); StyleBuilder reset(Style style); @Override Style buildStyle();  }