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

com.alee.laf.tree.AdaptiveTreePainter 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.AdaptivePainter;
import com.alee.painter.Painter;

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

/**
 * Simple TreePainter adapter class.
 * It is used to install simple non-specific painters into WebTreeUI.
 *
 * @author Alexandr Zernov
 */

public final class AdaptiveTreePainter extends AdaptivePainter implements ITreePainter
{
    /**
     * Constructs new AdaptiveTreePainter for the specified painter.
     *
     * @param painter painter to adapt
     */
    public AdaptiveTreePainter ( final Painter painter )
    {
        super ( painter );
    }

    @Override
    public boolean isHoverDecorationSupported ()
    {
        return false;
    }

    @Override
    public void prepareToPaint ( final Hashtable drawingCache, final TreeCellRenderer currentCellRenderer )
    {
        // Ignore this method in adaptive class
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy