Examples of paintBorder()


Examples of javax.swing.border.Border.paintBorder()

                    ((cmp instanceof JMenuBar) && ((JMenuBar)cmp).isBorderPainted())
                    ||
                    ((cmp instanceof JProgressBar) && ((JProgressBar)cmp).isBorderPainted() ))
                    border.paintBorder(cmp, svgGen, 0, 0, cmp.getWidth(), cmp.getHeight());
            } else {
                border.paintBorder(cmp, svgGen, 0, 0, cmp.getWidth(), cmp.getHeight());
            }
        }
    }

    private static void paintChildren(JComponent cmp, SVGGraphics2D svgGen){
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

      Border   border = getBorder();

      if (border != null) {
          Dimension     size = getSize();

          border.paintBorder(this, g, 0, 0, size.width, size.height);
      }
    }


    /**
 
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

    protected void paint(SynthContext context, Graphics g) {
        Border vpBorder = scrollpane.getViewportBorder();
        if (vpBorder != null) {
            Rectangle r = scrollpane.getViewportBorderBounds();
            vpBorder.paintBorder(scrollpane, g, r.x, r.y, r.width, r.height);
        }
    }

    public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) {
        ((SeaGlassContext) context).getPainter().paintScrollPaneBorder(context, g, x, y, w, h);
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

      }
     
      protected void paintBorder(Graphics g) {
        //super.paintBorder(g);
        Border border = BorderFactory.createEtchedBorder(Color.WHITE, Color.WHITE);
        border.paintBorder(this, g, this.getX(), this.getY(), this.getWidth(),this.getHeight());
       
      }
     
    };
    upperDefinition.addMouseMotionListener(new MouseMotionListener(){
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

      Border   border = getBorder();

      if (border != null) {
    Dimension     size = getSize();

    border.paintBorder(this, g, 0, 0, size.width, size.height);
      }
    }


    /**
 
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

        Color color = g.getColor();
        g.setColor(frameColor);

        if (!spaceAtTopIfEmptyTitle && !hasTitle()) {
            if (border != null) {
                border.paintBorder(c, g, x, y, width, height);
            }
            g.setColor(color);
            return;
        }
        // TF:30/8/07: Compensate the spacing to make closer to Forte layout. The caption
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

                if (hasTitle() || !spaceAtTopIfEmptyTitle) {
                  // paint strip left of text
                  clipRect.setBounds(saveClip);
                  if (computeIntersection(clipRect, x, y, textLoc.x - 1 - x, height)) {
                      g.setClip(clipRect);
                      border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                  }
 
                  // paint strip right of text
                  clipRect.setBounds(saveClip);
                  if (computeIntersection(clipRect, textLoc.x + stringWidth + 1, y, x + width
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

                  // Some forte controls, like radio buttons, still paint the border down a little, even if there's
                  // no text. We need to mirror this functionality
                  clipRect.setBounds(saveClip);
                  if (computeIntersection(clipRect, x, y, x + width, height)) {
                      g.setClip(clipRect);
                      border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                  }
                }
                if (titlePos == TOP || titlePos == DEFAULT_POSITION) {
                    // paint strip below text
                    clipRect.setBounds(saveClip);
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

                    // paint strip below text
                    clipRect.setBounds(saveClip);
                    if (computeIntersection(clipRect, textLoc.x - 1, textLoc.y + descent, stringWidth + 2, y + height
                            - textLoc.y - descent)) {
                        g.setClip(clipRect);
                        border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                    }

                }
                else { // titlePos == BOTTOM
                    // paint strip above text
View Full Code Here

Examples of javax.swing.border.Border.paintBorder()

                else { // titlePos == BOTTOM
                    // paint strip above text
                    clipRect.setBounds(saveClip);
                    if (computeIntersection(clipRect, textLoc.x - 1, y, stringWidth + 2, textLoc.y - ascent - y)) {
                        g.setClip(clipRect);
                        border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                    }
                }

                // restore clip
                g.setClip(saveClip);
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.