Examples of Styles


Examples of org.apache.myfaces.trinidad.style.Styles

      _getStyleContextResolvedSkinProperties(styleNodes);

    // Create a new entry and cache it in the "normal" cache. The "normal" cache is one
    // where the key is the Key object which is built based on information from the StyleContext,
    // like browser, agent, locale, direction.
    Styles styles = new StylesImpl(namespacePrefixes, _STYLE_KEY_MAP,
                                   shortStyleClassMap,  _isCompressStyles(context), resolvedSelectorStyleMap);
    Entry entry = new Entry(uris, styles, icons, skinProperties);
    cache.put(key, entry);

    // Also, cache the new entry in the entry cache
View Full Code Here

Examples of org.apache.myfaces.trinidad.style.Styles

      _getStyleContextResolvedSkinProperties(styleNodes);

    // Create a new entry and cache it in the "normal" cache. The "normal" cache is one
    // where the key is the Key object which is built based on information from the StyleContext,
    // like browser, agent, locale, direction.
    Styles styles = new StylesImpl(namespacePrefixes, _STYLE_KEY_MAP,
                                   shortStyleClassMap,  _isCompressStyles(context), resolvedSelectorStyleMap);
    Entry entry = new Entry(uris, styles, icons, skinProperties);
    cache.put(key, entry);

    // Also, cache the new entry in the entry cache
View Full Code Here

Examples of org.docx4j.wml.Styles

//      Style defaultParagraphStyle = getStyleDefinitionsPart().getDefaultParagraphStyle();
//      Style defaultCharacterStyle = getStyleDefinitionsPart().getDefaultCharacterStyle();
     
      // Styles defined in StyleDefinitionsPart
      Map<String, Style> allStyles = new HashMap<String, Style>();
      Styles styles = getStyleDefinitionsPart().getJaxbElement();   
      for ( org.docx4j.wml.Style s : styles.getStyle() ) {       
        allStyles.put(s.getStyleId(), s)
        //log.debug("live style: " + s.getStyleId() );
      }
      styleTree = new StyleTree(getStylesInUse(), allStyles);
       
View Full Code Here

Examples of tripleplay.ui.Styles

        return "UI: Labels";
    }

    @Override protected Group createIface () {
        Icon smiley = Icons.image(PlayN.assets().getImage("images/smiley.png"));
        Styles greenBg = Styles.make(Style.BACKGROUND.is(Background.solid(0xFF99CC66).inset(5)));
        Styles smallUnderlined = Styles.make(
            Style.FONT.is(PlayN.graphics().createFont("Times New Roman", Font.Style.PLAIN, 20)),
            Style.HALIGN.center, Style.UNDERLINE.is(true));
        Styles bigLabel = Styles.make(
            Style.FONT.is(PlayN.graphics().createFont("Times New Roman", Font.Style.PLAIN, 32)),
            Style.HALIGN.center);
        return new Group(AxisLayout.vertical()).add(
            new Shim(15, 15),
            new Label("Wrapped text").addStyles(Style.HALIGN.center),
            new Group(AxisLayout.horizontal(), greenBg.add(Style.VALIGN.top)).add(
                AxisLayout.stretch(new Label(TEXT1, smiley).addStyles(
                                       Style.TEXT_WRAP.is(true), Style.HALIGN.left,
                                       Style.ICON_GAP.is(5))),
                AxisLayout.stretch(new Label(TEXT2).addStyles(
                                       Style.TEXT_WRAP.is(true), Style.HALIGN.center)),
                AxisLayout.stretch(new Label(TEXT3).addStyles(
                                       Style.TEXT_WRAP.is(true), Style.HALIGN.right))),
            new Shim(15, 15),
            new Label("Styled text").addStyles(Style.HALIGN.center),
            new Group(AxisLayout.horizontal().gap(10)).add(
                new Label("Plain").addStyles(bigLabel),
                new Label("Pixel Outline").addStyles(
                                       bigLabel.add(Style.TEXT_EFFECT.pixelOutline).
                                       add(Style.COLOR.is(Colors.WHITE)).
                                       add(Style.HIGHLIGHT.is(Colors.GRAY))),
                new Label("Vector Outline").addStyles(
                                       bigLabel.add(Style.TEXT_EFFECT.vectorOutline,
                                                    Style.OUTLINE_WIDTH.is(2f))),
                new Label("Shadow").addStyles(
                                       bigLabel.add(Style.TEXT_EFFECT.shadow))),
            new Label("Underlining").addStyles(Style.HALIGN.center),
            new Group(AxisLayout.horizontal().gap(10)).add(
                new Label("Plain").addStyles(smallUnderlined),
                new Label("gjpqy").addStyles(smallUnderlined),
                new Label("Pixel Outline").addStyles(
View Full Code Here

Examples of tripleplay.ui.Styles

            COL.alignLeft(), COL.alignRight(), COL.stretch()).gaps(5, 5);
        TableLayout fixedDemo = new TableLayout(COL.fixed(), COL, COL.stretch()).gaps(5, 5);
        TableLayout minWidthDemo = new TableLayout(
            COL.minWidth(100), COL.minWidth(100).stretch(), COL).gaps(5, 5);

        Styles greyBg = Styles.make(Style.BACKGROUND.is(Background.solid(0xFFCCCCCC).inset(5)));
        Styles greenBg = Styles.make(Style.BACKGROUND.is(Background.solid(0xFFCCFF99).inset(5)));

        Group iface = new Group(AxisLayout.vertical().offStretch()).add(
            new Shim(15, 15),
            new Label("Table Layout"),
            new Group(main, greyBg).add(
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.