Commit 8fbfe266 authored by mey's avatar mey
Browse files

CombinedInspector.java: gets rid of JScrollPane from inspector frame

    added inspectors will have theirs
    fixes issue on PathfindingMapInspectors drawing full map
        when they reside in CombinedInspector
AbstractPathfindingMapInspector, PotentialMapInspector.java
    improved doc
parent 6066a9e1
......@@ -233,6 +233,12 @@ abstract class AbstractPathfindingMapInspector<T extends PathfindingMap> extends
return new DrawInfo2D(guiState, getPortrayal(), draw, clip);
}
/**
* Displays object info on click.
*
* @author mey
*
*/
private class MyMouseMotionListener implements MouseMotionListener, Serializable {
private static final long serialVersionUID = 1L;
......@@ -246,6 +252,12 @@ abstract class AbstractPathfindingMapInspector<T extends PathfindingMap> extends
}
}
/**
* Displays object info on drag.
*
* @author mey
*
*/
private class MyMouseListener implements MouseListener, Serializable {
private static final long serialVersionUID = 1L;
......
......@@ -5,6 +5,7 @@ import sim.display.GUIState;
import sim.portrayal.FieldPortrayal2D;
import sim.portrayal.Inspector;
import sim.portrayal.grid.FastValueGridPortrayal2D;
import sim.portrayal.grid.ValueGridPortrayal2D;
import sim.util.gui.ColorMap;
import sim.util.gui.ColorMapFactory;
......@@ -19,7 +20,7 @@ import sim.util.gui.ColorMapFactory;
public class PotentialMapInspector extends AbstractPathfindingMapInspector<PotentialMap> {
private static final long serialVersionUID = 1L;
private final FastValueGridPortrayal2D portrayal = new FastValueGridPortrayal2D(true);
private final ValueGridPortrayal2D portrayal = new FastValueGridPortrayal2D(true);
/**
* Instantiates a {@link PotentialMapInspector} displaying the given map.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment