Exemplo n.º 1
0
        /**
         * Constructor
         *
         * @param erd the escher record data
         */
        public ClientAnchor(EscherRecordData erd)
            : base(erd)
        {
            byte[] bytes = getBytes();

            // The properties
            properties = IntegerHelper.getInt(bytes[0], bytes[1]);

            // The x1 cell
            int x1Cell     = IntegerHelper.getInt(bytes[2], bytes[3]);
            int x1Fraction = IntegerHelper.getInt(bytes[4], bytes[5]);

            x1 = x1Cell + (double)x1Fraction / (double)1024;

            // The y1 cell
            int y1Cell     = IntegerHelper.getInt(bytes[6], bytes[7]);
            int y1Fraction = IntegerHelper.getInt(bytes[8], bytes[9]);

            y1 = y1Cell + (double)y1Fraction / (double)256;

            // The x2 cell
            int x2Cell     = IntegerHelper.getInt(bytes[10], bytes[11]);
            int x2Fraction = IntegerHelper.getInt(bytes[12], bytes[13]);

            x2 = x2Cell + (double)x2Fraction / (double)1024;

            // The y1 cell
            int y2Cell     = IntegerHelper.getInt(bytes[14], bytes[15]);
            int y2Fraction = IntegerHelper.getInt(bytes[16], bytes[17]);

            y2 = y2Cell + (double)y2Fraction / (double)256;
        }
Exemplo n.º 2
0
        /**
         * Constructor
         *
         * @param erd the escher record data
         */
        public ClientAnchor(EscherRecordData erd)
            : base(erd)
        {
            byte[] bytes = getBytes();

            // The properties
            properties = IntegerHelper.getInt(bytes[0],bytes[1]);

            // The x1 cell
            int x1Cell = IntegerHelper.getInt(bytes[2],bytes[3]);
            int x1Fraction = IntegerHelper.getInt(bytes[4],bytes[5]);

            x1 = x1Cell + (double)x1Fraction / (double)1024;

            // The y1 cell
            int y1Cell = IntegerHelper.getInt(bytes[6],bytes[7]);
            int y1Fraction = IntegerHelper.getInt(bytes[8],bytes[9]);

            y1 = y1Cell + (double)y1Fraction / (double)256;

            // The x2 cell
            int x2Cell = IntegerHelper.getInt(bytes[10],bytes[11]);
            int x2Fraction = IntegerHelper.getInt(bytes[12],bytes[13]);

            x2 = x2Cell + (double)x2Fraction / (double)1024;

            // The y1 cell
            int y2Cell = IntegerHelper.getInt(bytes[14],bytes[15]);
            int y2Fraction = IntegerHelper.getInt(bytes[16],bytes[17]);

            y2 = y2Cell + (double)y2Fraction / (double)256;
        }
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @param erd the entity record data
  */
 public Sp(EscherRecordData erd)
     : base(erd)
 {
     shapeType = getInstance();
     byte[] bytes = getBytes();
     shapeId = IntegerHelper.getInt(bytes[0],bytes[1],bytes[2],bytes[3]);
     persistenceFlags = IntegerHelper.getInt(bytes[4],bytes[5],
                                            bytes[6],bytes[7]);
 }
Exemplo n.º 4
0
        /**
         * Constructor invoked when reading in an escher stream
         *
         * @param erd the escher record
         */
        public Dg(EscherRecordData erd)
            : base(erd)
        {
            drawingId = getInstance();

            byte[] bytes = getBytes();
            shapeCount = IntegerHelper.getInt(bytes[0], bytes[1], bytes[2], bytes[3]);
            seed       = IntegerHelper.getInt(bytes[4], bytes[5], bytes[6], bytes[7]);
        }
Exemplo n.º 5
0
        /**
         * Constructor invoked when reading in an escher stream
         *
         * @param erd the escher record
         */
        public Dg(EscherRecordData erd)
            : base(erd)
        {
            drawingId = getInstance();

            byte[] bytes = getBytes();
            shapeCount = IntegerHelper.getInt(bytes[0],bytes[1],bytes[2],bytes[3]);
            seed = IntegerHelper.getInt(bytes[4],bytes[5],bytes[6],bytes[7]);
        }
Exemplo n.º 6
0
 /**
  * Constructor
  *
  * @param erd the entity record data
  */
 public Sp(EscherRecordData erd)
     : base(erd)
 {
     shapeType = getInstance();
     byte[] bytes = getBytes();
     shapeId          = IntegerHelper.getInt(bytes[0], bytes[1], bytes[2], bytes[3]);
     persistenceFlags = IntegerHelper.getInt(bytes[4], bytes[5],
                                             bytes[6], bytes[7]);
 }
Exemplo n.º 7
0
 /**
  * Constructor
  *
  * @param type the type
  */
 protected EscherRecord(EscherRecordType type)
 {
     data = new EscherRecordData(type);
 }
Exemplo n.º 8
0
 /**
  * Constructor
  *
  * @param erd the data
  */
 protected EscherRecord(EscherRecordData erd)
 {
     data = erd;
 }
Exemplo n.º 9
0
 /**
  * Constructor used to instantiate this object when reading from an
  * escher stream
  *
  * @param erd the escher data
  */
 public BStoreContainer(EscherRecordData erd)
     : base(erd)
 {
     numBlips = getInstance();
 }
Exemplo n.º 10
0
 /**
  * Constructor used to instantiate this object when reading from an
  * escher stream
  *
  * @param erd the escher data
  */
 public BStoreContainer(EscherRecordData erd)
     : base(erd)
 {
     numBlips = getInstance();
 }
Exemplo n.º 11
0
 /**
  * Constructor
  *
  * @param erd the raw escher record data
  */
 public Spgr(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 12
0
 /**
  * Constructor
  *
  * @param erd the data
  */
 protected EscherRecord(EscherRecordData erd)
 {
     data = erd;
 }
Exemplo n.º 13
0
 /**
  * Constructor
  *
  * @param type the type
  */
 protected EscherRecord(EscherRecordType type)
 {
     data = new EscherRecordData(type);
 }
Exemplo n.º 14
0
 /**
  * Constructor
  *
  * @param erd escher record data
  */
 public SplitMenuColors(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 15
0
 /**
  * Constructor
  *
  * @param erd the record data
  */
 public ClientData(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 16
0
 /**
  * Constructor
  *
  * @param erd the escher record data read in
  */
 public SpgrContainer(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 17
0
        /**
         * The logger
         */
        //  private static Logger logger = Logger.getLogger(EscherAtom.class);

        /**
         * Constructor
         *
         * @param erd the escher record data
         */
        public EscherAtom(EscherRecordData erd)
            : base(erd)
        {
        }
Exemplo n.º 18
0
 /**
  * Constructor
  *
  * @param erd the raw escher record data
  */
 public Spgr(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 19
0
 /**
  * Constructor
  *
  * @param erd escher record data
  */
 public SplitMenuColors(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 20
0
 /**
  * Constructor
  *
  * @param erd
  */
 public ClientTextBox(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 21
0
 /**
  * Constructor
  *
  * @param erd the record data
  */
 public ClientData(EscherRecordData erd)
     : base(erd)
 {
 }
Exemplo n.º 22
0
 /**
  * Constructor
  *
  * @param erd the escher record data
  */
 public SpContainer(EscherRecordData erd)
     : base(erd)
 {
 }