@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { try { ListComponent list = (ListComponent) component; FillComponent fillList; PrintOrderEnum printOrder = list.getPrintOrderValue(); if (printOrder == null || printOrder == PrintOrderEnum.VERTICAL) { fillList = new VerticalFillList(list, factory); } else { fillList = new HorizontalFillList(list, factory); } return fillList; } catch (JRException e) { throw new JRRuntimeException(e); } }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { TextInputComponent textInputComponent = (TextInputComponent) component; return new TextInputComponentFill(textInputComponent, factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { TextInputComponentFill textInputComponentFill = (TextInputComponentFill) component; return new TextInputComponentFill(textInputComponentFill.getTextInputComponent(), factory); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { HtmlComponent htmlComponent = (HtmlComponent) component; return new HtmlComponentFill(htmlComponent); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { HtmlComponentFill htmlComponentFill = (HtmlComponentFill) component; return new HtmlComponentFill(htmlComponentFill.getHtmlComponent()); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { BarcodeComponent barcode = (BarcodeComponent) component; return new BarcodeFillComponent(barcode); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { BarcodeFillComponent barcode = (BarcodeFillComponent) component; return new BarcodeFillComponent(barcode); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { MapComponent map = (MapComponent) component; return new MapFillComponent(map, factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { MapFillComponent fillMap = (MapFillComponent) component; return new MapFillComponent(fillMap.getMap()); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { BarbecueComponent barcode = (BarbecueComponent) component; return new BarbecueFillComponent(barcode); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { BarbecueFillComponent fillBarcode = (BarbecueFillComponent) component; return new BarbecueFillComponent(fillBarcode.getBarcode()); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { SortComponent sortComponent = (SortComponent) component; return new SortComponentFill(sortComponent); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { SortComponentFill sortComponentFill = (SortComponentFill) component; return new SortComponentFill(sortComponentFill.getSortComponent()); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { IconLabelComponent iconLabelComponent = (IconLabelComponent) component; return new IconLabelComponentFill(iconLabelComponent, factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { IconLabelComponentFill iconLabelComponentFill = (IconLabelComponentFill) component; return new IconLabelComponentFill(iconLabelComponentFill.getIconLabelComponent(), factory); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { TableComponent table = (TableComponent) component; return new FillTable(table, factory); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { return new FillXYChart((XYChartComponent) component, factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { throw new UnsupportedOperationException(); }
public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { return new FillBarChart((BarChartComponent) component, factory); }
public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { throw new UnsupportedOperationException(); }
public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { return new FillPieChart((PieChartComponent) component, factory); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { return new FillSpiderChart((SpiderChartComponent) component, factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { return (FillComponent) ((BaseFillList) component).createClone(factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { return new FillTable((FillTable) component, factory); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { GeoMapComponent geoMap = (GeoMapComponent) component; return new GeoMapFillComponent(geoMap, factory); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { WmsMapComponent map = (WmsMapComponent) component; return new WmsMapFillComponent(map, factory); }
@Override public FillComponent cloneFillComponent(FillComponent component, JRFillCloneFactory factory) { WmsMapFillComponent fillMap = (WmsMapFillComponent) component; return new WmsMapFillComponent(fillMap.getMap()); }