📄 zrow.java
字号:
/*
* put your module comment here
* formatted with JxBeauty (c) johann.langhofer@nextra.at
*/
package ezcell;
import java.io.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2001</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
*/
public
class ZRow extends ZBase
implements Serializable, Comparable ,Cloneable{
/**
* put your documentation comment here
*/
private int height = 20;
/**
* put your documentation comment here
*/
public ZRow () {
}
/**
* put your documentation comment here
* @param ZDefaultSheet sheet
*/
public ZRow (ZDefaultSheet sheet) {
super(sheet);
}
/**
* put your documentation comment here
* @param ZDefaultSheet sheet
*/
public ZRow (ZDefaultSheet sheet, int row) {
super(sheet);
this.row = row;
}
/**
* put your documentation comment here
* @return
*/
public int getHeight () {
return height;
}
/**
* put your documentation comment here
* @param height
*/
public void setHeight (int height) {
this.height = height;
setProperty(PTY_Height);
}
/**
* put your documentation comment here
* @param row
* @param col
* @return
*/
public ZBase underLayer (int row, int col) {
if (col == -1)
return sheet.defaultBase;
else {
ZBase base = sheet.getExistCol(col);
if (base != null)
return base;
else
return sheet.defaultBase;
}
}
/**
* put your documentation comment here
* @return
*/
public int type () {
return ZBase.ROW;
}
/**
* put your documentation comment here
* @param ois
* @exception ClassNotFoundException, IOException
*/
private void readObject (ObjectInputStream ois) throws ClassNotFoundException,
IOException {
height = 25;
_readObject(ois);
if (hasProperty(PTY_Height))
height = ois.readInt();
}
/**
* put your documentation comment here
* @param oos
* @exception ClassNotFoundException, IOException
*/
private void writeObject (ObjectOutputStream oos) throws ClassNotFoundException,
IOException {
_writeObject(oos);
if (hasProperty(PTY_Height))
oos.writeInt(height);
}
/**
* put your documentation comment here
* @param o
* @return
*/
public int compareTo (Object o) {
int result = 0;
ZRow or = (ZRow)o;
if (row > or.row)
result = 1;
else if (row < or.row)
result = -1;
if (ZBase.compareReverse)
result *= -1;
return result;
}
/**
* put your documentation comment here
* @return
*/
public Object clone () {
Object obj = null;
try {
obj = super.clone();
} catch (Exception e) {}
return obj;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -