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

mdlaf.components.separator.MaterialSeparatorUI Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package mdlaf.components.separator;

import mdlaf.utils.MaterialDrawingUtils;

import javax.swing.JComponent;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicSeparatorUI;
import java.awt.Graphics;

/**
 * @author https://github.com/vincenzopalazzo
 */
public class MaterialSeparatorUI extends BasicSeparatorUI {

	public static ComponentUI createUI (JComponent c) {
		return new MaterialSeparatorUI ();
	}

	@Override
	public void paint (Graphics g, JComponent c) {
		super.paint (MaterialDrawingUtils.getAliasedGraphics (g), c);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy