Examples of StyleSheet


Examples of com.volantis.mcs.themes.StyleSheet

        OutputStyledElementsFactory factory = new OutputStyledElementsFactory();

        OutputStyledElementList outputElementList =
                factory.createOutputStyledElements(actualXml);

        StyleSheet actualStyleSheet = generator.generateStyleSheetFor(outputElementList);

        StyleSheetTester.assertStyleSheetEquals(testName, expectedTheme, actualStyleSheet);

        checkXmlEquals(testName, expectedXml, actualXml);
    }
View Full Code Here

Examples of flash.css.StyleSheet

        InputStream cssFileStream = null;

        try
        {
            FontManager fontManager = mxmlConfiguration.getFontsConfiguration().getTopLevelManager();
            StyleSheet styleSheet = new StyleSheet();
            styleSheet.checkDeprecation(mxmlConfiguration.showDeprecationWarnings());
            cssFileStream = cssFile.getInputStream();
            styleSheet.parse(cssFile.getName(), cssFileStream, ThreadLocalToolkit.getLogger(), fontManager);
            extractStyles(styleSheet, false);
        }
        catch (Exception exception)
        {
            CompilerMessage m = new ParseError(exception.getLocalizedMessage());
View Full Code Here

Examples of javax.swing.text.html.StyleSheet

  }

  private boolean isInvisible(final javax.swing.text.Element textElement)
  {
    final HTMLDocument htmlDocument = (HTMLDocument) textElement.getDocument();
    final StyleSheet sheet = htmlDocument.getStyleSheet();
    final AttributeSet attr = computeStyle(textElement, sheet);
    final Object o = attr.getAttribute(CSS.Attribute.DISPLAY);
    if ("none".equals(String.valueOf(o)))
    {
      return true;
View Full Code Here

Examples of javax.swing.text.html.StyleSheet

  }

  private void configureStyle(final javax.swing.text.Element textElement, final Element result)
  {
    final HTMLDocument htmlDocument = (HTMLDocument) textElement.getDocument();
    final StyleSheet sheet = htmlDocument.getStyleSheet();
    final AttributeSet attr = computeStyle(textElement, sheet);
    parseBorderAndBackgroundStyle(result, sheet, attr);
    parseBoxStyle(result, attr);

    final Font font = sheet.getFont(attr);
    if (font != null)
    {
      result.getStyle().setStyleProperty(TextStyleKeys.FONT, font.getFamily());
      result.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(font.getSize()));
      result.getStyle().setBooleanStyleProperty(TextStyleKeys.ITALIC, font.isItalic());
View Full Code Here

Examples of javax.swing.text.html.StyleSheet

   */
  public EditorPaneLinkDetector() {

    HTMLEditorKit htmlkit = new HTMLEditorKit();

    StyleSheet styles = htmlkit.getStyleSheet();
    StyleSheet ss = new StyleSheet();

    ss.addStyleSheet(styles);

    ss.addRule("body {font-family:arial;font-size:12pt}");
    ss.addRule("p {font-family:arial;margin:2}");

    HTMLDocument doc = new HTMLDocLinkDetector(ss);

    setEditorKit(htmlkit);

View Full Code Here

Examples of javax.swing.text.html.StyleSheet

  @Override
  protected void initStylesForTextPane(final JTextPane textPane) {
    textPane.setContentType("text/html");

    final HTMLDocument doc = (HTMLDocument) textPane.getDocument();
    final StyleSheet css = doc.getStyleSheet();

    /*
     * Configure standard styles
     */
    css.addRule("body { font-family: Dialog; font-size: " + (TEXT_SIZE + 1)
        + "pt }");
    css.addRule("a { color: blue; font-style: italic }");

    css.addRule("._timestamp { color: " + colorToRGB(HEADER_COLOR)
        + "; font-size: " + (TEXT_SIZE - 1)
        + "pt; font-style: italic }");
    css.addRule("._header { color: " + colorToRGB(HEADER_COLOR) + " }");

    /*
     * Configure notification types
     */
    for (final NotificationType type : NotificationType.values()) {
      final Color color = type.getColor();

      if (color != null) {
        css.addRule("." + type.getMnemonic() + " { color: "
            + colorToRGB(color) + "; font-weight: bold; }");
      }
    }
  }
View Full Code Here

Examples of javax.swing.text.html.StyleSheet

        environment.remove("JAVA_OPTIONS");
    }

    public static StyleSheet makeStyleSheet (String name) {
        try {
            StyleSheet sheet = new StyleSheet();
            Reader reader = new InputStreamReader(System.class.getResourceAsStream("/css/" + name + ".css"));
            sheet.loadRules(reader, null);
            reader.close();

            return sheet;
        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here

Examples of nextapp.echo2.app.StyleSheet

        ((Button) component).setBorder(null);
        ((Button) component).setDisabledBorder(null);
        ((Button) component).setRolloverBorder(null);
        ((Button) component).setPressedBorder(null);

        StyleSheet stylesheet = Styles.DEFAULT_STYLE_SHEET;
        Style style = stylesheet.getStyle(nextapp.echo2.app.Component.class, "TblJbsBaseObject.Header");
        component.setStyle(style);

        TableLayoutData layout = (TableLayoutData) style.getProperty("layoutData");
        // remove the button's background
        component.setBackground(null);
View Full Code Here

Examples of org.apache.batik.css.engine.StyleSheet

    ctx.setDynamicState(BridgeContext.DYNAMIC);
    builder = new GVTBuilder();

    builder.build(ctx, doc);

    StyleSheet ss = null;
    CSSEngine engine = ((SVGOMDocument) doc).getCSSEngine();
    try {
      if (inlineCss != null) {
        InputSource source = new InputSource(new StringReader(inlineCss));
        ss = engine.parseStyleSheet(source, new URL("http://www.timepedia.org"),
View Full Code Here

Examples of org.apache.poi.hdf.model.hdftypes.StyleSheet

      int stshIndex = _fib.getFcStshf();
      int stshSize = _fib.getLcbStshf();
      byte[] stsh = new byte[stshSize];
      System.arraycopy(_tableBuffer, stshIndex, stsh, 0, stshSize);

      _listener.styleSheet(new StyleSheet(stsh));
    }
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.