本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例3: markerChanged
import org.jfree.chart.event.MarkerChangeEvent; //导入依赖的package包/类
public void markerChanged(MarkerChangeEvent event) {
this.lastEvent = event;
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}