Examples of BorderStyle


Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

            {
                // override the LineBorderDecorator here to show how to paint
                // borders on single sides of a cell
                cellPainter = new CustomLineBorderDecorator(new TextPainter());
                // set a border style
                borderStyle = new BorderStyle(2, GUIHelper.COLOR_BLUE,
                        LineStyleEnum.DASHDOT);
            }
        });
        // Custom style for label "FOO"
        natTable.addConfiguration(new AbstractRegistryConfiguration() {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

        DefaultSelectionStyleConfiguration selectionStyle = new DefaultSelectionStyleConfiguration();
        selectionStyle.selectionFont = GUIHelper.getFont(new FontData(
                "Verdana", 8, SWT.NORMAL));
        selectionStyle.selectionBgColor = GUIHelper.getColor(217, 232, 251);
        selectionStyle.selectionFgColor = GUIHelper.COLOR_BLACK;
        selectionStyle.anchorBorderStyle = new BorderStyle(1,
                GUIHelper.COLOR_DARK_GRAY, LineStyleEnum.SOLID);
        selectionStyle.anchorBgColor = GUIHelper.getColor(65, 113, 43);
        selectionStyle.selectedHeaderBgColor = GUIHelper
                .getColor(156, 209, 103);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

        private void registerColumnTwoTextPainterStyle(
                IConfigRegistry configRegistry) {
            Style style = new Style();
            style.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                    new BorderStyle(2, GUIHelper.COLOR_BLUE,
                            LineStyleEnum.DASHDOT));

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_TWO_LABEL);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

            // know where to render a border
            // within the cell
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
                    new CustomLineBorderDecorator(new PaddingDecorator(
                            new TextPainter(), 0, 5, 0, 0), new BorderStyle(2,
                            GUIHelper.COLOR_GREEN, LineStyleEnum.SOLID)),
                    DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_SIX_LABEL);

            // don't forget to register the Double converter!
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

    public BorderStyle getNewValue() {
        if (!noBordersCheckBox.getSelection()) {
            Color borderColor = colorPicker.getSelectedColor();
            LineStyleEnum lineStyle = lineStylePicker.getSelectedLineStyle();
            int borderThickness = thicknessPicker.getSelectedThickness();
            return new BorderStyle(borderThickness, borderColor, lineStyle);
        }
        return null;
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

        cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
                selectionAnchorSelectionImage);

        // if there is not explicitly another border style configured use the
        // same as in getSelectionAnchorStyle()
        BorderStyle border = selectionAnchorSelectionBorderStyle != null ? selectionAnchorSelectionBorderStyle
                : selectionAnchorBorderStyle;
        cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, border);

        cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
                selectionAnchorSelectionPWEchoChar);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

            style.setAttributeValue(CellStyleAttributes.FONT, font);
        }

        // Border Style
        String borderPrefix = prefix + DOT + BORDER_PREFIX;
        BorderStyle borderStyle = loadBorderStyle(borderPrefix, properties);
        if (borderStyle != null) {
            style.setAttributeValue(CellStyleAttributes.BORDER_STYLE,
                    borderStyle);
        }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.BorderStyle

    private static BorderStyle loadBorderStyle(String borderPrefix,
            Properties properties) {
        String borderStyle = properties.getProperty(borderPrefix);
        if (borderStyle != null) {
            return new BorderStyle(borderStyle);
        }
        return null;
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.BorderStyle

  }

  private BorderEdge createEdge(final StyleSheet style, final StyleKey borderStyleKey,
                                final StyleKey borderColorKey, final StyleKey borderWidthKey)
  {
    final BorderStyle styleRight = (BorderStyle) style.getStyleProperty(borderStyleKey);
    if (styleRight == null || BorderStyle.NONE.equals(styleRight))
    {
      return BorderEdge.EMPTY;
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.BorderStyle

    final Stroke s = (Stroke) style.getStyleProperty(ElementStyleKeys.STROKE);
    if (s instanceof BasicStroke == false)
    {
      return false;
    }
    final BorderStyle borderStyle = StrokeUtility.translateStrokeStyle(s);
    if (BorderStyle.NONE.equals(borderStyle))
    {
      return false;
    }
    return true;
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.