# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. # # * Reflected Utilities move to sim.util.gui. # * Reflected WordWrap move to sim.util.gui. # * sim.util.gui.Utilities.iRound() needs to stay public because # sim.app.pacman.Agent.changeLocation() calls it. # # Above lines and this line are ignored by the patching process. Index: sim/app/pacman/Agent.java --- sim/app/pacman/Agent.java Base (BASE) +++ sim/app/pacman/Agent.java Locally Modified (Based On LOCAL) @@ -9,6 +9,7 @@ import sim.engine.*; import sim.field.continuous.*; import sim.util.*; +import sim.util.gui.Utilities; import ec.util.*; import sim.portrayal.*; Index: sim/display3d/ToolTipBehavior.java --- sim/display3d/ToolTipBehavior.java Base (BASE) +++ sim/display3d/ToolTipBehavior.java Locally Modified (Based On LOCAL) @@ -246,7 +246,7 @@ if (htmlText != null) htmlText = "" + htmlText + ""; DialogToolTip.showToolTip(s, htmlText); } Index: sim/portrayal/inspector/ChartingPropertyInspector.java --- sim/portrayal/inspector/ChartingPropertyInspector.java Base (BASE) +++ sim/portrayal/inspector/ChartingPropertyInspector.java Locally Modified (Based On LOCAL) @@ -271,7 +271,7 @@ { if (timer == null) { - timer= sim.util.Utilities.doLater(milliseconds, new Runnable() + timer= Utilities.doLater(milliseconds, new Runnable() { public void run() { Index: sim/portrayal/inspector/PropertyInspector.java --- sim/portrayal/inspector/PropertyInspector.java Base (BASE) +++ sim/portrayal/inspector/PropertyInspector.java Locally Modified (Based On LOCAL) @@ -11,6 +11,7 @@ import sim.display.*; import sim.engine.*; import sim.util.*; +import sim.util.gui.Utilities; import java.io.*; import java.awt.event.*; Index: sim/util/gui/Utilities.java --- sim/util/gui/Utilities.java Base (BASE) +++ sim/util/gui/Utilities.java Locally Modified (Based On LOCAL) @@ -42,7 +42,7 @@ /* Returns the integer floor of a double, or as close as possible. The return value of NaN is undefined: it's often zero but doesn't have to be. This is about twice as fast as (int)Math.round(d), though it can't get inlined because it's 40 bytes. :-( */ - private static int iRound(double d) + public static int iRound(double d) { d += 0.5; // same protocol as Math.round, see its documentation int i = (int) d;