23 package com.realtime.crossfire.jxclient.gui.button;
25 import java.awt.Graphics;
26 import java.awt.Image;
27 import org.jetbrains.annotations.NotNull;
68 throw new IllegalArgumentException(
"left image height is "+
imageLeft.getHeight(
null)+
" but middle image height is "+
imageMiddle.getHeight(
null));
71 throw new IllegalArgumentException(
"middle image height is "+
imageMiddle.getHeight(
null)+
" but right image height is "+
imageRight.getHeight(
null));
93 public void render(@NotNull
final Graphics g,
final int w) {
100 while (tmpWidth > 0) {
101 final int thisWidth = Math.min(tmpWidth, middleWidth);
104 tmpWidth -= thisWidth;