Commit 44f2c13e authored by mey's avatar mey
Browse files

FlowMapInspector.java: using black color for directions

DirectionPortrayal.java
    added constructor to specify direction draw paint
parent 753c645d
package sim.portrayal.inspector;
import java.awt.Color;
import de.zmt.pathfinding.FlowMap;
import sim.display.GUIState;
import sim.portrayal.DirectionPortrayal;
......@@ -30,7 +32,7 @@ public class FlowMapInspector extends AbstractPathfindingMapInspector<FlowMap> {
public FlowMapInspector(GUIState state, FlowMap map) {
super(state, map);
portrayal.setField(map.providePortrayable().getField());
portrayal.setPortrayalForClass(Double2D.class, new DirectionPortrayal());
portrayal.setPortrayalForClass(Double2D.class, new DirectionPortrayal(Color.BLACK));
}
/** Appends notification text if view is compressed due to lack of space. */
......
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