Examples of addAnnotation()


Examples of org.jboss.metadata.plugins.loader.thread.ThreadLocalMetaDataLoader.addAnnotation()

      TestAnnotation annotation = getAnnotation();
      mmdl.addMetaData(annotation, TestAnnotation.class);
      retrievals[1] = mmdl;
      retrievals[2] = new SimpleMetaDataLoader(new Annotation[]{annotation});
      ThreadLocalMetaDataLoader tlmdl = ThreadLocalMetaDataLoader.INSTANCE;
      tlmdl.addAnnotation(annotation);
      retrievals[3] = tlmdl;
      for(MetaDataRetrieval rdr : retrievals)
         assertFalse(rdr.toString(), rdr.isEmpty());

      mmdl.removeMetaData(TestAnnotation.class);
View Full Code Here

Examples of org.jboss.metadata.spi.MutableMetaData.addAnnotation()

   protected abstract MetaDataRetrieval initComponentRetrieval(Signature signature);
  
   public <T extends Annotation> T addAnnotation(Signature signature, T annotation)
   {
      MutableMetaData component = initRetrieval(signature);
      return component.addAnnotation(annotation);
   }

   public <T> T addMetaData(Signature signature, String name, T metaData, Class<T> type)
   {
      MutableMetaData component = initRetrieval(signature);
View Full Code Here

Examples of org.jboss.metadata.spi.loader.MutableMetaDataLoader.addAnnotation()

   }

   protected MetaData setupTestAnnotation()
   {
      MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
      loader.addAnnotation(new TestAnnotationImpl());
      return setupMetaData(loader);
   }

   protected MetaData setupTestAnnotation12()
   {
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.addAnnotation()

        // annotations
        plot1.addAnnotation(new CategoryTextAnnotation("Text", "Category",
                43.0));
        assertFalse(plot1.equals(plot2));
        plot2.addAnnotation(new CategoryTextAnnotation("Text", "Category",
                43.0));
        assertTrue(plot1.equals(plot2));

        // weight
        plot1.setWeight(3);
View Full Code Here

Examples of org.jfree.chart.plot.XYPlot.addAnnotation()

     */
     private void initChart() {
        XYPlot plot = m_chart.getXYPlot();

        if (m_xyAnnotation != null) {
            plot.addAnnotation(m_xyAnnotation);
        }
       
        if (m_xMarker != null) {
            plot.addDomainMarker(m_xMarker);
        }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYBlockRenderer.addAnnotation()

        xyAnnotation.setFont(new Font("Nome",Font.BOLD,8));       
        xyAnnotation.setPaint(Color.BLACK);
      }

      xyAnnotation.setTextAnchor(TextAnchor.BOTTOM_LEFT);
      renderer.addAnnotation(xyAnnotation);
    }

    logger.debug("Annotation set");

    LookupPaintScale paintScale = new LookupPaintScale(0.5, ranges.size()+0.5, color);
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.addAnnotation()

   
    XYPointerAnnotation xypointerannotation = new XYPointerAnnotation("Annotation 1 (2.0, 167.3)", 2D, 167.30000000000001D, -0.78539816339744828D);
    xypointerannotation.setTextAnchor(TextAnchor.BOTTOM_LEFT);
    xypointerannotation.setPaint(Color.red);
    xypointerannotation.setArrowPaint(Color.red);
    xylineandshaperenderer.addAnnotation(xypointerannotation);
    xylineandshaperenderer.addAnnotation(new XYPointerAnnotation("我的一个", 4D, 167.59999999999999D, -0.76));
   
    XYLineAndShapeRenderer xylineandshaperenderer1 = new XYLineAndShapeRenderer(true, true);
    xylineandshaperenderer1.setSeriesPaint(0, Color.black);
    xylineandshaperenderer.setBaseToolTipGenerator(StandardXYToolTipGenerator.getTimeSeriesInstance());
View Full Code Here

Examples of org.jfree.chart.renderer.xy.YIntervalRenderer.addAnnotation()

        r2.setURLGenerator(new StandardXYURLGenerator());
        assertTrue(r1.equals(r2));

        r1.addAnnotation(new XYTextAnnotation("X", 1.0, 2.0), Layer.FOREGROUND);
        assertFalse(r1.equals(r2));
        r2.addAnnotation(new XYTextAnnotation("X", 1.0, 2.0), Layer.FOREGROUND);
        assertTrue(r1.equals(r2));

        r1.addAnnotation(new XYTextAnnotation("X", 1.0, 2.0), Layer.BACKGROUND);
        assertFalse(r1.equals(r2));
        r2.addAnnotation(new XYTextAnnotation("X", 1.0, 2.0), Layer.BACKGROUND);
View Full Code Here

Examples of org.kie.workbench.common.screens.datamodeller.model.DataObjectTO.addAnnotation()

            String objectPackage = "a.b.c";
            String objectLabelValue = "Generated Bean";
            String objectDescriptionValue = "This is a programmatically added bean";
            String objectRoleValue = "EVENT";
            DataObjectTO dataObject = new DataObjectTO(objectName, objectPackage, null);
            dataObject.addAnnotation(annotationDefs.get(AnnotationDefinitionTO.LABEL_ANNOTATION), AnnotationDefinitionTO.VALUE_PARAM, objectLabelValue);
            dataObject.addAnnotation(annotationDefs.get(AnnotationDefinitionTO.DESCRIPTION_ANNOTATION), AnnotationDefinitionTO.VALUE_PARAM, objectDescriptionValue);
            dataObject.addAnnotation(annotationDefs.get(AnnotationDefinitionTO.ROLE_ANNOTATION), AnnotationDefinitionTO.VALUE_PARAM, objectRoleValue);
            dataModel.getDataObjects().add(dataObject);

            String fieldName = "simpleProperty";
View Full Code Here

Examples of org.kie.workbench.common.screens.datamodeller.model.ObjectPropertyTO.addAnnotation()

            String fieldClass = "java.lang.String";
            String fieldLabelValue = "Simple Property";
            String fieldDescriptionValue = "This is a programmatically added String property";
            int fieldPositionValue = 1;
            ObjectPropertyTO baseTypeProp = new ObjectPropertyTO(fieldName, fieldClass, false, true);
            baseTypeProp.addAnnotation(annotationDefs.get(AnnotationDefinitionTO.LABEL_ANNOTATION), AnnotationDefinitionTO.VALUE_PARAM, fieldLabelValue);
            baseTypeProp.addAnnotation(annotationDefs.get(AnnotationDefinitionTO.DESCRIPTION_ANNOTATION), AnnotationDefinitionTO.VALUE_PARAM, fieldDescriptionValue);
            baseTypeProp.addAnnotation(annotationDefs.get(AnnotationDefinitionTO.POSITION_ANNOTATION), AnnotationDefinitionTO.VALUE_PARAM, fieldPositionValue);
            dataObject.setProperties(Arrays.asList(baseTypeProp));

            GenerationResult result = modelerService.saveModel(dataModel, project);
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.