poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tets...@apache.org
Subject cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/record BottomMarginRecord.java LeftMarginRecord.java Margin.java RightMarginRecord.java TopMarginRecord.java
Date Thu, 19 Jun 2003 13:14:14 GMT
tetsuya     2003/06/19 06:14:14

  Modified:    src/java/org/apache/poi/hssf/record BottomMarginRecord.java
                        LeftMarginRecord.java Margin.java
                        RightMarginRecord.java TopMarginRecord.java
  Log:
  Fixed line formatting. (2)
  
  Revision  Changes    Path
  1.7       +1 -1      jakarta-poi/src/java/org/apache/poi/hssf/record/BottomMarginRecord.java
  
  Index: BottomMarginRecord.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/BottomMarginRecord.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BottomMarginRecord.java	19 Jun 2003 13:02:30 -0000	1.6
  +++ BottomMarginRecord.java	19 Jun 2003 13:14:13 -0000	1.7
  @@ -56,7 +56,6 @@
   package org.apache.poi.hssf.record;
   
   
  -
   import org.apache.poi.util.*;
   
   /**
  @@ -64,6 +63,7 @@
    * NOTE: This source was automatically generated.
    * @author Shawn Laubach (slaubach at apache dot org)
    */
  +
   public class BottomMarginRecord
   	 extends Record implements Margin
   {
  
  
  
  1.6       +20 -0     jakarta-poi/src/java/org/apache/poi/hssf/record/LeftMarginRecord.java
  
  Index: LeftMarginRecord.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/LeftMarginRecord.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- LeftMarginRecord.java	19 Jun 2003 13:02:30 -0000	1.5
  +++ LeftMarginRecord.java	19 Jun 2003 13:14:14 -0000	1.6
  @@ -57,6 +57,7 @@
   
   
   import org.apache.poi.util.*;
  +
   /**
    * Record for the left margin.
    * NOTE: This source was automatically generated.
  @@ -67,10 +68,12 @@
       extends Record implements Margin{
       public final static short      sid                             = 0x26;
       private  double     field_1_margin;
  +
       public LeftMarginRecord()
       {
   
       }
  +
       /**
        * Constructs a LeftMargin record and sets its fields appropriately.
        *
  @@ -79,10 +82,12 @@
        * @param size  size the size of the data area of the record
        * @param data  data of the record (should not contain sid/len)
        */
  +
       public LeftMarginRecord(short id, short size, byte [] data)
       {
           super(id, size, data);
       }
  +
       /**
        * Constructs a LeftMargin record and sets its fields appropriately.
        *
  @@ -92,15 +97,18 @@
        * @param data  data of the record (should not contain sid/len)
        * @param offset of the record's data
        */
  +
       public LeftMarginRecord(short id, short size, byte [] data, int offset)
       {
           super(id, size, data, offset);
       }
  +
       /**
        * Checks the sid matches the expected side for this record
        *
        * @param id   the expected sid.
        */
  +
       protected void validateSid(short id)
       {
           if (id != sid)
  @@ -108,10 +116,12 @@
               throw new RecordFormatException("Not a LeftMargin record");
           }
       }
  +
       protected void fillFields(byte [] data, short size, int offset)
       {
           field_1_margin                  = LittleEndian.getDouble(data, 0x0 + offset);
       }
  +
       public String toString()
       {
           StringBuffer buffer = new StringBuffer();
  @@ -120,6 +130,7 @@
           buffer.append("[/LeftMargin]\n");
           return buffer.toString();
       }
  +
       public int serialize(int offset, byte[] data)
       {
           LittleEndian.putShort(data, 0 + offset, sid);
  @@ -127,34 +138,43 @@
           LittleEndian.putDouble(data, 4 + offset, field_1_margin);
           return getRecordSize();
       }
  +
       /**
        * Size of record (exluding 4 byte header)
        */
  +
       public int getRecordSize()
       {
           return 4  + 8;
       }
  +
       public short getSid()
       {
           return this.sid;
       }
  +
       /**
        * Get the margin field for the LeftMargin record.
        */
  +
       public double getMargin()
       {
           return field_1_margin;
       }
  +
       /**
        * Set the margin field for the LeftMargin record.
        */
  +
       public void setMargin(double field_1_margin)
       {
           this.field_1_margin = field_1_margin;
       }
  +
       public Object clone() {
           LeftMarginRecord rec = new LeftMarginRecord();
           rec.field_1_margin = this.field_1_margin;
           return rec;
       }
  +
   }
  
  
  
  1.5       +6 -0      jakarta-poi/src/java/org/apache/poi/hssf/record/Margin.java
  
  Index: Margin.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/Margin.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Margin.java	19 Jun 2003 13:02:30 -0000	1.4
  +++ Margin.java	19 Jun 2003 13:14:14 -0000	1.5
  @@ -56,6 +56,7 @@
   package org.apache.poi.hssf.record;
   
   import org.apache.poi.util.*;
  +
   /**
    * The margin interface is a parent used to define left, right, top and bottom margins.
 This allows much of the code to be generic when it comes to handling margins.
    * NOTE: This source wass automatically generated.
  @@ -63,12 +64,17 @@
    */
   
   public interface Margin{
  +
       /**
        * Get the margin field for the Margin.
        */
  +
       public double getMargin();
  +
       /**
        * Set the margin field for the Margin.
        */
  +
       public void setMargin(double field_1_margin);
  +
   }
  
  
  
  1.6       +24 -2     jakarta-poi/src/java/org/apache/poi/hssf/record/RightMarginRecord.java
  
  Index: RightMarginRecord.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/RightMarginRecord.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RightMarginRecord.java	19 Jun 2003 13:02:30 -0000	1.5
  +++ RightMarginRecord.java	19 Jun 2003 13:14:14 -0000	1.6
  @@ -53,9 +53,12 @@
    */
   
   
  -package org.apache.poi.hssf.record;import org.apache.poi.util.*;
  +package org.apache.poi.hssf.record;
   
  -/** * Record for the right margin.
  +import org.apache.poi.util.*;
  +
  +/**
  + * Record for the right margin.
    * NOTE: This source was automatically generated.
    * @author Shawn Laubach (slaubach at apache dot org)
    */
  @@ -65,10 +68,12 @@
       extends Record implements Margin{
       public final static short      sid                             = 0x27;
       private  double     field_1_margin;
  +
       public RightMarginRecord()
       {
   
       }
  +
       /**
        * Constructs a RightMargin record and sets its fields appropriately.
        *
  @@ -77,10 +82,12 @@
        * @param size  size the size of the data area of the record
        * @param data  data of the record (should not contain sid/len)
        */
  +
       public RightMarginRecord(short id, short size, byte [] data)
       {
           super(id, size, data);
       }
  +
       /**
        * Constructs a RightMargin record and sets its fields appropriately.
        *
  @@ -90,15 +97,18 @@
        * @param data  data of the record (should not contain sid/len)
        * @param offset of the record's data
        */
  +
       public RightMarginRecord(short id, short size, byte [] data, int offset)
       {
           super(id, size, data, offset);
       }
  +
       /**
        * Checks the sid matches the expected side for this record
        *
        * @param id   the expected sid.
        */
  +
       protected void validateSid(short id)
       {
           if (id != sid)
  @@ -106,10 +116,12 @@
               throw new RecordFormatException("Not a RightMargin record");
           }
       }
  +
       protected void fillFields(byte [] data, short size, int offset)
       {
           field_1_margin                  = LittleEndian.getDouble(data, 0x0 + offset);
       }
  +
       public String toString()
       {
           StringBuffer buffer = new StringBuffer();
  @@ -118,6 +130,7 @@
           buffer.append("[/RightMargin]\n");
           return buffer.toString();
       }
  +
       public int serialize(int offset, byte[] data)
       {
           LittleEndian.putShort(data, 0 + offset, sid);
  @@ -125,34 +138,43 @@
           LittleEndian.putDouble(data, 4 + offset, field_1_margin);
           return getRecordSize();
       }
  +
       /**
        * Size of record (exluding 4 byte header)
        */
  +
       public int getRecordSize()
       {
           return 4  + 8;
       }
  +
       public short getSid()
       {
           return this.sid;
       }
  +
       /**
        * Get the margin field for the RightMargin record.
        */
  +
       public double getMargin()
       {
           return field_1_margin;
       }
  +
       /**
        * Set the margin field for the RightMargin record.
        */
  +
       public void setMargin(double field_1_margin)
       {
           this.field_1_margin = field_1_margin;
       }
  +
       public Object clone() {
           RightMarginRecord rec = new RightMarginRecord();
           rec.field_1_margin = this.field_1_margin;
           return rec;
       }
  +
   }
  
  
  
  1.6       +17 -0     jakarta-poi/src/java/org/apache/poi/hssf/record/TopMarginRecord.java
  
  Index: TopMarginRecord.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/TopMarginRecord.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TopMarginRecord.java	19 Jun 2003 13:02:30 -0000	1.5
  +++ TopMarginRecord.java	19 Jun 2003 13:14:14 -0000	1.6
  @@ -64,6 +64,7 @@
    * NOTE: This source was automatically generated.
    * @author Shawn Laubach (slaubach at apache dot org)
    */
  +
   public class TopMarginRecord
       extends Record implements Margin
   {
  @@ -89,6 +90,7 @@
       {
           super(id, size, data);
       }
  +
       /**
        * Constructs a TopMargin record and sets its fields appropriately.
        *
  @@ -98,15 +100,18 @@
        * @param data  data of the record (should not contain sid/len)
        * @param offset of the record's data
        */
  +
       public TopMarginRecord(short id, short size, byte [] data, int offset)
       {
           super(id, size, data, offset);
       }
  +
       /**
        * Checks the sid matches the expected side for this record
        *
        * @param id   the expected sid.
        */
  +
       protected void validateSid(short id)
       {
           if (id != sid)
  @@ -114,10 +119,12 @@
               throw new RecordFormatException("Not a TopMargin record");
           }
       }
  +
       protected void fillFields(byte [] data, short size, int offset)
       {
           field_1_margin                  = LittleEndian.getDouble(data, 0x0 + offset);
       }
  +
       public String toString()
       {
           StringBuffer buffer = new StringBuffer();
  @@ -127,6 +134,7 @@
           buffer.append("[/TopMargin]\n");
           return buffer.toString();
       }
  +
       public int serialize(int offset, byte[] data)
       {
           LittleEndian.putShort(data, 0 + offset, sid);
  @@ -134,34 +142,43 @@
           LittleEndian.putDouble(data, 4 + offset, field_1_margin);
           return getRecordSize();
       }
  +
       /**
        * Size of record (exluding 4 byte header)
        */
  +
       public int getRecordSize()
       {
           return 4  + 8;
       }
  +
       public short getSid()
       {
           return this.sid;
       }
  +
       /**
        * Get the margin field for the TopMargin record.
        */
  +
       public double getMargin()
       {
           return field_1_margin;
       }
  +
       /**
        * Set the margin field for the TopMargin record.
        */
  +
       public void setMargin(double field_1_margin)
       {
           this.field_1_margin = field_1_margin;
       }
  +
       public Object clone() {
           TopMarginRecord rec = new TopMarginRecord();
           rec.field_1_margin = this.field_1_margin;
           return rec;
       }
  +
   }
  
  
  

Mime
View raw message