com.alee.laf.tree.AdaptiveTreePainter Maven / Gradle / Ivy
package com.alee.laf.tree;
import com.alee.api.annotations.NotNull;
import com.alee.painter.AdaptivePainter;
import com.alee.painter.Painter;
import javax.swing.*;
/**
* 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 ( @NotNull final Painter painter )
{
super ( painter );
}
@Override
public boolean isRowHoverDecorationSupported ()
{
return false;
}
@Override
public void prepareToPaint ( @NotNull final TreePaintParameters parameters )
{
/**
* Nothing needs to be done for adaptive class.
*/
}
@Override
public void cleanupAfterPaint ()
{
/**
* Nothing needs to be done for adaptive class.
*/
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy