blob: 31428beb476258c54f6b1b7b120cd41e86d45bed [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2005, 2019 SAP SE
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* SAP SE - initial API, implementation and documentation
* mwenz - Bug 370888 - API Access to export and print
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti.ui.print;
/**
* A generic interface for preference containers for printing a diagram, which
* serves as abstraction for generic edit fields which store their values in a
* preference object
*
* @noinstantiate This class is not intended to be instantiated by clients.
* @noextend This class is not intended to be subclassed by clients.
* @since 0.10
*/
public interface IPrintPreferences {
/**
* Resets all preferences to their default values.
*/
public void setDefaults();
/**
* Sets the integer preference value of the preference at position atIndex
* to the given value.
*
* @param atIndex
* The index of the preference to set
* @param value
* The new value to set
*/
public void setIntPreference(int atIndex, int value);
/**
* Returns the integer value of the preference with the given index.
*
* @param atIndex
* The index of the preference to return
* @return The value of the preference with the given index as an integer
*/
public int getIntPreference(int atIndex);
/**
* Sets the double preference value of the preference at position atIndex to
* the given value.
*
* @param atIndex
* The index of the preference to set
* @param value
* The new value to set
*/
public void setDoublePreference(int atIndex, double value);
/**
* Returns the double value of the preference with the given index.
*
* @param atIndex
* The index of the preference to return
* @return The value of the preference with the given index as a double
*/
public double getDoublePreference(int atIndex);
}