Examples of Border


Examples of com.eagerlogic.cubee.client.style.styles.Border

                @Override
                public Integer calculate() {
                    int res = clientWidthProperty().get();
                    Padding padding = textBox.paddingProperty().get();
                    Border border = textBox.borderProperty().get();
                    if (padding != null) {
                        res = res - padding.getLeftPadding() - padding.getRightPadding();
                    }
                    if (border != null) {
                        res = res - border.getLeftBorderSize() - border.getRightBorderSize();
                    }
                    return res;
                }
            });
            textBox.heightProperty().bind(new AExpression<Integer>() {
               
                {
                    bind(clientHeightProperty(), textBox.paddingProperty(), textBox.borderProperty());
                }

                @Override
                public Integer calculate() {
                    int res = clientHeightProperty().get();
                    Padding padding = textBox.paddingProperty().get();
                    Border border = textBox.borderProperty().get();
                    if (padding != null) {
                        res = (res - padding.getTopPadding()) - padding.getBottomPadding();
                    }
                    if (border != null) {
                        res = (res - border.getTopBorderSize()) - border.getBottomBorderSize();
                    }
                    return res;
                }
            });
            textBox.onKeyUpEvent().addListener(new IEventListener<KeyEventArgs>() {
View Full Code Here

Examples of com.extentech.formats.OOXML.Border

                          }                                              
                         newFmtId= Xf.addFormatPattern(bk.getWorkBook(), xmlFormatPattern);
                         fmts.put(Integer.valueOf(fmtId), Integer.valueOf(newFmtId))// map our format id with original
                     }
                     else if (tnm.equals("border")) { // TODO: use Border element to parse
                       Border b= (Border) Border.parseOOXML(xpp, bk).cloneElement();
                         borders.add(b);
                     }
                     else if (tnm.equals("cellXfs"))
                     {
                         while (eventType != XmlPullParser.END_DOCUMENT) {
View Full Code Here

Examples of com.scriptographer.adm.Border

    }
    break;
    case TEXT: {
      item = new TextPane(dialog);
      // Space a bit more to the top, to compensate the descender space.
      item.setMargin(new Border(1, 0, 0, 0));
    }
    break;
    case RULER: {
      // If the ruler has a label, add it to the left of it, using an
      // ItemGroup and a TableLayout. The ItemGroup needs to be created
View Full Code Here

Examples of com.sun.dtv.lwuit.plaf.Border

        g.translate(transX, transY);

        ((Container) par).paintIntersecting(g, c, bounds, false);

        if (par.getStyle().getBorder() != null) {
            Border b = par.getBorder();
            if (b != null && b.isBackgroundPainter()) {
                g.translate(-par.getX(), -par.getY());
                b.paintBorderBackground(g, par);
                b.paint(g, par);
                g.translate(par.getX() - transX, par.getY() - transY);
            }
        } else {
            Painter p = par.getStyle().getBgPainter();
            if (p != null) {
View Full Code Here

Examples of com.sun.star.sheet.Border

                }
            log.println("Finished creating table.");
            log.println("Creating new ranges from titles");

            CellRangeAddress CRA = new CellRangeAddress((short)0, 0, 0, 3, 3);
            Border border = Border.TOP;
            oObj.addNewFromTitles(CRA, border);
            for (int i = 1; i < 4; i++) {
                bResult &= oObj.hasByName("Column" + i);

                Object range = oObj.getByName("Column" + i);
View Full Code Here

Examples of javafx.scene.layout.Border

    }

    @ThreadConfined(type = ThreadConfined.ThreadType.ANY)
    default Category updateCategoryBorder() {
        final Category category = getFile().getCategory();
        final Border border = hasHashHit() && (category == Category.ZERO)
                              ? HASH_BORDER
                              : DrawableView.getCategoryBorder(category);

        Platform.runLater(() -> {
            getBorderable().setBorder(border);
View Full Code Here

Examples of javax.swing.border.Border

    }

    @Override
    public void mouseEntered(MouseEvent e) {
        oldBorder = this.getBorder();
        Border b = BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED);
        b = BorderFactory.createEtchedBorder();
        this.setBorder(b);
    }
View Full Code Here

Examples of javax.swing.border.Border

            }

            GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
            Graphics2D g = (Graphics2D) ge.createGraphics(bufferedMapImage);
            g.setClip(0, 0, w, h);
            Border border = mb.getBorder();
            mb.setBorder(null);
            mb.paintAll(g);
            mb.setBorder(border);

            oX = x;
View Full Code Here

Examples of javax.swing.border.Border

                "Available Drop Targets:");

        titledBorder.setTitleColor(Color.gray);
        popup.setBorder(titledBorder);

        Border compoundborder = BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(),
                BorderFactory.createEmptyBorder(2, 2, 2, 2));

        //
        // Check whether the dropped object is of type Location
        // (has exact x and y coordinates).
View Full Code Here

Examples of javax.swing.border.Border

        comp.setTitle(getTITLE(requestor, field, comp.getTitle()));
    }

    public void set(Object requestor, String field, JComponent comp) {
        setTOOLTIP(requestor, field, comp);
        Border b = comp.getBorder();
        if (b instanceof TitledBorder) {
            TitledBorder t = (TitledBorder) b;
            t.setTitle(getTITLE(requestor, field, t.getTitle()));
        }
    }
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.