Examples of paintSkin()


Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

        XPStyle xp = XPStyle.getXP();
        Part part = vertical ? Part.PP_BARVERT : Part.PP_BAR;
        Skin skin = xp.getSkin(progressBar, part);

        // Paint background
        skin.paintSkin(g, 0, 0, barRectWidth, barRectHeight, null);
    }
}
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

        public void paintIcon(Component c, Graphics g, int x, int y) {
            XPStyle xp = XPStyle.getXP();
            assert xp != null;
            if (xp != null) {
                Skin skin = xp.getSkin(null, part);
                skin.paintSkin(g, x, y, state);
            }
        }

        /**
         * Returns the icon's width.
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

            if (gripperInsets == null ||
                (v && (thumbBounds.height - gripperInsets.top -
                       gripperInsets.bottom >= skin.getHeight())) ||
                (!v && (thumbBounds.width - gripperInsets.left -
                        gripperInsets.right >= skin.getWidth()))) {
                skin.paintSkin(g,
                               thumbBounds.x + (thumbBounds.width  - skin.getWidth()) / 2,
                               thumbBounds.y + (thumbBounds.height - skin.getHeight()) / 2,
                               skin.getWidth(), skin.getHeight(), state);
            }
        } else {
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

                        case WEST:  state = State.LEFTNORMAL;  break;
                        case EAST:  state = State.RIGHTNORMAL; break;
                    }
                }

                skin.paintSkin(g, 0, 0, getWidth(), getHeight(), state);
            } else {
                super.paint(g);
            }
        }
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

            skin = xp.getSkin(c, Part.CP_READONLY);
        }
        if (skin == null) {
            skin = xp.getSkin(c, Part.CP_COMBOBOX);
        }
        skin.paintSkin(g, 0, 0, c.getWidth(), c.getHeight(), state);
    }

    /**
     * If necessary paints the currently selected item.
     *
 
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

        public void paintIcon(Component c, Graphics g, int x, int y) {
            XPStyle xp = XPStyle.getXP();
            assert xp != null;
            if (xp != null) {
                Skin skin = xp.getSkin(null, part);
                skin.paintSkin(g, x, y, state);
            }
        }
       
        /**
         * Returns the icon's width.
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

            if (gripperInsets == null ||
                (v && (thumbBounds.height - gripperInsets.top -
                       gripperInsets.bottom >= skin.getHeight())) ||
                (!v && (thumbBounds.width - gripperInsets.left -
                        gripperInsets.right >= skin.getWidth()))) {
                skin.paintSkin(g,
                               thumbBounds.x + (thumbBounds.width  - skin.getWidth()) / 2,
                               thumbBounds.y + (thumbBounds.height - skin.getHeight()) / 2,
                               skin.getWidth(), skin.getHeight(), state);
            }
  } else {
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

      case WEST:  state = State.LEFTNORMAL;  break;
      case EAST:  state = State.RIGHTNORMAL; break;
        }
    }

    skin.paintSkin(g, 0, 0, getWidth(), getHeight(), state);
      } else {
    super.paint(g);
      }
  }
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

            skin = xp.getSkin(c, Part.CP_READONLY);
        }
        if (skin == null) {
            skin = xp.getSkin(c, Part.CP_COMBOBOX);
        }
        skin.paintSkin(g, 0, 0, c.getWidth(), c.getHeight(), state);
    }

    /**
     * If necessary paints the currently selected item.
     *
 
View Full Code Here

Examples of com.sun.java.swing.plaf.windows.XPStyle.Skin.paintSkin()

      Part part = frame.isIcon() ? Part.WP_MINCAPTION
                                       : (frame.isMaximum() ? Part.WP_MAXCAPTION
                                                            : Part.WP_CAPTION);
      State state = frame.isSelected() ? State.ACTIVE : State.INACTIVE;
      Skin skin = xp.getSkin(this, part);
      skin.paintSkin(g, 00, getWidth(), getHeight(), state);
  } else {
      Boolean gradientsOn = (Boolean)LookAndFeel.getDesktopPropertyValue(
    "win.frame.captionGradientsOn", Boolean.valueOf(false));
      if (gradientsOn.booleanValue() && g instanceof Graphics2D) {
    Graphics2D g2 = (Graphics2D)g;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.