Examples of GradientPainter


Examples of com.explodingpixels.painter.GradientPainter

    // Private methods. ///////////////////////////////////////////////////////////////////////////

    private void createAndInstallBackgroundPainter() {
        Painter<Component> focusedPainter =
                new GradientPainter(
                        MacColorUtils.OS_X_BOTTOM_BAR_ACTIVE_TOP_COLOR,
                        MacColorUtils.OS_X_BOTTOM_BAR_ACTIVE_BOTTOM_COLOR);
        Painter<Component> unfocusedPainter =
                new GradientPainter(
                        MacColorUtils.OS_X_BOTTOM_BAR_INACTIVE_TOP_COLOR,
                        MacColorUtils.OS_X_BOTTOM_BAR_INACTIVE_BOTTOM_COLOR);
        Painter<Component> painter = new FocusStatePainter(focusedPainter, focusedPainter,
                unfocusedPainter);
        fBottomBar.setBackgroundPainter(painter);
View Full Code Here

Examples of dan.swing.painters.GradientPainter

          //new LineBorder(Color.BLACK, 2, true),
          BorderFactory.createEtchedBorder(),
          BorderFactory.createEmptyBorder(5,5,5,5)
      ));

      GradientPainter p = new GradientPainter();
      p.setDirection(GradientPainter.TOP_LEFT_DIAGONAL);
      pnl.setComponentPainter(p);

      //pnl.setBackground(Color.GRAY.brighter());
      //pnl.setOpaque(true);
View Full Code Here

Examples of dan.swing.painters.GradientPainter

    GradientPainter groupPainter;
    GradientPainter selectedPainter;

    public CustomListCellRenderer() {
      groupPainter = new GradientPainter();

      selectedPainter = new GradientPainter();
      selectedPainter.setDirection(GradientPainter.TOP_RIGHT_DIAGONAL);
    }
View Full Code Here

Examples of dan.swing.painters.GradientPainter

    GradientPainter groupPainter;
    GradientPainter selectedPainter;

    public CustomListCellRenderer() {
      groupPainter = new GradientPainter();

      selectedPainter = new GradientPainter();
      selectedPainter.setDirection(GradientPainter.TOP_RIGHT_DIAGONAL);
    }
View Full Code Here

Examples of dan.swing.painters.GradientPainter

      JPrettyPanel panel = (JPrettyPanel)comp;

      Dimension dim = panel.getPreferredSize();
      panel.setMaximumSize(new Dimension(Integer.MAX_VALUE, dim.height));

      GradientPainter painter = new GradientPainter(Color.WHITE, new Color(200,200,200));
      painter.setDirection(GradientPainter.LEFT_TO_RIGHT);
      panel.setComponentPainter(painter);

      panel.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
      //panel.setBorder(new RoundedLineBorder(5));
    }
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.