Package org.pushingpixels.substance.api.painter.border

Examples of org.pushingpixels.substance.api.painter.border.SubstanceBorderPainter.paintBorder()


      // .getBorderStrokeWidth(SubstanceSizeUtils
      // .getComponentFontSize(scrollBar));
      // GeneralPath contourInner = SubstanceOutlineUtilities
      // .getBaseOutline(width, height, radius, null,
      // borderThickness + borderDelta);
      borderPainter.paintBorder(opaque.getGraphics(), scrollBar, width,
          height, contour, null, borderScheme, borderScheme2,
          borderCyclePos, borderScheme != borderScheme2);
      SubstanceScrollBarUI.thumbHorizontalMap.put(key, opaque);
    }
View Full Code Here


              .getComponentFontSize(slider));
      GeneralPath contourInner = SubstanceOutlineUtilities
          .getTriangleButtonOutline(width, sliderIcon.size - 1, 2,
              borderThickness + borderDelta);

      borderPainter.paintBorder(g2d, slider, width, sliderIcon.size - 1,
          contour, contourInner, borderScheme, borderScheme2,
          cyclePos, borderScheme != borderScheme2);
      g2d.translate(-delta, 0);

      if (sliderIcon.isMirrorred)
View Full Code Here

      Shape contourInner = new Ellipse2D.Float(borderDelta
          + borderThickness, borderDelta + borderThickness, width - 2
          * borderDelta - 2 * borderThickness - 1, width - 2
          * borderDelta - 2 * borderThickness - 1);

      borderPainter.paintBorder(g2d, slider, width, sliderIcon.size - 1,
          contour, contourInner, borderScheme, borderScheme2,
          cyclePos, borderScheme != borderScheme2);
      // bg2d.translate(-delta, -delta);

      result = new ImageIcon(stateImage);
View Full Code Here

              .getComponentFontSize(slider));
      GeneralPath contourInner = SubstanceOutlineUtilities
          .getTriangleButtonOutline(height, sliderIcon.size, 2,
              borderThickness + borderDelta);

      borderPainter.paintBorder(g2d, slider, height, sliderIcon.size - 1,
          contour, contourInner, borderScheme, borderScheme2,
          cyclePos, borderScheme != borderScheme2);
      // bg2d.translate(-delta, 0);

      if (sliderIcon.isMirrorred)
View Full Code Here

                    + deltaLeft + deltaRight, contour,
                false, colorScheme, colorScheme2, cyclePos,
                true, colorScheme != colorScheme2);
          }
          if (isBorderPainted) {
            borderPainter.paintBorder(finalGraphics, button, height
                + deltaTop + deltaBottom, width + deltaLeft
                + deltaRight, contour, null, borderScheme,
                borderScheme2, cyclePos,
                borderScheme != borderScheme2);
          }
View Full Code Here

                    + deltaTop + deltaBottom, contour,
                false, colorScheme, colorScheme2, cyclePos,
                true, colorScheme != colorScheme2);
          }
          if (isBorderPainted) {
            borderPainter.paintBorder(finalGraphics, button, width
                + deltaLeft + deltaRight, height + deltaTop
                + deltaBottom, contour, null, borderScheme,
                borderScheme2, cyclePos,
                borderScheme != borderScheme2);
          }
View Full Code Here

            + deltaLeft + deltaRight, height + deltaTop
            + deltaBottom, contour, false, colorScheme,
            colorScheme2, cyclePos, true,
            colorScheme != colorScheme2);
        if (isBorderPainted) {
          borderPainter.paintBorder(finalGraphics, button, width
              + deltaLeft + deltaRight, height + deltaTop
              + deltaBottom, contour, null, borderScheme,
              borderScheme2, cyclePos,
              borderScheme != borderScheme2);
        }
View Full Code Here

        .getBaseOutline(width, height + dy, cornerRadius
            - borderThickness, straightSides, borderThickness
            + borderInsets)
        : null;

    borderPainter.paintBorder(resGraphics, tabPane, width, height + dy,
        contour, contourInner, borderScheme);

    resGraphics.dispose();
    return result;
  }
View Full Code Here

        // finalGraphics.drawImage(background, 0, 0, null);
        SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
            .getBorderPainter(tabPane);
        finalGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
            RenderingHints.VALUE_ANTIALIAS_ON);
        borderPainter.paintBorder(finalGraphics, tabPane, width,
            height, contour, null, markScheme);
      }

      finalGraphics.setStroke(new BasicStroke(SubstanceSizeUtils
          .getTabCloseButtonStrokeWidth(SubstanceSizeUtils
View Full Code Here

            JFileChooser.class, c) != null));
    GeneralPath contourInner = skipInnerBorder ? null
        : SubstanceOutlineUtilities.getBaseOutline(width, height,
            radius - borderThickness, null, borderThickness
                + borderDelta);
    borderPainter.paintBorder(graphics, c, width, height, contour,
        contourInner, borderScheme);
    graphics.translate(-x, -y);
  }

  /**
 
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.