javadoc mostly
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352569 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
393cdb450e
commit
0f5072657e
@ -63,8 +63,9 @@ package org.apache.poi.hssf.record.formula;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Addition operator PTG the "+" binomial operator. If you need more
|
||||||
* @author andy
|
* explanation than that then well...We really can't help you here.
|
||||||
|
* @author Andrew C. Oliver (acoliver@apache.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class AddPtg
|
public class AddPtg
|
||||||
|
@ -59,7 +59,7 @@ import org.apache.poi.util.LittleEndian;
|
|||||||
import org.apache.poi.hssf.util.RangeAddress;
|
import org.apache.poi.hssf.util.RangeAddress;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Title: Area 3D Ptg <P>
|
* Title: Area 3D Ptg - 3D referecnce (Sheet + Area)<P>
|
||||||
* Description: Defined a area in Extern Sheet. <P>
|
* Description: Defined a area in Extern Sheet. <P>
|
||||||
* REFERENCE: <P>
|
* REFERENCE: <P>
|
||||||
* @author Libin Roman (Vista Portal LDT. Developer)
|
* @author Libin Roman (Vista Portal LDT. Developer)
|
||||||
|
@ -66,7 +66,7 @@ import org.apache.poi.util.BitField;
|
|||||||
import org.apache.poi.hssf.util.ReferenceUtil;
|
import org.apache.poi.hssf.util.ReferenceUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies a rectangular area of cells
|
* Specifies a rectangular area of cells A1:A4 for instance.
|
||||||
* @author andy
|
* @author andy
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -145,99 +145,161 @@ public class AreaPtg
|
|||||||
return SIZE;
|
return SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the first row in the area
|
||||||
|
*/
|
||||||
public short getFirstRow()
|
public short getFirstRow()
|
||||||
{
|
{
|
||||||
return field_1_first_row;
|
return field_1_first_row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sets the first row
|
||||||
|
* @param row number (0-based)
|
||||||
|
*/
|
||||||
public void setFirstRow(short row)
|
public void setFirstRow(short row)
|
||||||
{
|
{
|
||||||
field_1_first_row = row;
|
field_1_first_row = row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return last row in the range (x2 in x1,y1-x2,y2)
|
||||||
|
*/
|
||||||
public short getLastRow()
|
public short getLastRow()
|
||||||
{
|
{
|
||||||
return field_2_last_row;
|
return field_2_last_row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param last row number in the area
|
||||||
|
*/
|
||||||
public void setLastRow(short row)
|
public void setLastRow(short row)
|
||||||
{
|
{
|
||||||
field_2_last_row = row;
|
field_2_last_row = row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the first column number in the area.
|
||||||
|
*/
|
||||||
public short getFirstColumn()
|
public short getFirstColumn()
|
||||||
{
|
{
|
||||||
return column.getShortValue(field_3_first_column);
|
return column.getShortValue(field_3_first_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the first column number + the options bit settings unstripped
|
||||||
|
*/
|
||||||
public short getFirstColumnRaw()
|
public short getFirstColumnRaw()
|
||||||
{
|
{
|
||||||
return field_3_first_column;
|
return field_3_first_column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return whether or not the first row is a relative reference or not.
|
||||||
|
*/
|
||||||
public boolean isFirstRowRelative()
|
public boolean isFirstRowRelative()
|
||||||
{
|
{
|
||||||
return rowRelative.isSet(field_3_first_column);
|
return rowRelative.isSet(field_3_first_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sets the first row to relative or not
|
||||||
|
* @param isRelative or not.
|
||||||
|
*/
|
||||||
public void setFirstRowRelative(boolean rel) {
|
public void setFirstRowRelative(boolean rel) {
|
||||||
field_3_first_column=rowRelative.setShortBoolean(field_3_first_column,rel);
|
field_3_first_column=rowRelative.setShortBoolean(field_3_first_column,rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return isrelative first column to relative or not
|
||||||
|
*/
|
||||||
public boolean isFirstColRelative()
|
public boolean isFirstColRelative()
|
||||||
{
|
{
|
||||||
return colRelative.isSet(field_3_first_column);
|
return colRelative.isSet(field_3_first_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set whether the first column is relative
|
||||||
|
*/
|
||||||
public void setFirstColRelative(boolean rel) {
|
public void setFirstColRelative(boolean rel) {
|
||||||
field_3_first_column=colRelative.setShortBoolean(field_3_first_column,rel);
|
field_3_first_column=colRelative.setShortBoolean(field_3_first_column,rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the first column in the area
|
||||||
|
*/
|
||||||
public void setFirstColumn(short column)
|
public void setFirstColumn(short column)
|
||||||
{
|
{
|
||||||
field_3_first_column = column; // fixme
|
field_3_first_column = column; // fixme
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the first column irespective of the bitmasks
|
||||||
|
*/
|
||||||
public void setFirstColumnRaw(short column)
|
public void setFirstColumnRaw(short column)
|
||||||
{
|
{
|
||||||
field_3_first_column = column;
|
field_3_first_column = column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return lastcolumn in the area
|
||||||
|
*/
|
||||||
public short getLastColumn()
|
public short getLastColumn()
|
||||||
{
|
{
|
||||||
return column.getShortValue(field_4_last_column);
|
return column.getShortValue(field_4_last_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return last column and bitmask (the raw field)
|
||||||
|
*/
|
||||||
public short getLastColumnRaw()
|
public short getLastColumnRaw()
|
||||||
{
|
{
|
||||||
return field_4_last_column;
|
return field_4_last_column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return last row relative or not
|
||||||
|
*/
|
||||||
public boolean isLastRowRelative()
|
public boolean isLastRowRelative()
|
||||||
{
|
{
|
||||||
return rowRelative.isSet(field_4_last_column);
|
return rowRelative.isSet(field_4_last_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set whether the last row is relative or not
|
||||||
|
* @param last row relative
|
||||||
|
*/
|
||||||
public void setLastRowRelative(boolean rel) {
|
public void setLastRowRelative(boolean rel) {
|
||||||
field_4_last_column=rowRelative.setShortBoolean(field_4_last_column,rel);
|
field_4_last_column=rowRelative.setShortBoolean(field_4_last_column,rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return lastcol relative or not
|
||||||
|
*/
|
||||||
public boolean isLastColRelative()
|
public boolean isLastColRelative()
|
||||||
{
|
{
|
||||||
return colRelative.isSet(field_4_last_column);
|
return colRelative.isSet(field_4_last_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set whether the last column should be relative or not
|
||||||
|
*/
|
||||||
public void setLastColRelative(boolean rel) {
|
public void setLastColRelative(boolean rel) {
|
||||||
field_4_last_column=colRelative.setShortBoolean(field_4_last_column,rel);
|
field_4_last_column=colRelative.setShortBoolean(field_4_last_column,rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the last column in the area
|
||||||
|
*/
|
||||||
public void setLastColumn(short column)
|
public void setLastColumn(short column)
|
||||||
{
|
{
|
||||||
field_4_last_column = column; // fixme
|
field_4_last_column = column; // fixme
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the last column irrespective of the bitmasks
|
||||||
|
*/
|
||||||
public void setLastColumnRaw(short column)
|
public void setLastColumnRaw(short column)
|
||||||
{
|
{
|
||||||
field_4_last_column = column;
|
field_4_last_column = column;
|
||||||
|
Loading…
Reference in New Issue
Block a user