Examples of Highlighter


Examples of org.gocha.gui.Highlighter

        try
        {
            Pattern ptrn = Regex.parseXMLResource("/org/gocha/gui/highlight/simplelang.xml");
            TextStyles styles = TextStyles.parseXMLResource("/org/gocha/gui/highlight/style.xml");

            highlighter = new Highlighter();
            highlighter.setTextPane(textPane);
            highlighter.setPattern(ptrn);
            highlighter.setStyles(styles);
            highlighter.reinit();
            highlighter.start();
View Full Code Here

Examples of org.jdesktop.swing.decorator.Highlighter

        resourcesTable.getColumnModel().getColumn(1).setPreferredWidth(240);
        resourcesTable.getColumnModel().getColumn(2).setPreferredWidth(60);
        resourcesTable.getColumnModel().getColumn(3).setPreferredWidth(60);
        resourcesTable.getColumnModel().getColumn(4).setPreferredWidth(100);
        resourcesTable.setHighlighters(new HighlighterPipeline(
                new Highlighter[] { new Highlighter(
                        new Color(0xFF, 0xFF, 0xFF), null) }));
        resourcesScrollPane = new JScrollPane(resourcesTable);
        resourcesScrollPane.setPreferredSize(new Dimension(500, 130));
        JPanel secondResourcesScrollPane = new JPanel();
        secondResourcesScrollPane.setBorder(new TitledBorder(
View Full Code Here

Examples of org.jdesktop.swingx.decorator.Highlighter

                return CalendarState.DAY_OF_WEEK == ca.getCalendarState() ||
                    CalendarState.TITLE == ca.getCalendarState();
            }
           
        };
        Highlighter font = new AbstractHighlighter(boldPredicate) {

            @Override
            protected Component doHighlight(Component component,
                    ComponentAdapter adapter) {
                component.setFont(getDerivedFont(component.getFont()));
                return component;
            }
           
        };
        highlighter.addHighlighter(font);
       
        HighlightPredicate unselectable = new HighlightPredicate() {

            public boolean isHighlighted(Component renderer,
                    ComponentAdapter adapter) {
                if (!(adapter instanceof CalendarAdapter))
                    return false;
                return ((CalendarAdapter) adapter).isUnselectable();
            }
           
        };
        textCross.setForeground(unselectableDayForeground);
        Highlighter painterHL = new PainterHighlighter(unselectable, textCross);
        highlighter.addHighlighter(painterHL);
       
    }
View Full Code Here

Examples of org.jdesktop.swingx.decorator.Highlighter

        // new style: use highlighter for color config
        handler.addHighlighters(new ColorHighlighter(
                new DayOfWeekHighlightPredicate(Calendar.SATURDAY),
                null, Color.BLUE));
        // highlight property is setting opacity to true
        Highlighter transparent = new AbstractHighlighter(MonthViewExtDemoUtils.SELECTED) {
           
            @Override
            public Component highlight(Component component,
                    ComponentAdapter adapter) {
                // opacity is not one of the properties which are
View Full Code Here

Examples of org.jdesktop.swingx.decorator.Highlighter

        configureTitle(columnExt);
        ComponentProvider<?> provider = getComponentProvider(columnExt.getIdentifier());
        if (provider != null) {
            columnExt.setCellRenderer(new DefaultTableRenderer(provider));
        }
        Highlighter highlighter = getHighlighter(columnExt.getIdentifier());
        if (highlighter != null) {
            columnExt.setHighlighters(highlighter);
        }
        columnExt.setComparator(getComparator(columnExt.getIdentifier()));
        columnExt.setPrototypeValue(getPrototypeValue(columnExt.getIdentifier()));
View Full Code Here

Examples of org.opoo.press.highlighter.Highlighter

  /**
   * @param rootMap
   */
  private void mergeHighlighterParam(Map<String, Object> rootMap) {
    Highlighter highlighter = site.getHighlighter();
    if(highlighter != null && ".html".equals(outputFileExtension)
        && containsHighlightCodeBlock(highlighter)){
      log.debug("The content contains highlight code block.");
      rootMap.put("highlighter", highlighter.getHighlighterName());
    }
  }
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.