CategorizedArea extends AbstractCategorizedLegend<AreaParameters> implements EnablesStroke { @Override public AreaParameters getFallbackParameters() { return new AreaParameters( strokeEnabled ? colorStroke.getFallbackValue() : Color.WHITE, strokeEnabled ? opacityStroke.getFallbackValue() : .0, strokeEnabled ? widthStroke.getFallbackValue() : .0, strokeEnabled ? dashStroke.getFallbackValue() : "", colorFill.getFallbackValue(), opacityFill.getFallbackValue()); } CategorizedArea();  CategorizedArea(AreaSymbolizer as); @Override List<CategorizedLegend> getCategorizedLegend(); @Override Symbolizer getSymbolizer(); @Override String getLegendTypeName(); @Override AreaParameters get(Object o); @Override AreaParameters put(Double d, AreaParameters ap); @Override AreaParameters remove(Object o); @Override void setFallbackParameters(AreaParameters fallback); @Override AreaParameters getFallbackParameters(); @Override boolean isStrokeEnabled(); @Override void setStrokeEnabled(boolean enable); @Override Uom getStrokeUom(); @Override void setStrokeUom(Uom u); @Override String getLegendTypeId(); static final String NAME; }
@Test public void testGetFallback() throws Exception { CategorizedArea ca = getCategorizedArea(); AreaParameters ap = new AreaParameters(Color.decode("#111111"),.2,1.0,"1 1",Color.decode("#111111"),.5); assertTrue(ca.getFallbackParameters().equals(ap)); }