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

com.alee.laf.tree.ITreePainter Maven / Gradle / Ivy

Go to download

WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications

There is a newer version: 2.2.1
Show newest version
package com.alee.laf.tree;

import com.alee.painter.SpecificPainter;

import javax.swing.*;
import javax.swing.tree.TreeCellRenderer;
import javax.swing.tree.TreePath;
import java.util.Hashtable;

/**
 * Base interface for JTree component painters.
 *
 * @param  component type
 * @param  UI type
 * @author Alexandr Zernov
 */

public interface ITreePainter extends SpecificPainter
{
    /**
     * Returns whether or not hover node decoration is supported by this tree painter.
     *
     * @return true if hover node decoration is supported by this tree painter, false otherwise
     */
    public boolean isHoverDecorationSupported ();

    /**
     * Prepares painter to pain tree.
     *
     * @param drawingCache        vertical lines drawing cache
     * @param currentCellRenderer current cell renderer
     */
    public void prepareToPaint ( Hashtable drawingCache, TreeCellRenderer currentCellRenderer );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy