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

org.noos.xing.mydoggy.plaf.ui.transparency.TransparencyManager Maven / Gradle / Ivy

The newest version!
package org.noos.xing.mydoggy.plaf.ui.transparency;

import java.awt.*;

/**
 * 
 * @author Angelo De Caro ([email protected])
 */
public interface TransparencyManager {

    /**
     * Returns true if the manager can manage the transparency, false otherwise. 
     *
     * @return true if the manager can manage the transparency, false otherwise.
     */
    boolean isServiceAvailable();

    /**
     * Sets the transparency value for the spicified component.
     *
     * @param component the component to which assign the transparency.
     * @param transparency the transparency value. The valid range is [0.0 , 1.0].
     */
    void setAlphaModeRatio(E component, float transparency);

    /**
     * Returns true if the transparency value of the component if higher than zero,
     * false otherwise.
     * @param component the component for which retrieve the transparency value.
     * @return true if the transparency value of the component if higher than zero,
     * false otherwise.
     */
    boolean isAlphaModeEnabled(E component);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy