objdef.java

来自「fortran并行计算包」· Java 代码 · 共 59 行

JAVA
59
字号
/* *  (C) 2001 by Argonne National Laboratory *      See COPYRIGHT in top-level directory. *//* *  @author  Anthony Chan */package logformat.clogTOdrawable;import logformat.clog.RecDefState;import base.drawable.Category;import base.drawable.Topology;import base.drawable.ColorAlpha;public class ObjDef extends Category{    private static int  nextCategoryIndex = 0;    // Limited access to this package    Integer   start_evt;    Integer   final_evt;    public ObjDef( int in_idx, final RecDefState in_def,                   final Topology in_topo, int in_width )    {        super( in_idx, in_def.description, in_topo,                ColorNameMap.getColorAlpha( in_def.color ), in_width );        this.start_evt   = in_def.startetype;        this.final_evt   = in_def.endetype;    }    public ObjDef( int in_idx,                   final RecDefState in_def, final Topology in_topo,                   final ColorAlpha in_color, int in_width )    {        super( in_idx, in_def.description, in_topo, in_color, in_width );        this.start_evt   = in_def.startetype;        this.final_evt   = in_def.endetype;    }    public static void setFirstNextCategoryIndex( int ival )    {        nextCategoryIndex = ival;    }    public static int getNextCategoryIndex()    {        return nextCategoryIndex++;    }    public String toString()    {        return ( "ObjDef{ evts=(" + start_evt + "," + final_evt + "), "               + super.toString() + " }" );    }}

⌨️ 快捷键说明

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