escherrecordtype.java

来自「实现JAVA界面的代码GWT」· Java 代码 · 共 64 行

JAVA
64
字号
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   EscherRecordType.java

package jxl.biff.drawing;


final class EscherRecordType
{

    private int value;
    private static EscherRecordType types[] = new EscherRecordType[0];
    public static final EscherRecordType UNKNOWN = new EscherRecordType(0);
    public static final EscherRecordType DGG_CONTAINER = new EscherRecordType(61440);
    public static final EscherRecordType BSTORE_CONTAINER = new EscherRecordType(61441);
    public static final EscherRecordType DG_CONTAINER = new EscherRecordType(61442);
    public static final EscherRecordType SPGR_CONTAINER = new EscherRecordType(61443);
    public static final EscherRecordType SP_CONTAINER = new EscherRecordType(61444);
    public static final EscherRecordType DGG = new EscherRecordType(61446);
    public static final EscherRecordType BSE = new EscherRecordType(61447);
    public static final EscherRecordType DG = new EscherRecordType(61448);
    public static final EscherRecordType SPGR = new EscherRecordType(61449);
    public static final EscherRecordType SP = new EscherRecordType(61450);
    public static final EscherRecordType OPT = new EscherRecordType(61451);
    public static final EscherRecordType CLIENT_ANCHOR = new EscherRecordType(61456);
    public static final EscherRecordType CLIENT_DATA = new EscherRecordType(61457);
    public static final EscherRecordType CLIENT_TEXT_BOX = new EscherRecordType(61453);
    public static final EscherRecordType SPLIT_MENU_COLORS = new EscherRecordType(61726);

    private EscherRecordType(int val)
    {
        value = val;
        EscherRecordType newtypes[] = new EscherRecordType[types.length + 1];
        System.arraycopy(types, 0, newtypes, 0, types.length);
        newtypes[types.length] = this;
        types = newtypes;
    }

    public int getValue()
    {
        return value;
    }

    public static EscherRecordType getType(int val)
    {
        EscherRecordType type = UNKNOWN;
        int i = 0;
        do
        {
            if(i >= types.length)
                break;
            if(val == types[i].value)
            {
                type = types[i];
                break;
            }
            i++;
        } while(true);
        return type;
    }

}

⌨️ 快捷键说明

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