/** * Only called by paintBorder() */ protected void paintLeft(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[7], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -270 and paint icon */ } }
Insets insets = getBorderInsets(c); int clipWidth, clipHeight; tileIcons[i] = getDefaultIcon(); paintTopLeft(c, g, 0, 0, insets.left, insets.top); paintTop(c, g, insets.left, 0, width - insets.left - insets.right, insets.top); paintTopRight(c, g, width - insets.right, 0, insets.right, insets.top); paintRight(c, g, width - insets.right, insets.top, insets.right, height - insets.top - insets.bottom); paintBottomRight(c, g, width - insets.right, height - insets.bottom, insets.right, insets.bottom); paintBottom(c, g, insets.left, height - insets.bottom, width - insets.left - insets.right, insets.bottom); paintBottomLeft(c, g, 0, height - insets.bottom, insets.left, insets.bottom); paintLeft(c, g, 0, insets.top, insets.left, height - insets.top - insets.bottom);
Insets insets = getBorderInsets(c); int clipWidth, clipHeight; tileIcons[i] = getDefaultIcon(); paintTopLeft(c, g, 0, 0, insets.left, insets.top); paintTop(c, g, insets.left, 0, width - insets.left - insets.right, insets.top); paintTopRight(c, g, width - insets.right, 0, insets.right, insets.top); paintRight(c, g, width - insets.right, insets.top, insets.right, height - insets.top - insets.bottom); paintBottomRight(c, g, width - insets.right, height - insets.bottom, insets.right, insets.bottom); paintBottom(c, g, insets.left, height - insets.bottom, width - insets.left - insets.right, insets.bottom); paintBottomLeft(c, g, 0, height - insets.bottom, insets.left, insets.bottom); paintLeft(c, g, 0, insets.top, insets.left, height - insets.top - insets.bottom);
Insets insets = getBorderInsets(c); int clipWidth, clipHeight; tileIcons[i] = getDefaultIcon(); paintTopLeft(c, g, 0, 0, insets.left, insets.top); paintTop(c, g, insets.left, 0, width - insets.left - insets.right, insets.top); paintTopRight(c, g, width - insets.right, 0, insets.right, insets.top); paintRight(c, g, width - insets.right, insets.top, insets.right, height - insets.top - insets.bottom); paintBottomRight(c, g, width - insets.right, height - insets.bottom, insets.right, insets.bottom); paintBottom(c, g, insets.left, height - insets.bottom, width - insets.left - insets.right, insets.bottom); paintBottomLeft(c, g, 0, height - insets.bottom, insets.left, insets.bottom); paintLeft(c, g, 0, insets.top, insets.left, height - insets.top - insets.bottom);
/** * Only called by paintBorder() */ protected void paintBottomLeft(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[6], c, g, x, y, width, height); } else { Icon icon = tileIcons[0]; /** @todo Rotate -270 and paint icon */ } }
Insets insets = getBorderInsets(c); int clipWidth, clipHeight; tileIcons[i] = getDefaultIcon(); paintTopLeft(c, g, 0, 0, insets.left, insets.top); paintTop(c, g, insets.left, 0, width - insets.left - insets.right, insets.top); paintTopRight(c, g, width - insets.right, 0, insets.right, insets.top); paintRight(c, g, width - insets.right, insets.top, insets.right, height - insets.top - insets.bottom); paintBottomRight(c, g, width - insets.right, height - insets.bottom, insets.right, insets.bottom); paintBottom(c, g, insets.left, height - insets.bottom, width - insets.left - insets.right, insets.bottom); paintBottomLeft(c, g, 0, height - insets.bottom, insets.left, insets.bottom); paintLeft(c, g, 0, insets.top, insets.left, height - insets.top - insets.bottom);
/** * Only called by paintBorder() */ protected void paintRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[3], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -90 and paint icon */ } }
Insets insets = getBorderInsets(c); int clipWidth, clipHeight; tileIcons[i] = getDefaultIcon(); paintTopLeft(c, g, 0, 0, insets.left, insets.top); paintTop(c, g, insets.left, 0, width - insets.left - insets.right, insets.top); paintTopRight(c, g, width - insets.right, 0, insets.right, insets.top); paintRight(c, g, width - insets.right, insets.top, insets.right, height - insets.top - insets.bottom); paintBottomRight(c, g, width - insets.right, height - insets.bottom, insets.right, insets.bottom); paintBottom(c, g, insets.left, height - insets.bottom, width - insets.left - insets.right, insets.bottom); paintBottomLeft(c, g, 0, height - insets.bottom, insets.left, insets.bottom); paintLeft(c, g, 0, insets.top, insets.left, height - insets.top - insets.bottom);
/** * Only called by paintBorder() */ protected void paintBottom(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[5], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -180 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintTop(Component c, Graphics g, int x, int y, int width, int height) { paint(tileIcons[1], c, g, x, y, width, height); }
/** * Only called by paintBorder() */ protected void paintBottom(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[5], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -180 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintBottomRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[4], c, g, x, y, width, height); } else { Icon icon = tileIcons[0]; /** @todo Rotate -180 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[3], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -90 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintTopRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[2], c, g, x, y, width, height); } else { Icon icon = tileIcons[0]; /** @todo Rotate -90 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintBottomLeft(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[6], c, g, x, y, width, height); } else { Icon icon = tileIcons[0]; /** @todo Rotate -270 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[3], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -90 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintBottom(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[5], c, g, x, y, width, height); } else { Icon icon = tileIcons[1]; /** @todo Rotate -180 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintTopRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[2], c, g, x, y, width, height); } else { Icon icon = tileIcons[0]; /** @todo Rotate -90 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintBottomRight(Component c, Graphics g, int x, int y, int width, int height) { if (tileIcons.length == 8) { paint(tileIcons[4], c, g, x, y, width, height); } else { Icon icon = tileIcons[0]; /** @todo Rotate -180 and paint icon */ } }
/** * Only called by paintBorder() */ protected void paintTop(Component c, Graphics g, int x, int y, int width, int height) { paint(tileIcons[1], c, g, x, y, width, height); }