⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edgedrawinfo2d.java

📁 MASON代表多主体邻里或网络仿真(Multi-Agent Simulator of Neighborhoods or Networks)。它是乔治梅森大学用Java开发的离散事件多主体仿真核心库
💻 JAVA
字号:
package sim.portrayal.network;import sim.portrayal.*;import java.awt.geom.*;/**   An extension of DrawInfo2D for dealing with edges in visualizing network fields.*/public class EdgeDrawInfo2D extends DrawInfo2D    {    /** A pre-scaled point to draw to. */    public Point2D.Double secondPoint;        public EdgeDrawInfo2D(Rectangle2D.Double draw, Rectangle2D.Double clip, Point2D.Double secondPoint)        {        super(draw,clip);        this.secondPoint = secondPoint;        }            public String toString()         {        return "EdgeDrawInfo2D[ Draw: " + draw + " Clip: " + clip + " 2nd: " + secondPoint + "]";        }    }

⌨️ 快捷键说明

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