Package com.sun.java.swing.plaf.windows.TMSchema

Examples of com.sun.java.swing.plaf.windows.TMSchema.Part


        } else {
            size = new Dimension(6, 6);
            XPStyle xp = XPStyle.getXP();
            if (xp != null) {
                boolean vertical = ((JSeparator)c).getOrientation() == SwingConstants.VERTICAL;
                Part part = vertical ? Part.TP_SEPARATOR : Part.TP_SEPARATORVERT;
                Skin skin = xp.getSkin(c, part);
                size.width = skin.getWidth();
                size.height = skin.getHeight();
            }
View Full Code Here


        boolean vertical = ((JSeparator)c).getOrientation() == SwingConstants.VERTICAL;
        Dimension size = c.getSize();

        XPStyle xp = XPStyle.getXP();
        if (xp != null) {
            Part part = vertical ? Part.TP_SEPARATOR : Part.TP_SEPARATORVERT;
            Skin skin = xp.getSkin(c, part);

            int dx = vertical ? (size.width - skin.getWidth()) / 2 : 0;
            int dy = vertical ? 0 : (size.height - skin.getHeight()) / 2;
            int dw = vertical ? skin.getWidth() : size.width;
View Full Code Here

  } else {
      size = new Dimension(6, 6);
      XPStyle xp = XPStyle.getXP();
      if (xp != null) {
    boolean vertical = ((JSeparator)c).getOrientation() == SwingConstants.VERTICAL;
    Part part = vertical ? Part.TP_SEPARATOR : Part.TP_SEPARATORVERT;
    Skin skin = xp.getSkin(c, part);
    size.width = skin.getWidth();
    size.height = skin.getHeight();
      }
View Full Code Here

  boolean vertical = ((JSeparator)c).getOrientation() == SwingConstants.VERTICAL;
  Dimension size = c.getSize();

  XPStyle xp = XPStyle.getXP();
  if (xp != null) {
      Part part = vertical ? Part.TP_SEPARATOR : Part.TP_SEPARATORVERT;
      Skin skin = xp.getSkin(c, part);

      int dx = vertical ? (size.width - skin.getWidth()) / 2 : 0;
      int dy = vertical ? 0 : (size.height - skin.getHeight()) / 2;
      int dw = vertical ? skin.getWidth() : size.width;
View Full Code Here

        boolean toolbar = (b.getParent() instanceof JToolBar);
        return toolbar ? Part.TP_BUTTON : Part.BP_PUSHBUTTON;
    }

    static State getXPButtonState(AbstractButton b) {
        Part part = getXPButtonType(b);
        ButtonModel model = b.getModel();
        State state = State.NORMAL;
        switch (part) {
        case BP_RADIOBUTTON:
            /* falls through */           
View Full Code Here

    static void paintXPButtonBackground(Graphics g, JComponent c) {
  AbstractButton b = (AbstractButton)c;

  XPStyle xp = XPStyle.getXP();

        Part part = getXPButtonType(b);

  if (b.isContentAreaFilled() && xp != null) {

      Skin skin = xp.getSkin(b, part);
View Full Code Here

        boolean toolbar = (b.getParent() instanceof JToolBar);
        return toolbar ? Part.TP_BUTTON : Part.BP_PUSHBUTTON;
    }

    static State getXPButtonState(AbstractButton b) {
        Part part = getXPButtonType(b);
        ButtonModel model = b.getModel();
        State state = State.NORMAL;
        switch (part) {
        case BP_RADIOBUTTON:
            /* falls through */
 
View Full Code Here

    static void paintXPButtonBackground(Graphics g, JComponent c) {
        AbstractButton b = (AbstractButton)c;

        XPStyle xp = XPStyle.getXP();

        Part part = getXPButtonType(b);

        if (b.isContentAreaFilled() && xp != null) {

            Skin skin = xp.getSkin(b, part);
View Full Code Here

        } else {
            size = new Dimension(6, 6);
            XPStyle xp = XPStyle.getXP();
            if (xp != null) {
                boolean vertical = ((JSeparator)c).getOrientation() == SwingConstants.VERTICAL;
                Part part = vertical ? Part.TP_SEPARATOR : Part.TP_SEPARATORVERT;
                Skin skin = xp.getSkin(c, part);
                size.width = skin.getWidth();
                size.height = skin.getHeight();
            }
View Full Code Here

        boolean vertical = ((JSeparator)c).getOrientation() == SwingConstants.VERTICAL;
        Dimension size = c.getSize();

        XPStyle xp = XPStyle.getXP();
        if (xp != null) {
            Part part = vertical ? Part.TP_SEPARATOR : Part.TP_SEPARATORVERT;
            Skin skin = xp.getSkin(c, part);

            int dx = vertical ? (size.width - skin.getWidth()) / 2 : 0;
            int dy = vertical ? 0 : (size.height - skin.getHeight()) / 2;
            int dw = vertical ? skin.getWidth() : size.width;
View Full Code Here

TOP

Related Classes of com.sun.java.swing.plaf.windows.TMSchema.Part

Copyright © 2018 www.massapicom. 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.