Java 类org.jfree.chart.annotations.Annotation 实例源码

项目:nmonvisualizer    文件:LineChartPanel.java   
@Override
public void addAnnotations(List<Annotation> annotations) {
    if (getChart() != null) {
        XYPlot plot = getChart().getXYPlot();

        plot.clearAnnotations();

        for (Annotation a : annotations) {
            if (a instanceof XYAnnotation) {
                XYAnnotation annotation = (XYAnnotation) a;
                plot.addAnnotation(annotation);

                firePropertyChange("annotation", null, annotation);
            }
        }
    }
}
项目:nmonvisualizer    文件:BarChartPanel.java   
@Override
public void addAnnotations(List<Annotation> annotations) {
    if (getChart() != null) {
        CategoryPlot plot = getChart().getCategoryPlot();

        plot.clearAnnotations();
        for (Annotation a : annotations) {
            if (a instanceof CategoryTextAnnotation) {
                CategoryTextAnnotation annotation = (CategoryTextAnnotation) a;

                if (plot.getCategories().contains(annotation.getCategory())) {
                    plot.addAnnotation(annotation);
                    firePropertyChange("annotation", null, annotation);
                }
            }
        }
    }
}
项目:nmonvisualizer    文件:AnnotationCache.java   
public static void add(Object o) {
    if (o instanceof Marker) {
        markers.add((Marker) o);
    }
    else if (o instanceof Annotation) {
        annotations.add((Annotation) o);
    }
    else {
        return;
    }

    for (AnnotationListener listener : listeners) {
        listener.annotationAdded();
    }
}
项目:nmonvisualizer    文件:AnnotationCache.java   
public static void addAnnotation(Annotation annotation) {
    if (annotation != null) {
        annotations.add(annotation);

        for (AnnotationListener listener : listeners) {
            listener.annotationAdded();
        }
    }
}
项目:nmonvisualizer    文件:AnnotationCache.java   
public static List<Annotation> getAnnotations() {
    return java.util.Collections.unmodifiableList(annotations);
}
项目:ccu-historian    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:ccu-historian    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:jfreechart    文件:AnnotationChangeEvent.java   
/**
 * Creates a new {@code AnnotationChangeEvent} instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     ({@code null} not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    Args.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:jfreechart    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never {@code null}).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:aya-lang    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:aya-lang    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:populus    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:populus    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:ECG-Viewer    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:ECG-Viewer    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:astor    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    this.annotation = annotation;
}
项目:astor    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:group-five    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:group-five    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:manydesigns.cn    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:manydesigns.cn    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:buffer_bci    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:buffer_bci    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:buffer_bci    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:buffer_bci    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:proyecto-teoria-control-utn-frro    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:proyecto-teoria-control-utn-frro    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:Memetic-Algorithm-for-TSP    文件:AnnotationChangeEvent.java   
/**
 * Creates a new <code>AnnotationChangeEvent</code> instance.
 *
 * @param source  the event source.
 * @param annotation  the annotation that triggered the event
 *     (<code>null</code> not permitted).
 *
 * @since 1.0.14
 */
public AnnotationChangeEvent(Object source, Annotation annotation) {
    super(source);
    ParamChecks.nullNotPermitted(annotation, "annotation");
    this.annotation = annotation;
}
项目:Memetic-Algorithm-for-TSP    文件:AnnotationChangeEvent.java   
/**
 * Returns the annotation that triggered the event.
 *
 * @return The annotation that triggered the event (never <code>null</code>).
 *
 * @since 1.0.14
 */
public Annotation getAnnotation() {
    return this.annotation;
}
项目:nmonvisualizer    文件:BaseChartPanel.java   
public void addAnnotations(List<Annotation> annotations) {}