Package org.jvnet.substance.painter.border

Examples of org.jvnet.substance.painter.border.SubstanceBorderPainter


      }
    }

    SubstanceGradientPainter fillPainter = SubstanceCoreUtilities
        .getGradientPainter(this.menuItem);
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(this.menuItem);
    int fontSize = SubstanceSizeUtils.getComponentFontSize(this.menuItem);

    HashMapKey key = SubstanceCoreUtilities.getHashKey(fontSize, currState
        .name(), prevState.name(), fillPainter.getDisplayName(),
        borderPainter.getDisplayName(), currFillColorScheme
            .getDisplayName(),
        prevFillColorScheme.getDisplayName(), currMarkColorScheme
            .getDisplayName(),
        prevMarkColorScheme.getDisplayName(), currBorderColorScheme
            .getDisplayName(), prevBorderColorScheme
View Full Code Here


   * @see SubstanceSkin#getBorderPainter()
   * @see SubstanceSkin#getHighlightBorderPainter()
   */
  public static SubstanceBorderPainter getHighlightBorderPainter(
      Component comp) {
    SubstanceBorderPainter result = SubstanceCoreUtilities.getSkin(comp)
        .getHighlightBorderPainter();
    if (result != null)
      return result;
    return getBorderPainter(comp);
  }
View Full Code Here

  public static void paintBorder(Component c, Graphics2D graphics, int x,
      int y, int width, int height, float radius,
      SubstanceColorScheme borderScheme1,
      SubstanceColorScheme borderScheme2, float cyclePos) {

    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(c);
    graphics.translate(x, y);
    int componentFontSize = SubstanceSizeUtils.getComponentFontSize(c);
    int borderDelta = (int) Math.floor(SubstanceSizeUtils
        .getBorderStrokeWidth(componentFontSize) / 2.0);
    Shape contour = SubstanceOutlineUtilities.getBaseOutline(width, height,
        radius, null, borderDelta);
    int borderThickness = (int) SubstanceSizeUtils
        .getBorderStrokeWidth(componentFontSize);
    GeneralPath contourInner = (c instanceof JTextComponent) ? null
        : SubstanceOutlineUtilities.getBaseOutline(width, height,
            radius - borderThickness, null, borderThickness
                + borderDelta);
    borderPainter.paintBorder(graphics, c, width, height, contour,
        contourInner, borderScheme1, borderScheme2, cyclePos,
        borderScheme1 != borderScheme2);
    graphics.translate(-x, -y);
  }
View Full Code Here

    dotGraphics.setColor(markColor2);
    dotGraphics.fillOval(0, 0, bumpDotDiameter, bumpDotDiameter);

    dotGraphics.setComposite(AlphaComposite.getInstance(
        AlphaComposite.SRC_OVER, 0.4f));
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(divider);
    borderPainter.paintBorder(dotGraphics, divider, width, height,
        new Ellipse2D.Float(0, 0, bumpDotDiameter - 1,
            bumpDotDiameter - 1), null, colorScheme1, colorScheme2,
        interpolationCyclePos, colorScheme1 != colorScheme2);

    graphics.setComposite(TransitionLayout.getAlphaComposite(divider, 0.8f,
View Full Code Here

    SubstanceGradientPainter painter = SubstanceCoreUtilities
        .getGradientPainter(button);
    SubstanceButtonShaper shaper = SubstanceCoreUtilities
        .getButtonShaper(button);
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(button);

    BufferedImage bgImage = getFullAlphaBackground(button, button
        .getModel(), shaper, painter, borderPainter, width, height);
    ComponentState state = ComponentState.getState(button);
View Full Code Here

TOP

Related Classes of org.jvnet.substance.painter.border.SubstanceBorderPainter

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.