drawpolicy.java

来自「MASON代表多主体邻里或网络仿真(Multi-Agent Simulator 」· Java 代码 · 共 19 行

JAVA
19
字号
package sim.portrayal.grid;import sim.util.*;/** Called by Sparse2DPortrayal and Object2DPortrayal to determine if all objects    should be drawn or only one.  The Bags provided contain objects all sitting in    the same cell location onscreen. */public interface DrawPolicy    {    public static final boolean DRAW_ALL = false;    public static final boolean DONE = true;    /** Give the bag fromHere (which you should NOT MODIFY), which contains objects all        occupying the same location, add to the bag addtoHere only those objects you wish to be drawn,        then return DONE.  Alternatively, simply make no additions, then return DRAW_ALL if you wish the        entire fromHere bag to be drawn.  If you don't want anything to be drawn, just return DONE.        Do not replace the array in addToHere.  */    public boolean objectToDraw(Bag fromHere, Bag addToHere);    }

⌨️ 快捷键说明

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