Examples of addStyle()


Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

        graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "wrap-contour", "false");
        graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "vertical-pos", "top");
        graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "vertical-rel", "paragraph");
        graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "horizontal-pos", "center");
        graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "horizontal-rel", "paragraph");
        commonStyles.addStyle(graphicsDefaultStyle);
      }

      // Make sure that later generated styles do not overwrite existing styles.
      fillStyleNameGenerator(predefinedStylesCollection);
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

                graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "vertical-rel", OfficeToken.PARAGRAPH);
                graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, HORIZONTAL_POS, "from-left"); // changed for chart

                graphicProperties.setAttribute(OfficeNamespaces.STYLE_NS, "horizontal-rel", OfficeToken.PARAGRAPH);
                commonStyles.addStyle(graphicsDefaultStyle);
            }

            // Make sure that later generated styles do not overwrite existing styles.
            fillStyleNameGenerator(predefinedStylesCollection);
View Full Code Here

Examples of com.sun.star.report.pentaho.model.OfficeStyles.addStyle()

            tableStyle.setStyleFamily(OfficeToken.TABLE);
            tableStyle.setStyleName("Initial_Table");
            tableStyle.setAttribute(OfficeNamespaces.STYLE_NS, "master-page-name", masterPageName);
            final Element tableProperties = produceFirstChild(tableStyle, OfficeNamespaces.STYLE_NS, "table-properties");
            tableProperties.setAttribute(OfficeNamespaces.FO_NS, OfficeToken.BACKGROUND_COLOR,TRANSPARENT);
            commonStyles.addStyle(tableStyle);
        }
        return "Initial_Table";
    }

    private String createMasterPage() throws ReportProcessingException
View Full Code Here

Examples of com.vividsolutions.jump.workbench.model.Layer.addStyle()

      context.getLayerManager().remove(context.getLayerManager().getLayer(LAYER_NAME));
    }
    Layer layer = context.addLayer(StandardCategoryNames.WORKING, LAYER_NAME,
      FeatureDatasetFactory.createFromGeometry(
        lineMerger.getMergedLineStrings()));
    layer.addStyle(new ArrowLineStringEndpointStyle.SolidEnd());
    layer.addStyle(new ArrowLineStringEndpointStyle.FeathersStart());
    return true;
  }
 
  private List extractLineStrings(Collection geometries) {
View Full Code Here

Examples of it.geosolutions.geoserver.rest.encoder.GSLayerEncoder.addStyle()

        layerEncoder.setEnabled(true);
        layerEncoder.setQueryable(true);
        layerEncoder.setAdvertised(true);

        layerEncoder.setDefaultStyle("point");
        layerEncoder.addStyle("point2");
        layerEncoder.addStyle("point3");

        // authorityURL
        GSAuthorityURLInfoEncoder authorityURL = new GSAuthorityURLInfoEncoder("authority1",
                "http://www.authority1.org");
View Full Code Here

Examples of javax.swing.text.StyleContext.addStyle()

    private void init() {
        StyleContext styleContext = StyleContext.getDefaultStyleContext();
        Style defaultStyle = styleContext.getStyle(StyleContext.DEFAULT_STYLE);

        Style comment = styleContext.addStyle(COMMENT, defaultStyle);
        StyleConstants.setForeground(comment, COMMENT_COLOR);
        StyleConstants.setItalic(comment, true);

        Style quotes = styleContext.addStyle(QUOTES, defaultStyle);
        StyleConstants.setForeground(quotes, Color.MAGENTA.darker().darker());
View Full Code Here

Examples of javax.swing.text.StyleContext.addStyle()

        Style comment = styleContext.addStyle(COMMENT, defaultStyle);
        StyleConstants.setForeground(comment, COMMENT_COLOR);
        StyleConstants.setItalic(comment, true);

        Style quotes = styleContext.addStyle(QUOTES, defaultStyle);
        StyleConstants.setForeground(quotes, Color.MAGENTA.darker().darker());

        Style charQuotes = styleContext.addStyle(SINGLE_QUOTES, defaultStyle);
        StyleConstants.setForeground(charQuotes, Color.GREEN.darker().darker());
View Full Code Here

Examples of javax.swing.text.StyleContext.addStyle()

        StyleConstants.setItalic(comment, true);

        Style quotes = styleContext.addStyle(QUOTES, defaultStyle);
        StyleConstants.setForeground(quotes, Color.MAGENTA.darker().darker());

        Style charQuotes = styleContext.addStyle(SINGLE_QUOTES, defaultStyle);
        StyleConstants.setForeground(charQuotes, Color.GREEN.darker().darker());

        Style slashyQuotes = styleContext.addStyle(SLASHY_QUOTES, defaultStyle);
        StyleConstants.setForeground(slashyQuotes, Color.ORANGE.darker());
View Full Code Here

Examples of javax.swing.text.StyleContext.addStyle()

        StyleConstants.setForeground(quotes, Color.MAGENTA.darker().darker());

        Style charQuotes = styleContext.addStyle(SINGLE_QUOTES, defaultStyle);
        StyleConstants.setForeground(charQuotes, Color.GREEN.darker().darker());

        Style slashyQuotes = styleContext.addStyle(SLASHY_QUOTES, defaultStyle);
        StyleConstants.setForeground(slashyQuotes, Color.ORANGE.darker());

        Style digit = styleContext.addStyle(DIGIT, defaultStyle);
        StyleConstants.setForeground(digit, Color.RED.darker());
View Full Code Here

Examples of javax.swing.text.StyleContext.addStyle()

        StyleConstants.setForeground(charQuotes, Color.GREEN.darker().darker());

        Style slashyQuotes = styleContext.addStyle(SLASHY_QUOTES, defaultStyle);
        StyleConstants.setForeground(slashyQuotes, Color.ORANGE.darker());

        Style digit = styleContext.addStyle(DIGIT, defaultStyle);
        StyleConstants.setForeground(digit, Color.RED.darker());

        Style operation = styleContext.addStyle(OPERATION, defaultStyle);
        StyleConstants.setBold(operation, 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.