List of utility methods to do Draw 3D
void | draw3DMiddle(Graphics g, int which, int x, int y, int fmWidth, int fmHeight) draw D Middle Color oldColor = g.getColor();
if (which == RAISED) {
g.setColor(Color.white);
g.drawLine(x, y, x + fmWidth, y);
g.drawLine(x, y + 1, x + fmWidth, y + 1);
g.setColor(Color.black);
g.drawLine(x, y + fmHeight - 2, x + fmWidth, y + fmHeight - 2);
g.setColor(Color.lightGray);
...
|
void | draw3DOne(Graphics g, int which, int x, int y, int fmWidth, int fmHeight) draw D One Color oldColor = g.getColor();
if (which == INSET) {
g.setColor(Color.black);
g.drawLine(x, y, x + fmWidth - 2, y);
g.drawLine(x, y + 1, x + fmWidth - 3, y + 1);
g.drawLine(x, y, x, y + fmHeight - 2);
g.drawLine(x + 1, y, x + 1, y + fmHeight - 2);
g.setColor(Color.white);
...
|