📄 marginlabellayout.java
字号:
package net.sourceforge.barbecue.output;
public class MarginLabelLayout extends LabelLayout {
public MarginLabelLayout(int x, int y, int width, int height) {
super(x, y, width, height);
}
protected void calculate() {
textX = x + (width / 2) - ((int)textLayout.getBounds().getWidth() / 2);
textY = y + (height / 2) + ((int)textLayout.getBounds().getHeight() / 2);
bgX = x;
bgY = y;
bgHeight = height;
bgWidth = width;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -