[]
ICellDecorationA cell decoration can include a corner fold and/or icons to visually annotate cells. Use this class with IRange.setDecoration(ICellDecoration) to apply decorations to a cell or range of cells. This is a SpreadJS-specific feature, supported for export to .sjs and .ssjson formats.
ICornerFold cornerFold = new CornerFold(Color.GetRed(), EnumSet.of(CornerPosition.LeftTop), 8);
ICellDecorationIcon icon = new CellDecorationIcon("data:image/svg+xml;base64,PHN2Zz4=", 12, 12, IconPosition.OutsideRight);
CellDecoration decoration = new CellDecoration(cornerFold, Collections.singletonList(icon));
worksheet.getRange("A1").setDecoration(decoration);
CellDecoration(ICornerFold cornerFold) CellDecoration(ICornerFold cornerFold,
List<ICellDecorationIcon> icons) CellDecoration(List<ICellDecorationIcon> icons) getIcons()cornerFold - The corner fold.icons - The icons.cornerFold - The corner fold.icons - The icons.
ICornerFold cornerFold = new CornerFold(Color.GetRed(), EnumSet.of(CornerPosition.LeftTop), 8);
CellDecoration decoration = new CellDecoration(cornerFold);
ICornerFold actualCornerFold = decoration.getCornerFold();
getCornerFold in interface ICellDecoration
ICellDecorationIcon icon = new CellDecorationIcon(
"data:image/svg+xml;base64,PHN2Zz4=", 12, 12, IconPosition.OutsideRight);
CellDecoration decoration = new CellDecoration(Collections.singletonList(icon));
List<ICellDecorationIcon> icons = decoration.getIcons();
getIcons in interface ICellDecoration