Package org.pushingpixels.substance.api

Examples of org.pushingpixels.substance.api.ColorSchemeTransform


                JMenu cbMenu = new JMenu("Color blindness");
                JMenuItem protanopiaCurrent = new JMenuItem(
                    "Protanopia current");
                protanopiaCurrent
                    .addActionListener(new SkinChanger(
                        new ColorSchemeTransform() {
                          public SubstanceColorScheme transform(
                              SubstanceColorScheme scheme) {
                            return new ProtanopiaColorScheme(
                                scheme);
                          }
                        }, "Protanopia current"));
                cbMenu.add(protanopiaCurrent);
                JMenuItem deuteranopiaCurrent = new JMenuItem(
                    "Deuteranopia current");
                deuteranopiaCurrent
                    .addActionListener(new SkinChanger(
                        new ColorSchemeTransform() {
                          public SubstanceColorScheme transform(
                              SubstanceColorScheme scheme) {
                            return new DeuteranopiaColorScheme(
                                scheme);
                          }
                        }, "Deuteranopia current"));
                cbMenu.add(deuteranopiaCurrent);
                JMenuItem tritanopiaCurrent = new JMenuItem(
                    "Tritanopia current");
                tritanopiaCurrent
                    .addActionListener(new SkinChanger(
                        new ColorSchemeTransform() {
                          public SubstanceColorScheme transform(
                              SubstanceColorScheme scheme) {
                            return new TritanopiaColorScheme(
                                scheme);
                          }
                        }, "Tritanopia current"));
                cbMenu.add(tritanopiaCurrent);

                cbMenu.addSeparator();

                JMenuItem restoreOriginal = new JMenuItem(
                    "Restore original");
                if (SubstanceLookAndFeel.getCurrentSkin(null)
                    .getColorScheme(null,
                        ComponentState.ENABLED) instanceof ColorBlindColorScheme) {
                  restoreOriginal
                      .addActionListener(new SkinChanger(
                          new ColorSchemeTransform() {
                            public SubstanceColorScheme transform(
                                SubstanceColorScheme scheme) {
                              if (scheme instanceof ColorBlindColorScheme)
                                return ((ColorBlindColorScheme) scheme)
                                    .getOrigScheme();
View Full Code Here


    this.buttonShaper = new ClassicButtonShaper();
    this.fillPainter = new ClassicFillPainter();
    this.borderPainter = new CompositeBorderPainter("Business",
        new ClassicBorderPainter(), new DelegateBorderPainter(
            "Business Inner", new ClassicBorderPainter(),
            new ColorSchemeTransform() {
              @Override
              public SubstanceColorScheme transform(
                  SubstanceColorScheme scheme) {
                return scheme.tint(0.9f);
              }
View Full Code Here

            ColorSchemeSingleColorQuery.MID });
    this.borderPainter = new CompositeBorderPainter("Graphite Aqua",
        new ClassicBorderPainter(), new DelegateBorderPainter(
            "Graphite Aqua Inner", new ClassicBorderPainter(),
            0xC0FFFFFF, 0x90FFFFFF, 0x30FFFFFF,
            new ColorSchemeTransform() {
              @Override
              public SubstanceColorScheme transform(
                  SubstanceColorScheme scheme) {
                return scheme.tint(0.25f);
              }
View Full Code Here

    this.decorationPainter = new MatteDecorationPainter();
    this.highlightPainter = new ClassicHighlightPainter();
    this.borderPainter = new CompositeBorderPainter("Dust",
        new ClassicBorderPainter(), new DelegateBorderPainter(
            "Dust Inner", new ClassicBorderPainter(), 0x60FFFFFF,
            0x30FFFFFF, 0x18FFFFFF, new ColorSchemeTransform() {
              @Override
              public SubstanceColorScheme transform(
                  SubstanceColorScheme scheme) {
                return scheme.shiftBackground(
                    scheme.getUltraLightColor(), 0.8).tint(
View Full Code Here

            ColorSchemeSingleColorQuery.DARK,
            ColorSchemeSingleColorQuery.MID });
    SubstanceBorderPainter innerBorderPainter = new DelegateFractionBasedBorderPainter(
        "Office Blue 2007 Inner", outerBorderPainter, new int[] {
            0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF },
        new ColorSchemeTransform() {
          @Override
          public SubstanceColorScheme transform(
              SubstanceColorScheme scheme) {
            return scheme.tint(0.8f);
          }
View Full Code Here

            ColorSchemeSingleColorQuery.ULTRADARK,
            ColorSchemeSingleColorQuery.DARK,
            ColorSchemeSingleColorQuery.DARK });
    SubstanceBorderPainter innerBorderPainter = new DelegateBorderPainter(
        "Magellan Inner", new ClassicBorderPainter(), 0xA0FFFFFF,
        0x60FFFFFF, 0x40FFFFFF, new ColorSchemeTransform() {
          @Override
          public SubstanceColorScheme transform(
              SubstanceColorScheme scheme) {
            return scheme.tint(0.5);
          }
View Full Code Here

            ColorSchemeSingleColorQuery.ULTRADARK,
            ColorSchemeSingleColorQuery.ULTRADARK,
            ColorSchemeSingleColorQuery.ULTRADARK });
    SubstanceBorderPainter innerBorderPainter = new DelegateFractionBasedBorderPainter(
        "Gemini Inner", outerBorderPainter, new int[] { 0x60FFFFFF,
            0x40FFFFFF, 0x20FFFFFF }, new ColorSchemeTransform() {
          @Override
          public SubstanceColorScheme transform(
              SubstanceColorScheme scheme) {
            return scheme.tint(0.7f);
          }
View Full Code Here

    this.decorationPainter = new ArcDecorationPainter();
    this.highlightPainter = new ClassicHighlightPainter();
    this.borderPainter = new CompositeBorderPainter("Creme Coffee",
        new GlassBorderPainter(), new DelegateBorderPainter(
            "Creme Coffee Inner", new GlassBorderPainter(),
            new ColorSchemeTransform() {
              @Override
              public SubstanceColorScheme transform(
                  SubstanceColorScheme scheme) {
                return scheme.tint(0.8f);
              }
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.ColorSchemeTransform

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.