Revision 408:f8067ad42912

View differences:

src/main/java/cz/agents/alite/vis/layer/toggle/KeyToggleLayer.java
26 26
        this.toggleKeyCode = null;
27 27
    }
28 28

  
29
    protected KeyToggleLayer(String toggleKey, VisLayer layer) {
29
    protected KeyToggleLayer(String toggleKey, boolean enabled, VisLayer layer) {
30 30
    	this.toggleKey = toggleKey;
31 31
    	this.toggleKeyCode = null;
32
    	this.setEnabled(enabled);
32 33
    	addSubLayer(layer);
33 34
    }
34 35
    
......
100 101
        return new KeyToggleLayer(toggleKeyCode);
101 102
    }
102 103
    
103
    public static KeyToggleLayer create(String toggleKeyCode, VisLayer visLayer) {
104
        return new KeyToggleLayer(toggleKeyCode, visLayer);
104
    public static KeyToggleLayer create(String toggleKeyCode, boolean enabled, VisLayer visLayer) {
105
        return new KeyToggleLayer(toggleKeyCode, enabled, visLayer);
105 106
    }
106 107

  
107 108
}

Also available in: Unified diff