Exemple #1
0
        public XSSFTableStyle(int index, CT_Dxfs dxfs, CT_TableStyle tableStyle, IIndexedColorMap colorMap)
        {
            this.name  = tableStyle.name;
            this.index = index;

            List <CT_Dxf> dxfList = dxfs.dxf;

            foreach (CT_TableStyleElement element in tableStyle.tableStyleElement)
            {
                TableStyleType            type   = Enums.Parse <TableStyleType>(element.type.GetName());
                DifferentialStyleProvider dstyle = null;
                if (element.dxfIdSpecified)
                {
                    int    idx = (int)element.dxfId;
                    CT_Dxf dxf;
                    dxf = dxfList[idx];
                    int stripeSize = 0;
                    if (element.size != 0)
                    {
                        stripeSize = (int)element.size;
                    }
                    if (dxf != null)
                    {
                        dstyle = new XSSFDxfStyleProvider(dxf, stripeSize, colorMap);
                    }
                }
                elementMap.Add(type, dstyle);
            }
        }
Exemple #2
0
 public DifferentialStyleProvider GetStyle(TableStyleType type)
 {
     return(style.GetStyle(type));
 }
Exemple #3
0
 public DifferentialStyleProvider GetStyle(TableStyleType type)
 {
     return(elementMap[type]);
 }