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()

      Part part = vertical ? Part.TKP_TRACKVERT : Part.TKP_TRACK;
      Skin skin = xp.getSkin(slider, part);

      if (vertical) {
    int x = (trackRect.width - skin.getWidth()) / 2;
    skin.paintSkin(g, trackRect.x + x, trackRect.y,
             skin.getWidth(), trackRect.height, null);
      } else {
    int y = (trackRect.height - skin.getHeight()) / 2;
    skin.paintSkin(g, trackRect.x, trackRect.y + y,
             trackRect.width, skin.getHeight(), null);
View Full Code Here

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

    int x = (trackRect.width - skin.getWidth()) / 2;
    skin.paintSkin(g, trackRect.x + x, trackRect.y,
             skin.getWidth(), trackRect.height, null);
      } else {
    int y = (trackRect.height - skin.getHeight()) / 2;
    skin.paintSkin(g, trackRect.x, trackRect.y + y,
             trackRect.width, skin.getHeight(), null);
      }
  } else {
      super.paintTrack(g);
  }
View Full Code Here

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

      state = State.INACTIVEHOT;
        } else {
      state = State.INACTIVENORMAL;
        }
    }
    skin.paintSkin(g, 0, 0, width, height, state);
      } else {
    g.setColor(Color.black);
    int x = width / 12 + 2;
    int y = height / 5;
    int h = height - y * 2 - 1;
View Full Code Here

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

      state = State.UNCHECKEDPRESSED;
        } else if (model.isRollover()) {
      state = State.UNCHECKEDHOT;
        }
    }
    skin.paintSkin(g, x, y, state);
      } else {
    // fill interior
    if((model.isPressed() && model.isArmed()) || !model.isEnabled()) {
        g.setColor(UIManager.getColor("RadioButton.background"));
    } else {
View Full Code Here

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

                    state = ((JMenuItem) c).getModel().isEnabled()
                    ? State.NORMAL : State.DISABLED;
                }
                Skin skin = xp.getSkin(c, Part.MP_POPUPSUBMENU);
                if (WindowsGraphicsUtils.isLeftToRight(c)) {
                    skin.paintSkin(g, x, y, state);
                } else {
                    Graphics2D g2d = (Graphics2D)g.create();
                    g2d.translate(x + skin.getWidth(), y);
                    g2d.scale(-1, 1);
                    skin.paintSkin(g2d, 0, 0, state);
View Full Code Here

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

                    skin.paintSkin(g, x, y, state);
                } else {
                    Graphics2D g2d = (Graphics2D)g.create();
                    g2d.translate(x + skin.getWidth(), y);
                    g2d.scale(-1, 1);
                    skin.paintSkin(g2d, 0, 0, state);
                    g2d.dispose();
                }
            } else {
                g.translate(x,y);
                if( WindowsGraphicsUtils.isLeftToRight(c) ) {
View Full Code Here

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

                                  : State.CHECKMARKDISABLED;
                        }
                        Skin skin;
                        XPStyle xp = XPStyle.getXP();
                        skin =  xp.getSkin(c, backgroundPart);
                        skin.paintSkin(g, x, y,
                            getIconWidth(), getIconHeight(), backgroundState);
                        if (icon == null) {
                            skin = xp.getSkin(c, part);
                            skin.paintSkin(g, x + OFFSET, y + OFFSET, state);
                        }
View Full Code Here

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

                        skin =  xp.getSkin(c, backgroundPart);
                        skin.paintSkin(g, x, y,
                            getIconWidth(), getIconHeight(), backgroundState);
                        if (icon == null) {
                            skin = xp.getSkin(c, part);
                            skin.paintSkin(g, x + OFFSET, y + OFFSET, state);
                        }
                    }
                }
                if (icon != null) {
                    icon.paintIcon(c, g, x + OFFSET, y + OFFSET);
View Full Code Here

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

    private void paintXPBackground(Graphics g, JComponent c) {
        XPStyle xp = XPStyle.getXP();
        Skin skin = xp.getSkin(c, Part.EP_EDIT);
        State state = getXPState(c);
        skin.paintSkin(g, 0, 0, c.getWidth(), c.getHeight(), state);
    }
   
    protected Component createPreviousButton() {
  if (XPStyle.getXP() != null) {
            JButton xpButton = new XPStyle.GlyphButton(spinner, Part.SPNP_DOWN);
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.