小编Mat*_*nam的帖子

AffineTransform似乎忽略了组件边界

我有以下内容:

public class ParametricEQView extends JPanel implements PluginView {
    private static final int BAND_WIDTH = 3;
    private static final int THROW_HEIGHT = 64;

    private static final int WIDTH = 128*BAND_WIDTH + 2*MARGIN;
    private static final int HEIGHT = 2*THROW_HEIGHT + 2*MARGIN;
    private static final int MID_HEIGHT = THROW_HEIGHT + MARGIN;

    private final ParametricEQ _peq;

    public ParametricEQView(ParametricEQ peq) {
        super();
        _peq = peq;

        SwingUtils.freezeSize(this, WIDTH, HEIGHT);
        setToolTipText("Parametric Equalizer");
    }

    @Override
    public void paint(Graphics g) {
        final Graphics2D g2d = (Graphics2D) g; …
Run Code Online (Sandbox Code Playgroud)

java swing jpanel affinetransform paintcomponent

6
推荐指数
1
解决办法
115
查看次数

标签 统计

affinetransform ×1

java ×1

jpanel ×1

paintcomponent ×1

swing ×1