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

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

import javax.swing.*;

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

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

    /**
     * Prepares painter to pain list.
     *
     * @param layoutOrientation cached layout orientation
     * @param listHeight        cached list height
     * @param listWidth         cached list width
     * @param columnCount       cached column count
     * @param rowsPerColumn     cached rows per column amount
     * @param preferredHeight   cached preferred height
     * @param cellWidth         cached cell width
     * @param cellHeight        cached cell height
     * @param cellHeights       cached cell heights
     */
    public void prepareToPaint ( Integer layoutOrientation, Integer listHeight, Integer listWidth, Integer columnCount,
                                 Integer rowsPerColumn, Integer preferredHeight, int cellWidth, int cellHeight, int[] cellHeights );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy