Ejemplo n.º 1
0
        public EscherGraphics Create()
        {
            EscherGraphics g = new EscherGraphics(escherGroup, workbook,
                                                  foreground, font, verticalPointsPerPixel);

            return(g);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {

            HSSFWorkbook workbook = new HSSFWorkbook();
            ISheet sheet = workbook.CreateSheet("Test");
            escherGroup = sheet.CreateDrawingPatriarch().CreateGroup(new HSSFClientAnchor(0, 0, 1023, 255, (short)0, 0, (short)0, 0));
            escherGroup = new HSSFShapeGroup(null, new HSSFChildAnchor());
            EscherGraphics g = new EscherGraphics(this.escherGroup, workbook, Color.black, 1.0f);
            graphics = new EscherGraphics2d(g);

        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
            workbook = new HSSFWorkbook();

            NPOI.SS.UserModel.ISheet sheet = workbook.CreateSheet("Test");
            patriarch = (HSSFPatriarch)sheet.CreateDrawingPatriarch();
            escherGroupA = patriarch.CreateGroup(new HSSFClientAnchor(0, 0, 1022, 255, (short)0, 0, (short)0, 0));
            escherGroupB = patriarch.CreateGroup(new HSSFClientAnchor(20, 30, 500, 200, (short)0, 0, (short)0, 0));
            //        escherGroup = new HSSFShapeGroup(null, new HSSFChildAnchor());
            graphics = new EscherGraphics(this.escherGroupA, workbook, System.Drawing.Color.Black, 1.0f);

        }
Ejemplo n.º 4
0
 public EscherGraphics Create()
 {
     EscherGraphics g = new EscherGraphics(escherGroup, workbook,
             foreground, font, verticalPointsPerPixel);
     return g;
 }
Ejemplo n.º 5
0
 /**
  * Constructs one escher graphics object from an escher graphics object.
  *
  * @param escherGraphics    the original EscherGraphics2d object to copy
  */
 public EscherGraphics2d(EscherGraphics escherGraphics)
 {
     this.escherGraphics = escherGraphics;
     SetImg( new BufferedImage(1, 1, 2) );
     //this.Color = (Color.Black);
 }