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

com.alee.laf.list.AdaptiveListPainter 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.list;

import com.alee.painter.AdaptivePainter;
import com.alee.painter.Painter;

import javax.swing.*;

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

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

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

    @Override
    public void prepareToPaint ( final Integer layoutOrientation, final Integer listHeight, final Integer listWidth,
                                 final Integer columnCount, final Integer rowsPerColumn, final Integer preferredHeight, final int cellWidth,
                                 final int cellHeight, final int[] cellHeights )
    {
        // Ignore this method in adaptive class
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy