Package org.pushingpixels.substance.api

Examples of org.pushingpixels.substance.api.SubstanceSkin


      for (Enumeration i = bundle.getKeys(); i.hasMoreElements();) {
        String key = (String) i.nextElement();
        labelsList.add(key);
        labelsList.add(bundle.getObject(key));
      }
      SubstanceSkin skin = (SubstanceSkin) mSkin;
      final SubstanceColorScheme colorScheme = skin
          .getActiveColorScheme(DecorationAreaType.NONE);
      InsetsUIResource visualMargin = new InsetsUIResource(0, 0, 0, 0);
      Color foregroundColor = new ColorUIResource(colorScheme
          .getForegroundColor());
      Object[] mainDefaults = new Object[] {
View Full Code Here


   * org.pushingpixels.substance.watermark.SubstanceWatermark#drawWatermarkImage
   * (java .awt.Graphics, int, int, int, int)
   */
  public void drawWatermarkImage(Graphics graphics, Component c, int x,
      int y, int width, int height) {
    SubstanceSkin skin = SubstanceCoreUtilities.getSkin(c);
    Graphics2D g2d = (Graphics2D) graphics.create();
    g2d.setComposite(LafWidgetUtilities
        .getAlphaComposite(c, 0.2f, graphics));
    g2d.setColor(skin.getWatermarkColorScheme().getWatermarkLightColor());
    g2d.fillRect(x, y, width, height);
    g2d.dispose();
  }
View Full Code Here

        .getComponentOrientation().isLeftToRight() : window
        .getComponentOrientation().isLeftToRight();
    int width = this.getWidth();
    int height = this.getHeight();

    SubstanceSkin skin = SubstanceCoreUtilities.getSkin(rootPane);
    if (skin == null) {
      SubstanceCoreUtilities
          .traceSubstanceApiUsage(this,
              "Substance delegate used when Substance is not the current LAF");
    }
    SubstanceColorScheme scheme = skin
        .getEnabledColorScheme(DecorationAreaType.PRIMARY_TITLE_PANE);

    int xOffset = 0;
    String theTitle = this.getTitle();
View Full Code Here

TOP

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

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.