@Override public void setMaximumSize(final Dimension DIM) { int width = DIM.width > 1080 ? 1080 : DIM.width; int height = DIM.height > 1080 ? 1080 : DIM.height; final int SIZE = width <= height ? width : height; super.setMaximumSize(new Dimension(SIZE, SIZE)); calcInnerBounds(); init(INNER_BOUNDS.width); initialized = true; invalidate(); repaint(); }
@Override public void setMinimumSize(final Dimension DIM) { int width = DIM.width < 16 ? 16 : DIM.width; int height = DIM.height < 16 ? 16 : DIM.height; final int SIZE = width <= height ? width : height; super.setMinimumSize(new Dimension(SIZE, SIZE)); calcInnerBounds(); init(INNER_BOUNDS.width); initialized = true; invalidate(); repaint(); }
@Override public void setMaximumSize(final Dimension DIM) { int width = DIM.width > 1080 ? 1080 : DIM.width; int height = DIM.height > 1080 ? 1080 : DIM.height; final int SIZE = width <= height ? width : height; super.setMaximumSize(new Dimension(SIZE, SIZE)); calcInnerBounds(); init(INNER_BOUNDS.width); initialized = true; invalidate(); repaint(); }
@Override public void setPreferredSize(final Dimension DIM) { final int SIZE = DIM.width <= DIM.height ? DIM.width : DIM.height; super.setPreferredSize(new Dimension(SIZE, SIZE)); calcInnerBounds(); init(INNER_BOUNDS.width); initialized = true; invalidate(); repaint(); }
@Override public void setMinimumSize(final Dimension DIM) { int width = DIM.width < 16 ? 16 : DIM.width; int height = DIM.height < 16 ? 16 : DIM.height; final int SIZE = width <= height ? width : height; super.setMinimumSize(new Dimension(SIZE, SIZE)); calcInnerBounds(); init(INNER_BOUNDS.width); initialized = true; invalidate(); repaint(); }
@Override public void setPreferredSize(final Dimension DIM) { final int SIZE = DIM.width <= DIM.height ? DIM.width : DIM.height; super.setPreferredSize(new Dimension(SIZE, SIZE)); calcInnerBounds(); init(INNER_BOUNDS.width); initialized = true; invalidate(); repaint(); }