zcell.java

来自「用Java写的报表.功能如下: 0.内建网络打印,网络预览功能! 1.文件操作。」· Java 代码 · 共 306 行

JAVA
306
字号
/*
 * Copyright 2002 EZCell , Inc. All rights reserved.
 * Version  1.0.
 * Author   W.John
 */
/*
 * put your module comment here
 * formatted with JxBeauty (c) johann.langhofer@nextra.at
 */
package ezcell;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2001</p>
 * <p>Company: </p>
 * @author unascribed
 * @version 1.0
 */
public interface ZCell {
    /**
     *
     * @return
     */
    public ZBrush getBackBrush();

    /**
     *
     * @return
     */
    public boolean isChild();

    /**
     *
     * @return
     */
    public int getCol();

    /**
     *
     * @param cookie
     */
    public void setCookie(int cookie);

    /**
     *
     * @return
     */
    public int getCookie();

    /**
     *
     * @return
     */
    public ZFont getFont();

    /**
     *
     * @return
     */
    public String getFormat();

    /**
     *
     * @return
     */
    public boolean isHead();

    /**
     *
     * @return
     */
    public int getHeight();

    /**
     *
     * @return
     */
    public int getHorzAlign();

    /**
     *
     * @return
     */
    public ZPen getLeftBorder0();

    /**
     *
     * @return
     *
     * @throws Exception
     */
    public ZCell getParent() throws Exception;

    /**
     *
     * @return
     */
    public boolean isParent();

    /**
     *
     * @return
     */
    public boolean isReadOnly();

    /**
     *
     * @return
     */
    public int getRow();

    /**
     *
     * @return
     */
    public ZDefaultSheet getSheet();

    /**
     *
     * @return
     */
    public ZRect getSpan();

    /**
     *
     * @return
     */
    public String getText();

    /**
     *
     * @return
     */
    public ZBrush getTextBrush();

    /**
     *
     * @return
     */
    public ZPen getTopBorder0();

    /**
     *
     * @return
     */
    public int getVertAlign();

    /**
     *
     * @return
     */
    public int getWidth();

    /**
     *
     * @return
     */
    public boolean isWordWrap();

    /**
     *
     * @param sheet
     * @param row
     * @param col
     *
     * @return
     */
    public ZCell clone(ZSheet sheet, int row, int col);
}

abstract class ZAbstractCell implements ZCell {
    /**
     *
     * @return
     */
    public ZBrush getBackBrush() {
        return null;
    }

    /**
     *
     * @return
     */
    public boolean isChild() {
        return false;
    }

    /**
     *
     * @return
     */
    public ZFont getFont() {
        return null;
    }

    /**
     *
     * @return
     */
    public String getFormat() {
        return null;
    }

    /**
     *
     * @return
     */
    public boolean isHead() {
        return (getRow() == 0) || (getCol() == 0);
    }

    /**
     *
     * @return
     */
    public int getHorzAlign() {
        return ZBase.LEFT;
    }

    /**
     *
     * @return
     */
    public ZPen getLeftBorder0() {
        return null;
    }

    /**
     *
     * @return
     *
     * @throws Exception
     */
    public ZCell getParent() throws Exception {
        return null;
    }

    /**
     *
     * @return
     */
    public boolean isParent() {
        return false;
    }

    /**
     *
     * @return
     */
    public boolean isReadOnly() {
        return false;
    }

    /**
     *
     * @return
     */
    public ZRect getSpan() {
        return null;
    }

    /**
     *
     * @return
     */
    public String getText() {
        return null;
    }

    /**
     *
     * @return
     */
    public ZBrush getTextBrush() {
        return null;
    }

    /**
     *
     * @return
     */
    public ZPen getTopBorder0() {
        return null;
    }

    /**
     *
     * @return
     */
    public int getVertAlign() {
        return ZBase.YCENTER;
    }

    /**
     *
     * @param sheet
     * @param row
     * @param col
     *
     * @return
     */
    public ZCell clone(ZSheet sheet, int row, int col) {
        return null;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?