package org.geogebra.common.properties.impl.graphics;

import java.util.ArrayList;

import org.geogebra.common.main.App;
import org.geogebra.common.main.Localization;
import org.geogebra.common.properties.aliases.ActionableIconProperty;
import org.geogebra.common.properties.aliases.ActionableIconPropertyCollection;
import org.geogebra.common.properties.impl.AbstractPropertyCollection;

public class GraphicsActionsPropertyCollection
		extends AbstractPropertyCollection<ActionableIconProperty>
		implements ActionableIconPropertyCollection {

	/**
	 * Constructs a GraphicsActionsPropertyCollection.
	 * @param app app
	 * @param localization localization
	 */
	public GraphicsActionsPropertyCollection(App app, Localization localization) {
		super(localization, "");
		ArrayList<ActionableIconProperty> properties = new ArrayList<>();
		properties.add(new StandardViewAction(localization, app.getActiveEuclidianView()));
		properties.add(new ShowAllObjectsAction(localization, app.getConfig(),
				app.getActiveEuclidianView()));
		setProperties(properties.toArray(new ActionableIconProperty[0]));
	}
}
