--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalCheckBoxIcon.java Fri Jun 27 10:26:39 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalCheckBoxIcon.java Mon Jun 30 16:32:36 2014 +0400
@@ -49,6 +49,11 @@
@SuppressWarnings("serial") // Same-version serialization only
public class MetalCheckBoxIcon implements Icon, UIResource, Serializable {
+ /**
+ * Returns the size of the control.
+ *
+ * @return the size of the control
+ */
protected int getControlSize() { return 13; }
public void paintIcon(Component c, Graphics g, int x, int y) {
@@ -91,6 +96,14 @@
}
}
+ /**
+ * Paints {@code MetalCheckBoxIcon}.
+ *
+ * @param c a component
+ * @param g an instance of {@code Graphics}
+ * @param x an X coordinate
+ * @param y an Y coordinate
+ */
protected void drawCheck(Component c, Graphics g, int x, int y) {
int controlSize = getControlSize();
g.fillRect( x+3, y+5, 2, controlSize-8 );