All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.europeanspallationsource.xaos.ui.spi.MIMETypeIconProvider Maven / Gradle / Ivy

Go to download

JavaFX-based portion of the XAOS framework, containing the JavaFX-based controls and tools suitable for other projects too.

The newest version!
/*
 * Copyright 2018 European Spallation Source ERIC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package se.europeanspallationsource.xaos.ui.spi;


import javafx.scene.Node;


/**
 * Provides icons (i.e. {@link Node}s) for a given MIME type.
 *
 * @author [email protected]
 */
public interface MIMETypeIconProvider {

	/**
	 * Return an icon (i.e. a {@link Node} for the given MIME type.
	 *
	 * @param mime The MIME type for which a graphical representation is needed.
	 * @return An icon as a {@link Node} instance, or {@code null}.
	 */
	public Node iconFor( String mime );

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy