Examples of generateLabel()


Examples of com.positive.charts.labels.CategoryItemLabelGenerator.generateLabel()

    if (generator != null) {
      final Font labelFont = this.getItemLabelFont(row, column);
      final Color paint = this.getItemLabelPaint(row, column);
      g2.setFont(labelFont);
      g2.setForeground(paint);
      final String label = generator.generateLabel(dataset, row, column);
      ItemLabelPosition position = null;
      if (!negative) {
        position = this.getPositiveItemLabelPosition(row, column);
      } else {
        position = this.getNegativeItemLabelPosition(row, column);
View Full Code Here

Examples of com.positive.charts.labels.XYItemLabelGenerator.generateLabel()

      // g2.setPaint(paint);

      // Color color = getColor(ITEM_LABEL_COLOR);
      // g2.setForeground(color);
      g2.setFont(labelFont);
      final String label = generator.generateLabel(dataset, series, item);

      // get the label position..
      ItemLabelPosition position = null;
      if (!negative) {
        position = this.getPositiveItemLabelPosition(series, item);
View Full Code Here

Examples of org.apache.cocoon.forms.formmodel.Widget.generateLabel()

                    throw new SAXException("FormsTemplateTransformer: the element \"repeater-widget\" can only be used for repeater widgets.");
                }
            } else if (localName.equals(WIDGET_LABEL)) {
                checkContextWidgetAvailable(qName);
                Widget widget = getWidget(attributes);
                widget.generateLabel(contentHandler);
            } else if (localName.equals(REPEATER_WIDGET_LABEL)) {
                checkContextWidgetAvailable(qName);
                Widget widget = getWidget(attributes);
                if (!(widget instanceof Repeater)) {
                    throw new SAXException("FormsTemplateTransformer: the element \"repeater-widget-label\" can only be used for repeater widgets.");
View Full Code Here

Examples of org.apache.cocoon.forms.formmodel.Widget.generateLabel()

        public Handler process() throws SAXException {
            switch (event) {
            case EVENT_START_ELEMENT:
                widgetPath = getWidgetId(input.attrs);
                Widget widget = getWidget(widgetPath);
                widget.generateLabel(getContentHandler());
                widget = null;
                return this;
            case EVENT_ELEMENT:
                return nullHandler;
            case EVENT_END_ELEMENT:
View Full Code Here

Examples of org.apache.cocoon.forms.formmodel.Widget.generateLabel()

                    throw new SAXException("FormsTemplateTransformer: the element \"repeater-widget\" can only be used for repeater widgets.");
                }
            } else if (localName.equals(WIDGET_LABEL)) {
                checkContextWidgetAvailable(qName);
                Widget widget = getWidget(attributes);
                widget.generateLabel(contentHandler);
            } else if (localName.equals(REPEATER_WIDGET_LABEL)) {
                checkContextWidgetAvailable(qName);
                Widget widget = getWidget(attributes);
                if (!(widget instanceof Repeater)) {
                    throw new SAXException("FormsTemplateTransformer: the element \"repeater-widget-label\" can only be used for repeater widgets.");
View Full Code Here

Examples of org.apache.cocoon.forms.formmodel.Widget.generateLabel()

        public Handler process() throws SAXException {
            switch (event) {
            case EVENT_START_ELEMENT:
                widgetId = getWidgetId(input.attrs);
                Widget widget = getWidget(widgetId);
                widget.generateLabel(getContentHandler());
                widget = null;
                return this;
            case EVENT_ELEMENT:
                return nullHandler;
            case EVENT_END_ELEMENT:
View Full Code Here

Examples of org.apache.cocoon.forms.formmodel.Widget.generateLabel()

    }

    public void generateWidgetLabel(Widget widget, String id) throws SAXException {
        Widget widgetInst = getWidget(widget, id);
        if (widget instanceof Repeater) {
            widgetInst.generateLabel(this.cocoonConsumer);
        } else {
            AttributesImpl attrs = new AttributesImpl();
            attrs.addCDATAAttribute("id", widgetInst.getRequestParameterName());
            attrs.addCDATAAttribute("state", widgetInst.getCombinedState().getName());
            this.cocoonConsumer.startElement(FormsConstants.INSTANCE_NS, "field-label", FormsConstants.INSTANCE_PREFIX_COLON + "field-label", attrs);
View Full Code Here

Examples of org.apache.cocoon.woody.formmodel.Widget.generateLabel()

        } else if (inWidgetElement) {
            xmlCompiler.startElement(namespaceURI, localName, qName, attributes);
        } else if (namespaceURI.equals(Constants.WT_NS)) {
            if (localName.equals("widget-label")) {
                Widget widget = getWidget(attributes);
                widget.generateLabel(contentHandler);
            } else if (localName.equals("repeater-widget-label")) {
                Widget widget = getWidget(attributes);
                if (!(widget instanceof Repeater))
                    throw new SAXException("WoodyTemplateTransformer: the element \"repeater-widget-label\" can only be used for repeater widgets.");
                String widgetId = attributes.getValue("widget-id");
View Full Code Here

Examples of org.apache.cocoon.woody.formmodel.Widget.generateLabel()

                    throw new SAXException("WoodyTemplateTransformer: the element \"repeater-widget\" can only be used for repeater widgets.");
                }
            } else if (localName.equals(WIDGET_LABEL)) {
                checkContextWidgetAvailable(qName);
                Widget widget = getWidget(attributes);
                widget.generateLabel(contentHandler);
            } else if (localName.equals(REPEATER_WIDGET_LABEL)) {
                checkContextWidgetAvailable(qName);
                Widget widget = getWidget(attributes);
                if (!(widget instanceof Repeater)) {
                    throw new SAXException("WoodyTemplateTransformer: the element \"repeater-widget-label\" can only be used for repeater widgets.");
View Full Code Here

Examples of org.apache.cocoon.woody.formmodel.Widget.generateLabel()

        public Handler process() throws SAXException {
            switch (event) {
            case EVENT_START_ELEMENT:
                widgetId = getWidgetId(input.attrs);
                Widget widget = getWidget(widgetId);
                widget.generateLabel(getContentHandler());
                widget = null;
                return this;
            case EVENT_ELEMENT:
                return nullHandler;
            case EVENT_END_ELEMENT:
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.