Example #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;
        }
        /**
         * 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;
        }
Example #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]);
 }
Example #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]);
        }
Example #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]);
        }
Example #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]);
 }
Example #7
0
 /**
  * Constructor
  *
  * @param type the type
  */
 protected EscherRecord(EscherRecordType type)
 {
     data = new EscherRecordData(type);
 }
Example #8
0
 /**
  * Constructor
  *
  * @param erd the data
  */
 protected EscherRecord(EscherRecordData erd)
 {
     data = erd;
 }
Example #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();
 }
 /**
  * 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();
 }
Example #11
0
 /**
  * Constructor
  *
  * @param erd the raw escher record data
  */
 public Spgr(EscherRecordData erd)
     : base(erd)
 {
 }
 /**
  * Constructor
  *
  * @param erd the data
  */
 protected EscherRecord(EscherRecordData erd)
 {
     data = erd;
 }
 /**
  * Constructor
  *
  * @param type the type
  */
 protected EscherRecord(EscherRecordType type)
 {
     data = new EscherRecordData(type);
 }
 /**
  * Constructor
  *
  * @param erd escher record data
  */
 public SplitMenuColors(EscherRecordData erd)
     : base(erd)
 {
 }
 /**
  * Constructor
  *
  * @param erd the record data
  */
 public ClientData(EscherRecordData erd)
     : base(erd)
 {
 }
Example #16
0
 /**
  * Constructor
  *
  * @param erd the escher record data read in
  */
 public SpgrContainer(EscherRecordData erd)
     : base(erd)
 {
 }
Example #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)
        {
        }
Example #18
0
 /**
  * Constructor
  *
  * @param erd the raw escher record data
  */
 public Spgr(EscherRecordData erd)
     : base(erd)
 {
 }
Example #19
0
 /**
  * Constructor
  *
  * @param erd escher record data
  */
 public SplitMenuColors(EscherRecordData erd)
     : base(erd)
 {
 }
Example #20
0
 /**
  * Constructor
  *
  * @param erd
  */
 public ClientTextBox(EscherRecordData erd)
     : base(erd)
 {
 }
Example #21
0
 /**
  * Constructor
  *
  * @param erd the record data
  */
 public ClientData(EscherRecordData erd)
     : base(erd)
 {
 }
 /**
  * Constructor
  *
  * @param erd the escher record data
  */
 public SpContainer(EscherRecordData erd)
     : base(erd)
 {
 }