Package org.netbeans.api.editor.settings

Examples of org.netbeans.api.editor.settings.FontColorSettings


        //HighlightsContainer th = HighlightingManager.getInstance(pane).getTopHighlights();
       
        HighlightsSequence bhs = bh.getHighlights(start, end);
        //HighlightsSequence ths = th.getHighlights(start, end);       

        final FontColorSettings fcs = MimeLookup.getLookup(
            MimePath.get(pane.getContentType())).lookup(FontColorSettings.class);

        default_fcolor = (Color) fcs.getTokenFontColors("default").getAttribute(StyleConstants.Foreground);
       // default_fcolor = pane.getForeground();
      //  Color test = (Color) pane.getFont().getAttributes().get(StyleConstants.Foreground);

        String colorTblStr = "{\\colortbl;";
        colorTblStr += processColorToken(default_fcolor);
View Full Code Here


    }

    @Override
    public String convertContentToRTF(
            JEditorPane pane) {
        final FontColorSettings fcs = MimeLookup.getLookup(
                MimePath.get(pane.getContentType())).lookup(FontColorSettings.class);

        String colortable = createColorTable(pane, fcs);
        String fonttable = createFontTable(pane);
        final TokenSequence<?> ts = TokenHierarchy.get(pane.getDocument()).
View Full Code Here

    public SummaryView(SearchHistoryPanel master, List<RepositoryRevision> results) {
        this.master = master;
        this.results = results;
        this.dispResults = expandResults(results);
        FontColorSettings fcs = MimeLookup.getLookup(MimePath.get("text/x-java")).lookup(FontColorSettings.class); // NOI18N
        searchHiliteAttrs = fcs.getFontColors("highlight-search"); // NOI18N
        message = master.getCriteria().getCommitMessage();
        resultsList = new JList(new SummaryListModel());
        resultsList.setFixedCellHeight(-1);
        resultsList.addMouseListener(this);
        resultsList.addMouseMotionListener(this);
View Full Code Here

TOP

Related Classes of org.netbeans.api.editor.settings.FontColorSettings

Copyright © 2018 www.massapicom. 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.