lphystudio.core.swing.DataDiamondButton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lphy-studio Show documentation
Show all versions of lphy-studio Show documentation
The GUI for LPhy language.
The newest version!
package lphystudio.core.swing;
import lphystudio.core.theme.ThemeColours;
import java.awt.*;
public class DataDiamondButton extends DiamondButton {
public DataDiamondButton(String text) {
super(text, ThemeColours.getDataButtonColor(), ThemeColours.getDataButtonBorderColor());
}
@Override
public void paintComponent(Graphics g) {
((Graphics2D)g).setStroke(new BasicStroke(2.0f));
super.paintComponent(g);
((Graphics2D)g).setStroke(new BasicStroke(1.0f));
//g.setColor(Color.lightGray);
//g.drawString("data", 0, 0);
}
}