com.alee.laf.tree.AdaptiveTreePainter Maven / Gradle / Ivy
The 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 {@link TreePainter} adapter class.
* It is used to install simple non-specific painters into {@link WTreeUI}.
*
* @param component type
* @param component UI type
* @author Alexandr Zernov
*/
public final class AdaptiveTreePainter extends AdaptivePainter implements ITreePainter
{
/**
* Constructs new {@link AdaptiveTreePainter} for the specified painter.
*
* @param painter {@link Painter} to adapt
*/
public AdaptiveTreePainter ( final Painter painter )
{
super ( painter );
}
@Override
public boolean isRowHoverDecorationSupported ()
{
return false;
}
@Override
public void prepareToPaint ( final Hashtable drawingCache, final TreeCellRenderer currentCellRenderer )
{
// Ignore this method in adaptive class
}
}