lphystudio.core.swing.DataButton 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 DataButton extends SquareButton {
public DataButton(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);
//((Graphics2D)g).drawString("data", (float)origin.getX(), (float)origin.getY()+10.0f);
}
}