CategorizedLine extends AbstractCategorizedLegend<LineParameters> { @Override public LineParameters getFallbackParameters() { return new LineParameters( color.getFallbackValue(), opacity.getFallbackValue(), width.getFallbackValue(), dash.getFallbackValue()); } CategorizedLine();  CategorizedLine(LineSymbolizer ls); @Override List<CategorizedLegend> getCategorizedLegend(); @Override void setFallbackParameters(LineParameters fallback); @Override LineParameters getFallbackParameters(); @Override Symbolizer getSymbolizer(); @Override String getLegendTypeName(); @Override LineParameters get(Object o); @Override LineParameters put(Double d, LineParameters lp); @Override LineParameters remove(Object o); @Override Uom getStrokeUom(); @Override void setStrokeUom(Uom u); @Override String getLegendTypeId(); static final String NAME; }
@Test public void testGetFallback() throws Exception { CategorizedLine ca = getCategorizedLine(); LineParameters ap = new LineParameters(Color.decode("#111111"),.75,1.0,"2 2"); assertTrue(ca.getFallbackParameters().equals(ap)); }