Package com.lightcrafts.model

Examples of com.lightcrafts.model.OperationType


    // Find the user presentable version of the given slider or
    // checkbox key in the properties.  If none is configured, just
    // return the given String.
    private String getUserPresentableKey(String key) {
        OperationType type = op.getType();
        String name = type.getName();
        name = name.replaceAll(" ", "");
        String propKey = name + "-" + key;
        try {
            return Resources.getString(propKey);
        }
View Full Code Here


    // (as found, for instance, in opActions.properties) into help topics
    // (as defined in HelpConstants).
    //
    // This mapping needs maintenance, as tools come and go.
    protected String getHelpTopic() {
        OperationType type = op.getType();
        String name = type.getName();
        if (name.startsWith("ZoneMapper")) {
            return HelpConstants.HELP_TOOL_ZONEMAPPER;
        }
        if (name.startsWith("UnSharp Mask")) {
            return HelpConstants.HELP_TOOL_SHARPEN;
View Full Code Here

        ImageMetadata meta = doc.getMetadata();
        ImageType type = meta.getImageType();
        if (type instanceof RawImageType) {
            if (! doc.hasRawAdjustments()) {
                Engine engine = doc.getEngine();
                OperationType rawType = engine.getRawAdjustmentsOperationType();
                Editor editor = doc.getEditor();
                editor.addControl(rawType, 0);
                doc.discardEdits();
                doc.markClean();
            }
View Full Code Here

    List<Action> getActions() {
        return new LinkedList<Action>(actions);
    }

    static String getName(Operation op) {
        OperationType type = op.getType();
        return getName(type);
    }
View Full Code Here

        String name = getName(key);
        return (name != null) ? name : type.getName();
    }

    static BufferedImage getIcon(Operation op) {
        OperationType type = op.getType();
        return getIcon(type);
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.model.OperationType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.