当前位置: 首页>>代码示例>>Java>>正文


Java MarkerChangeEvent类代码示例

本文整理汇总了Java中org.jfree.chart.event.MarkerChangeEvent的典型用法代码示例。如果您正苦于以下问题:Java MarkerChangeEvent类的具体用法?Java MarkerChangeEvent怎么用?Java MarkerChangeEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MarkerChangeEvent类属于org.jfree.chart.event包,在下文中一共展示了MarkerChangeEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: notifyListeners

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Notifies all registered listeners that the marker has been modified.
 *
 * @param event  information about the change event.
 * 
 * @since 1.0.3
 */
public void notifyListeners(MarkerChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == MarkerChangeListener.class) {
            ((MarkerChangeListener) listeners[i + 1]).markerChanged(event);
        }
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:Marker.java

示例2: notifyListeners

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Notifies all registered listeners that the marker has been modified.
 *
 * @param event  information about the change event.
 *
 * @since 1.0.3
 */
public void notifyListeners(MarkerChangeEvent event) {

    Object[] listeners = this.listenerList.getListenerList();
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
        if (listeners[i] == MarkerChangeListener.class) {
            ((MarkerChangeListener) listeners[i + 1]).markerChanged(event);
        }
    }

}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:18,代码来源:Marker.java

示例3: markerChanged

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
public void markerChanged(MarkerChangeEvent event) {
    this.lastEvent = event;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:CategoryMarkerTests.java

示例4: setPaint

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the paint and sends a {@link MarkerChangeEvent} to all registered
 * listeners.
 * 
 * @param paint  the paint (<code>null</code> not permitted).
 * 
 * @see #getPaint()
 */
public void setPaint(Paint paint) {
    if (paint == null) {
        throw new IllegalArgumentException("Null 'paint' argument.");
    }
    this.paint = paint;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例5: setStroke

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the stroke and sends a {@link MarkerChangeEvent} to all registered
 * listeners.
 * 
 * @param stroke  the stroke (<code>null</code> not permitted).
 * 
 * @see #getStroke()
 */
public void setStroke(Stroke stroke) {
    if (stroke == null) {
        throw new IllegalArgumentException("Null 'stroke' argument.");
    }
    this.stroke = stroke;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例6: setAlpha

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the alpha transparency that should be used when drawing the 
 * marker, and sends a {@link MarkerChangeEvent} to all registered 
 * listeners.  The alpha transparency is a value in the range 0.0f 
 * (completely transparent) to 1.0f (completely opaque).
 * 
 * @param alpha  the alpha transparency (must be in the range 0.0f to 
 *     1.0f).
 *     
 * @throws IllegalArgumentException if <code>alpha</code> is not in the
 *     specified range.
 *     
 * @see #getAlpha()
 */
public void setAlpha(float alpha) {
    if (alpha < 0.0f || alpha > 1.0f)
        throw new IllegalArgumentException(
                "The 'alpha' value must be in the range 0.0f to 1.0f");
    this.alpha = alpha;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:22,代码来源:Marker.java

示例7: setLabelFont

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the label font and sends a {@link MarkerChangeEvent} to all 
 * registered listeners.
 *
 * @param font  the font (<code>null</code> not permitted).
 * 
 * @see #getLabelFont()
 */
public void setLabelFont(Font font) {
    if (font == null) {
        throw new IllegalArgumentException("Null 'font' argument.");
    }
    this.labelFont = font;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例8: setLabelPaint

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the label paint and sends a {@link MarkerChangeEvent} to all
 * registered listeners.
 *
 * @param paint  the paint (<code>null</code> not permitted).
 * 
 * @see #getLabelPaint()
 */
public void setLabelPaint(Paint paint) {
    if (paint == null) {
        throw new IllegalArgumentException("Null 'paint' argument.");
    }
    this.labelPaint = paint;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例9: setLabelAnchor

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the label anchor and sends a {@link MarkerChangeEvent} to all 
 * registered listeners.  The anchor defines the position of the label 
 * anchor, relative to the bounds of the marker.
 *
 * @param anchor  the anchor (<code>null</code> not permitted).
 * 
 * @see #getLabelAnchor()
 */
public void setLabelAnchor(RectangleAnchor anchor) {
    if (anchor == null) {
        throw new IllegalArgumentException("Null 'anchor' argument.");
    }
    this.labelAnchor = anchor;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:Marker.java

示例10: setLabelOffset

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the label offset and sends a {@link MarkerChangeEvent} to all
 * registered listeners.
 * 
 * @param offset  the label offset (<code>null</code> not permitted).
 * 
 * @see #getLabelOffset()
 */
public void setLabelOffset(RectangleInsets offset) {
    if (offset == null) {
        throw new IllegalArgumentException("Null 'offset' argument.");
    }
    this.labelOffset = offset;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例11: setLabelOffsetType

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the label offset type and sends a {@link MarkerChangeEvent} to all
 * registered listeners.
 * 
 * @param adj  the type (<code>null</code> not permitted).
 * 
 * @see #getLabelOffsetType()
 */
public void setLabelOffsetType(LengthAdjustmentType adj) {
    if (adj == null) {
        throw new IllegalArgumentException("Null 'adj' argument.");
    }
    this.labelOffsetType = adj;    
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例12: setLabelTextAnchor

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the label text anchor and sends a {@link MarkerChangeEvent} to 
 * all registered listeners.
 * 
 * @param anchor  the label text anchor (<code>null</code> not permitted).
 * 
 * @see #getLabelTextAnchor()
 */
public void setLabelTextAnchor(TextAnchor anchor) {
    if (anchor == null) { 
        throw new IllegalArgumentException("Null 'anchor' argument.");
    }
    this.labelTextAnchor = anchor;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Marker.java

示例13: setKey

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the key and sends a {@link MarkerChangeEvent} to all registered
 * listeners.
 * 
 * @param key  the key (<code>null</code> not permitted).
 * 
 * @since 1.0.3
 */
public void setKey(Comparable key) {
    if (key == null) {
        throw new IllegalArgumentException("Null 'key' argument.");
    }
    this.key = key;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:CategoryMarker.java

示例14: setAlpha

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the alpha transparency that should be used when drawing the
 * marker, and sends a {@link MarkerChangeEvent} to all registered
 * listeners.  The alpha transparency is a value in the range 0.0f
 * (completely transparent) to 1.0f (completely opaque).
 *
 * @param alpha  the alpha transparency (must be in the range 0.0f to
 *     1.0f).
 *
 * @throws IllegalArgumentException if {@code alpha} is not in the
 *     specified range.
 *
 * @see #getAlpha()
 */
public void setAlpha(float alpha) {
    if (alpha < 0.0f || alpha > 1.0f) {
        throw new IllegalArgumentException(
                "The 'alpha' value must be in the range 0.0f to 1.0f");
    }
    this.alpha = alpha;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:23,代码来源:Marker.java

示例15: setPaint

import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
/**
 * Sets the paint and sends a {@link MarkerChangeEvent} to all registered
 * listeners.
 *
 * @param paint  the paint (<code>null</code> not permitted).
 *
 * @see #getPaint()
 */
public void setPaint(Paint paint) {
    if (paint == null) {
        throw new IllegalArgumentException("Null 'paint' argument.");
    }
    this.paint = paint;
    notifyListeners(new MarkerChangeEvent(this));
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:16,代码来源:Marker.java


注:本文中的org.jfree.chart.event.MarkerChangeEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。