Examples of paintBorder()


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

                // restore clip
                g.setClip(saveClip);

            }
            else {
                border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
            }
        }

        // COLET 12/01/2009 : Added option of painting the title as disabled.
        if(isEnabled()) {
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()

                  // paint strip right of text
                  clipRect.setBounds(saveClip);
                  if (computeIntersection(clipRect, textLoc.x + stringWidth + 1, y, x + width
                          - (textLoc.x + stringWidth + 1), height)) {
                      g.setClip(clipRect);
                      border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                  }
                }
                else {
                  // 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
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

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

                // restore clip
                g.setClip(saveClip);

            }
            else {
                border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
            }
        }

        // COLET 12/01/2009 : Added option of painting the title as disabled.
        if(isEnabled()) {
View Full Code Here

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

        if (border != null) {
          // If it's a 3d border, switch it to a 2d one
          if (border instanceof CompoundBorder) {
            border = new LineBorder(Color.black, 1);
          }
            border.paintBorder(this, g, 0, 0, getWidth(), getHeight());
        }
    }
    //PM:11/04/08 JCT-534
    @Override
    protected void fireCaretUpdate(CaretEvent e) {
View Full Code Here

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

        if (border != null) {
          // If it's a 3d border, switch it to a 2d one
          if (border instanceof CompoundBorder) {
            border = new LineBorder(Color.black, 1);
          }
            border.paintBorder(this, g, 0, 0, getWidth(), getHeight());
        }
    }
    //PM:11/04/08 JCT-534
    @Override
    protected void fireCaretUpdate(CaretEvent e) {
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.