Examples of Title


Examples of org.apache.ecs.html.Title

     *
     * @param intitle A String with the title.
     */
    public TemplatePageAttributes setTitle(String intitle)
    {
        Title title = data.getPage().getTitle();
        if (cachedTitle != null)
            cachedTitle += intitle;
        else
            cachedTitle = intitle;
        title.addElement(intitle);
        return this;
    }
View Full Code Here

Examples of org.apache.isis.applib.annotation.Title

        Collections.sort(methods, new Comparator<Method>() {
            Comparator<String> comparator = new SequenceComparator();

            @Override
            public int compare(final Method o1, final Method o2) {
                final Title a1 = o1.getAnnotation(Title.class);
                final Title a2 = o2.getAnnotation(Title.class);
                return comparator.compare(a1.sequence(), a2.sequence());
            }
        });
        if (methods.isEmpty()) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.applib.annotation.Title

        public Method getMethod() {
            return method;
        }

        public static TitleComponent of(final Method method) {
            final Title annotation = method.getAnnotation(Title.class);
            final String prepend = annotation != null ? annotation.prepend() : " ";
            final String append = annotation != null ? annotation.append() : "";
            final int abbreviateTo = annotation != null ? annotation.abbreviatedTo() : Integer.MAX_VALUE;
            return new TitleComponent(prepend, append, method, abbreviateTo);
        }
View Full Code Here

Examples of org.apache.isis.applib.annotation.Title

        Collections.sort(methods, new Comparator<Method>() {
            Comparator<String> comparator = new SequenceComparator();

            @Override
            public int compare(final Method o1, final Method o2) {
                final Title a1 = o1.getAnnotation(Title.class);
                final Title a2 = o2.getAnnotation(Title.class);
                return comparator.compare(a1.sequence(), a2.sequence());
            }
        });
        if (methods.isEmpty()) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.applib.annotation.Title

        public Method getMethod() {
            return method;
        }

        public static TitleComponent of(final Method method) {
            final Title annotation = method.getAnnotation(Title.class);
            final String prepend = annotation != null ? annotation.prepend() : " ";
            final String append = annotation != null ? annotation.append() : "";
            final int abbreviateTo = annotation != null ? annotation.abbreviatedTo() : Integer.MAX_VALUE;
            return new TitleComponent(prepend, append, method, abbreviateTo);
        }
View Full Code Here

Examples of org.apache.isis.application.Title

            }
        }
    }

    public Title title() {
        Title t = new Title(getStart() == null ? "" : getStart().title().toString());
        t.append("~");
        t.append(getEndDate() == null ? "" : getEndDate().title().toString());

        return t;
    }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.display.Title

        addElementProcessor(new TableBuilder());
        addElementProcessor(new TableEmpty());
        addElementProcessor(new TableRow());
        addElementProcessor(new TableHeader());
        addElementProcessor(new TemplateTag());
        addElementProcessor(new Title());
        addElementProcessor(new TitleString());
        addElementProcessor(new ThrowException());
        addElementProcessor(new Type());
        addElementProcessor(new User());
        addElementProcessor(new Unless());
View Full Code Here

Examples of org.foray.fotree.fo.obj.Title

        case TABLE_ROW: {
            return new TableRow(parent, propertyList,
                    false);
        }
        case TITLE: {
            return new Title(parent, propertyList);
        }
        case WRAPPER: {
            return new Wrapper(parent, propertyList);
        }
        default: {
View Full Code Here

Examples of org.jfree.chart.title.Title

  public static void applyStyles(JFreeChart chart) {
    chart.getTitle().setFont(WidgetUtils.FONT_HEADER1);
    chart.getTitle().setBackgroundPaint(WidgetUtils.BG_COLOR_BRIGHTEST);

    for (int i = 0; i < chart.getSubtitleCount(); i++) {
      Title subtitle = chart.getSubtitle(i);
      if (subtitle instanceof TextTitle) {
        ((TextTitle) subtitle).setFont(WidgetUtils.FONT_NORMAL);
      }
    }
View Full Code Here

Examples of org.jfree.chart.title.Title

    drillToOverview();

    // chart for display of the dataset
    final JFreeChart chart = ChartFactory.createPieChart("Value distribution of " + _groupOrColumnName, _dataset, false,
        true, false);
    Title totalCountSubtitle = new ShortTextTitle("Total count: " + totalCount);
    Title distinctCountSubtitle = new ShortTextTitle("Distinct count: " + distinctCount);
    chart.setSubtitles(Arrays.asList(totalCountSubtitle, distinctCountSubtitle));

    ChartUtils.applyStyles(chart);

    // code-block for tweaking style and coloring of chart
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.