Package org.jvnet.substance.api

Examples of org.jvnet.substance.api.SubstanceSkin


        RenderingHints.VALUE_ANTIALIAS_OFF);
    graphics.setComposite(TransitionLayout.getAlphaComposite(c, g));

    DecorationAreaType decorationType = SubstanceLookAndFeel
        .getDecorationType(c);
    SubstanceSkin skin = SubstanceCoreUtilities.getSkin(c);
    if ((decorationType != null)
        && (skin.isRegisteredAsDecorationArea(decorationType))) {
      // use the decoration painter
      DecorationPainterUtils
          .paintDecorationBackground(graphics, c, force);
      // and add overlays
      OverlayPainterUtils
View Full Code Here


    }

    if ((c.getHeight() == 0) || (c.getWidth() == 0))
      return;

    SubstanceSkin skin = SubstanceCoreUtilities.getSkin(c);
    SubstanceDecorationPainter painter = skin.getDecorationPainter();

    Graphics2D g2d = (Graphics2D) g.create();
    painter.paintDecorationArea(g2d, c, decorationType, c.getWidth(), c
        .getHeight(), skin);
View Full Code Here

   * org.jvnet.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(TransitionLayout.getAlphaComposite(c, 0.2f, graphics));
    g2d.setColor(skin.getWatermarkColorScheme().getWatermarkLightColor());
    g2d.fillRect(x, y, width, height);
    g2d.dispose();
  }
View Full Code Here

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

//                try {
                    SubstanceImageWatermark watermark = new SubstanceImageWatermark("GUI/res/ciaobellawm.jpg");
                //SubstanceCrosshatchWatermark watermark = new SubstanceCrosshatchWatermark();
                    watermark.setKind(ImageWatermarkKind.APP_TILE);         
                     watermark.setOpacity(0.8f);// 设置水印透明度         
                    SubstanceSkin skin = new CremeCoffeeSkin()
                            .withWatermark(watermark); // 初始化有水印的皮肤
                    SubstanceLookAndFeel.setSkin(skin); // 设置皮肤
//                } catch (FileNotFoundException ex) {
//                    Logger.getLogger(ventanaLogin.class.getName()).log(Level.SEVERE, null, ex);
//                }
View Full Code Here

        super.setVisible(b);
        SubstanceImageWatermark watermark = new SubstanceImageWatermark("GUI/res/texture_33_by_Sirius_sdz.jpg");
        //SubstanceCrosshatchWatermark watermark = new SubstanceCrosshatchWatermark();
        watermark.setKind(SubstanceConstants.ImageWatermarkKind.APP_TILE);
        watermark.setOpacity(0.2f);// 设置水印透明度         
        SubstanceSkin skin = new BusinessBlueSteelSkin()//CremeCoffeeSkin()
                .withWatermark(watermark); // 初始化有水印的皮肤
        SubstanceLookAndFeel.setSkin(skin);
        Vector<Mesa> mesas = baseDeDatos.obtenerMesas();
        for (int i = 0; i < mesas.size(); i++) {
            Mesa mesa = mesas.elementAt(i);
View Full Code Here

    public void setVisible(boolean b) {
        super.setVisible(b);
        SubstanceImageWatermark watermark = new SubstanceImageWatermark("GUI/res/login.jpg");
        watermark.setKind(SubstanceConstants.ImageWatermarkKind.APP_TILE);
        watermark.setOpacity(0.84f);// 设置水印透明度         
        SubstanceSkin skin = new BusinessBlackSteelSkin()//CremeCoffeeSkin()
                .withWatermark(watermark); // 初始化有水印的皮肤
        SubstanceLookAndFeel.setSkin(skin);
    }
View Full Code Here

        this.setLocationRelativeTo(null);
        //crea el fondo
                SubstanceImageWatermark watermark = new SubstanceImageWatermark("grafico/admin.jpg");
                watermark.setKind(SubstanceConstants.ImageWatermarkKind.APP_TILE);
                watermark.setOpacity(0.9f);
                SubstanceSkin skin = new SaharaSkin().withWatermark(watermark);
                SubstanceLookAndFeel.setSkin(skin);
    }
View Full Code Here

TOP

Related Classes of org.jvnet.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.