出现no rendererno language definedd怎么解决

9226人阅读
Android(6)
make: *** No rule to make target `/cygdrive/d/1-workspace/showmap-android-opengles/jni/showmap_opengles_OpenGLESRenderer.c', needed
by `/cygdrive/d/1-workspace/showmap-android-opengles/obj/local/armeabi/objs/OpenGLESMap/showmap_opengles_OpenGLESRenderer.o'. &Stop.
该错误是将showmap_opengles_OpenGLESRenderer.c改成showmap_opengles_OpenGLESRenderer.cpp后出现,当然android.mk文件中也作了相应修改
删除 obj 文件夹,估计是有缓存信息导致去找showmap_opengles_OpenGLESRenderer.c而没找到。
(转载http://laokaddk./9386)
一 &javah引发的问题
D/dalvikvm( 1704): Trying to load lib /data/data/com.ulang/lib/libulangaudio.so 0x41052a38
D/dalvikvm( 1704): Shared lib '/data/data/com.ulang/lib/libulangaudio.so' already loaded in same CL 0x41052a38
W/dalvikvm( 1704): No implementation found for native Lcom/ulang/AudioL. sayHelloEx ()Ljava/lang/S
D/AndroidRuntime( 1704): Shutting down VM
W/dalvikvm( 1704): threadid=1: thread exiting with uncaught exception (group=0x)
E/AndroidRuntime( 1704): FATAL EXCEPTION: main
E/AndroidRuntime( 1704): java.lang.UnsatisfiedLinkError: sayHelloEx
E/AndroidRuntime( 1704): & & & at com.ulang.AudioLib.sayHelloEx(Native Method)
E/AndroidRuntime( 1704): & & & at com.ulang.One.onClick(One.java:76)
E/AndroidRuntime( 1704): & & & at android.view.View.performClick(View.java:3480)
E/AndroidRuntime( 1704): & & & at android.view.View$PerformClick.run(View.java:13983)
E/AndroidRuntime( 1704): & & & at android.os.Handler.handleCallback(Handler.java:605)
E/AndroidRuntime( 1704): & & & at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 1704): & & & at android.os.Looper.loop(Looper.java:137)
发现第二个参数 javah生成为 jclass, 因此出错 ,
要将其换成 jobject则可以.
Javah并不是所有情况都将第二项生成 jclass, 有时也是生成的jobject.
NE:要特别注意!
#define __cplusplus
#ifdef __cplusplus
extern &C& {
* Class: & & com_ulang_AudioLib
* Method: & &sayHelloEx
* Signature: ()Ljava/lang/S
JNIEXPORT jstring JNICALL Java_com_ulang_AudioLib_sayHelloEx
&(JNIEnv *, jclass);
#ifdef __cplusplus
  在实验JNI接口调用的时候,发现时而成功,时而执行就异常,在logcat上就有提示:
  no implementation found in native ....
  后来搜索了一下网络,发现出现这种情况有可能有几种情况
  1.函数名字写错了
  2.确认在更改了接口函数的时候,要重新clean一下工程,再rebuild all。
  在确认以上两点后,JNI接口调用的no implementation error没有出现了。
(2)运行c++生成的.so库,若报以下错误:(既找不到函数)
No implementation found for native Lcom/dgut/android/MainA.stringFromJNI ()Ljava/lang/S
java.lang.UnsatisfiedLinkError: stringFromJNI
at com.dgut.android.MainActivity.stringFromJNI(Native Method)
解决方法:
为供Java调用的c++函数前加入extern &C& 修饰,如:(NDK example里面的cpp文件也是这么声明的,参考hello-gl2)
extern &C& {
JNIEXPORT jstring JNICALL Java_com_dgut_android_MainActivity_stringFromJNI( JNIEnv* env, jobject thiz );
JNIEXPORT jstring JNICALL Java_com_dgut_android_MainActivity_stringFromJNI( JNIEnv* env, jobject thiz )
return env-&NewStringUTF(&Hello from JNI bear c++&);
& & & &被extern &C&修饰的变量和函数是按照C语言方式编译和连接的。
& & & &首先看看C++中对类似C的函数是怎样编译的:作为一种面向对象的语言,C++支持函数重载,而过程式语言C则不支持。函数被C++编译后在符号库中的名字与C语言的不同。例如,假设某个函数的原型为:void foo( int x, int y );该函数被C编译器编译后在符号库中的名字为_foo,而C++编译器则会产生像_foo_int_int之类的名字(不同的编译器可能生成的名字不同,但是都采用了相同的机制,生成的新名字称为“mangled
name”)。_foo_int_int这样的名字包含了函数名、函数参数数量及类型信息,C++就是靠这种机制来实现函数重载的。例如,在C++中,函数voidfoo( int x, int y )与void foo( int x, float y )编译生成的符号是不相同的,后者为_foo_int_float。
同样地,C++中的变量除支持局部变量外,还支持类成员变量和全局变量。用户所编写程序的类成员变量可能与全局变量同名,我们以&.&来区分。而本质上,编译器在进行编译时,与函数的处理相似,也为类中的变量取了一个独一无二的名字,这个名字与用户程序中同名的全局变量名字不同。
因此,若我们没有使用extern &C&修饰函数,按照C语言方式编译和连接,Jni调用将可能找不到该函数。
JNI 调用时,一直报 No implementation found for native
有一个可能是,如果调用的是C++的代码,必须加extern &C&
【转】&jni 调用c和c++的区别.
1、JNIEnv *env参数的使用
所有JNI接口的第一个参数是JNIEnv *env, 在C中,使用方法是
(*env)-&NewStringUTF(env, &Hello from JNI!&);
但在C++中,其调用方法是
env-&NewStringUTF(&Hello from JNI!&);
为什么有这种区别呢,看看jni.h中关于JNIEnv的定义就可以知道了:
#if defined(__cplusplus)
typedef _JNIEnv JNIE
typedef const struct JNINativeInterface* JNIE
可以看到,对于C和C++,定义有所不同,主要原因是C不支持类,所以采用了一种变通的方法。
2、接口找不到
在Java中调用JNI接口时,出现异常,察看日志,发现有如下错误:
WARN/dalvikvm(422): No implementation found for native Lcom/whty/wcity/HelixP.setDllPath (Ljava/lang/S)V
检查了几遍代码,Cpp中确实定义了这个接口,而且仔细对照了Java的包名、类名,确实没有错误,那为什么会出现这种问题呢。后来突然想到,JNI接口 都是以C的方式定义的,现在使用C++实现,函数定义前是否需要加上extern &C&呢?为此定义了一个头文件,在CPP文件中include该头文件,头文件加上如下代码片断:
#ifdef __cplusplus
extern &C& {
#ifdef __cplusplus
再次尝试,调用成功!
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:233993次
积分:3523
积分:3523
排名:第9900名
原创:107篇
转载:171篇
评论:18条
文章:12篇
阅读:7297
文章:12篇
阅读:8407
(1)(2)(1)(2)(2)(3)(2)(1)(1)(4)(9)(18)(1)(6)(4)(7)(1)(1)(1)(3)(19)(6)(8)(8)(2)(3)(14)(5)(19)(28)(35)(20)(5)(8)(18)(3)(2)(5)
(window.slotbydup = window.slotbydup || []).push({
id: '4740881',
container: s,
size: '200,200',
display: 'inlay-fix'This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.
CodePlex is going read-only starting November 6th.
This project has moved.
For the latest updates, please .
Are you sure?
[PHPReport] Can't convert to PDF
description
Hi everybody,
I came here to see if you guys can help me.
I've discovered PHPExcel cause I'm using an class that uses PHPExcel ( PHPReport can be found:
And it works perfectly with the exception of PDF. Converts to HTML, excel and excel2003.
When it tries to convert to PDF it fails here:
File : Writer/PDF.php
$pdfLibraryName = PHPExcel_Settings::getPdfRendererName();
if (is_null($pdfLibraryName)) {
throw new Exception(&PDF Rendering library has not been defined.&);
file attachments
No files are attached
are available for this page.AbstractRenderer (JFreeChart Class Library (version 1.0.19-fx))
JavaScript is disabled on your browser.
Class AbstractRenderer
java.lang.Object
org.jfree.chart.renderer.AbstractRenderer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
public abstract class
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Base class providing common services for renderers.
Most methods that update
attributes of the renderer will fire a , which
normally means the plot that owns the renderer will receive notification that
the renderer has been changed (the plot will, in turn, notify the chart).
Field Summary
Modifier and Type
Field and Description
static java.awt.Paint
The default outline paint.
static java.awt.Stroke
The default outline stroke.
static java.awt.Paint
The default paint.
static java.awt.Shape
The default shape.
static java.awt.Stroke
The default stroke.
static java.awt.Font
The default value label font.
static java.awt.Paint
The default value label paint.
static java.lang.Double
Zero represented as a Double.
Constructor Summary
Constructors&
Constructor and Description
Default constructor.
Method Summary
All Methods&&&&&
Modifier and Type
Method and Description
(&listener)
Registers an object to receive notification of changes to the renderer.
protected java.awt.geom.Point2D
&orientation)
Calculates the item label anchor point.
(boolean&notify)
Clears the series paint settings for this renderer and, if requested,
to all registered listeners.
(boolean&notify)
Clears the series stroke settings for this renderer and, if requested,
to all registered listeners.
protected java.lang.Object
Returns an independent copy of the renderer.
(java.lang.Object&obj)
Tests this renderer for equality with another object.
protected void
to all registered listeners.
Returns the flag that controls whether or not the series fill paint list
is automatically populated when
Returns the flag that controls whether or not the series outline paint
list is automatically populated when
is called.
Returns the flag that controls whether or not the series outline stroke
list is automatically populated when
is called.
Returns the flag that controls whether or not the series paint list is
automatically populated when
is called.
Returns the flag that controls whether or not the series shape list is
automatically populated when
is called.
Returns the flag that controls whether or not the series stroke list is
automatically populated when
is called.
Returns the base visibility for all series.
java.awt.Paint
Returns the base (or default) fill paint.
java.awt.Font
Returns the base item label font (this is used when no other font
setting is available).
java.awt.Paint
Returns the base item label paint.
java.lang.Boolean
Returns the base setting for item label visibility.
java.awt.Shape
Returns the default legend shape, which may be null.
java.awt.Font
Returns the default legend text font, which may be null.
java.awt.Paint
Returns the default legend text paint, which may be null.
Returns the base item label position for negative values.
java.awt.Paint
Returns the base (or default) outline paint.
java.awt.Stroke
Returns the base (or default) outline stroke.
java.awt.Paint
Returns the base paint.
Returns the base positive item label position.
Returns the base visibility for all series.
Returns the base visibility in the legend for all series.
java.awt.Shape
Returns the base (or default) shape.
java.awt.Stroke
Returns the base (or default) stroke.
java.lang.Boolean
Deprecated.&
Returns the flag that controls whether or not the data bounds reported
by this renderer will exclude non-visible series.
Returns the radius of the circle used for the default entity area
when no area is specified.
Returns the drawing supplier from the plot.
(int&series,
Returns a boolean that indicates whether or not the specified item
should have a chart entity created for it.
java.awt.Paint
int&column)
Returns the paint used to fill data items as they are drawn.
Returns the item label anchor offset.
java.awt.Font
Deprecated.&
java.awt.Font
int&column)
Returns the font for an item label.
java.awt.Paint
Deprecated.&
java.awt.Paint
int&column)
Returns the paint used to draw an item label.
java.awt.Paint
int&column)
Returns the paint used to outline data items as they are drawn.
java.awt.Stroke
int&column)
Returns the stroke used to outline data items.
java.awt.Paint
int&column)
Returns the paint used to color data items as they are drawn.
java.awt.Shape
int&column)
Returns a shape used to represent a data item.
java.awt.Stroke
int&column)
Returns the stroke used to draw data items.
(int&series,
Returns a boolean that indicates whether or not the specified item
should be drawn.
java.awt.Shape
(int&series)
Returns the legend shape defined for the specified series (possibly
java.awt.Font
(int&series)
Returns the legend text font defined for the specified series (possibly
java.awt.Paint
(int&series)
Returns the legend text paint defined for the specified series (possibly
Deprecated.&
int&column)
Returns the item label position for negative values.
Deprecated.&
int&column)
Returns the item label position for positive values.
java.lang.Boolean
(int&series)
Returns the flag that controls whether entities are created for a
java.awt.Paint
(int&series)
Returns the paint used to fill an item drawn by the renderer.
java.awt.Font
(int&series)
Returns the font for all the item labels in a series.
java.awt.Paint
(int&series)
Returns the paint used to draw the item labels for a series.
(int&series)
Returns the item label position for all negative values in a series.
java.awt.Paint
(int&series)
Returns the paint used to outline an item drawn by the renderer.
java.awt.Stroke
(int&series)
Returns the stroke used to outline the items in a series.
java.awt.Paint
(int&series)
Returns the paint used to color an item drawn by the renderer.
(int&series)
Returns the item label position for all positive values in a series.
java.awt.Shape
(int&series)
Returns a shape used to represent the items in a series.
java.awt.Stroke
(int&series)
Returns the stroke used to draw the items in a series.
java.lang.Boolean
Deprecated.&
java.lang.Boolean
(int&series)
Returns the flag that controls whether a series is visible.
java.lang.Boolean
Deprecated.&
java.lang.Boolean
(int&series)
Returns the flag that controls whether a series is visible in the
protected boolean
Returns the flag that controls whether or not the legend shape is
treated as a line when creating legend items.
Returns a hashcode for the renderer.
(java.util.EventListener&listener)
Returns true if the specified object is registered with
the dataset as a listener.
int&column)
Returns true if an item label is visible, and
false otherwise.
(int&series)
Returns true if the item labels for a series are visible,
and false otherwise.
(int&series)
Returns a boolean that indicates whether or not the specified series
should be drawn.
(int&series)
Returns true if the series should be shown in the legend,
and false otherwise.
java.awt.Shape
(int&series)
Performs a lookup for the legend shape.
java.awt.Font
(int&series)
Performs a lookup for the legend text font.
java.awt.Paint
(int&series)
Performs a lookup for the legend text paint.
java.awt.Paint
(int&series)
Returns the paint used to fill an item drawn by the renderer.
java.awt.Paint
(int&series)
Returns the paint used to outline an item drawn by the renderer.
java.awt.Stroke
(int&series)
Returns the stroke used to outline the items in a series.
java.awt.Paint
(int&series)
Returns the paint used to color an item drawn by the renderer.
java.awt.Shape
(int&series)
Returns a shape used to represent the items in a series.
java.awt.Stroke
(int&series)
Returns the stroke used to draw the items in a series.
Notifies all registered listeners that the renderer has been modified.
(&listener)
Deregisters an object so that it no longer receives
notification of changes to the renderer.
(boolean&auto)
Sets the flag that controls whether or not the series fill paint list is
automatically populated when
(boolean&auto)
Sets the flag that controls whether or not the series outline paint list
is automatically populated when
is called.
(boolean&auto)
Sets the flag that controls whether or not the series outline stroke list
is automatically populated when
is called.
(boolean&auto)
Sets the flag that controls whether or not the series paint list is
automatically populated when
is called.
(boolean&auto)
Sets the flag that controls whether or not the series shape list is
automatically populated when
is called.
(boolean&auto)
Sets the flag that controls whether or not the series stroke list is
automatically populated when
is called.
(boolean&create)
Sets the base flag that controls whether entities are created
for a series, and sends a
to all registered listeners.
(boolean&create,
boolean&notify)
Sets the base flag that controls whether entities are created and,
if requested, sends a
to all registered
listeners.
(java.awt.Paint&paint)
Sets the base fill paint and sends a
all registered listeners.
(java.awt.Paint&paint,
boolean&notify)
Sets the base fill paint and, if requested, sends a
to all registered listeners.
(java.awt.Font&font)
Sets the base item label font and sends a
all registered listeners.
(java.awt.Font&font,
boolean&notify)
Sets the base item label font and, if requested, sends a
to all registered listeners.
(java.awt.Paint&paint)
Sets the base item label paint and sends a
to all registered listeners.
(java.awt.Paint&paint,
boolean&notify)
Sets the base item label paint and, if requested, sends a
to all registered listeners..
(boolean&visible)
Sets the base flag that controls whether or not item labels are visible,
and sends a
to all registered listeners.
(java.lang.Boolean&visible)
Sets the base setting for item label visibility and sends a
to all registered listeners.
(java.lang.Boolean&visible,
boolean&notify)
Sets the base visibility for item labels and, if requested, sends a
to all registered listeners.
(java.awt.Shape&shape)
Sets the default legend shape and sends a
to all registered listeners.
(java.awt.Font&font)
Sets the default legend text font and sends a
to all registered listeners.
(java.awt.Paint&paint)
Sets the default legend text paint and sends a
to all registered listeners.
(&position)
Sets the base item label position for negative values and sends a
to all registered listeners.
(&position,
boolean&notify)
Sets the base negative item label position and, if requested, sends a
to all registered listeners.
(java.awt.Paint&paint)
Sets the base outline paint and sends a
all registered listeners.
(java.awt.Paint&paint,
boolean&notify)
Sets the base outline paint and, if requested, sends a
to all registered listeners.
(java.awt.Stroke&stroke)
Sets the base outline stroke and sends a
all registered listeners.
(java.awt.Stroke&stroke,
boolean&notify)
Sets the base outline stroke and, if requested, sends a
to all registered listeners.
(java.awt.Paint&paint)
Sets the base paint and sends a
registered listeners.
(java.awt.Paint&paint,
boolean&notify)
Sets the base paint and, if requested, sends a
to all registered listeners.
(&position)
Sets the base positive item label position.
(&position,
boolean&notify)
Sets the base positive item label position and, if requested, sends a
to all registered listeners.
(boolean&visible)
Sets the base visibility and sends a
to all registered listeners.
(boolean&visible,
boolean&notify)
Sets the base visibility and, if requested, sends
to all registered listeners.
(boolean&visible)
Sets the base visibility in the legend and sends a
to all registered listeners.
(boolean&visible,
boolean&notify)
Sets the base visibility in the legend and, if requested, sends
to all registered listeners.
(java.awt.Shape&shape)
Sets the base shape and sends a
registered listeners.
(java.awt.Shape&shape,
boolean&notify)
Sets the base shape and, if requested, sends a
to all registered listeners.
(java.awt.Stroke&stroke)
Sets the base stroke and sends a
registered listeners.
(java.awt.Stroke&stroke,
boolean&notify)
Sets the base stroke and, if requested, sends a
to all registered listeners.
(java.lang.Boolean&create)
Deprecated.&
(java.lang.Boolean&create,
boolean&notify)
Deprecated.&
(boolean&visibleOnly)
Sets the flag that controls whether or not the data bounds reported
by this renderer will exclude non-visible series and sends a
to all registered listeners.
(int&radius)
Sets the radius of the circle used for the default entity area
when no area is specified.
(java.awt.Paint&paint)
Deprecated.&
(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
(double&offset)
Sets the item label anchor offset.
(java.awt.Font&font)
Deprecated.&
(java.awt.Font&font,
boolean&notify)
Deprecated.&
(java.awt.Paint&paint)
Deprecated.&
(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
(boolean&visible)
Deprecated.&
(java.lang.Boolean&visible)
Deprecated.&
(java.lang.Boolean&visible,
boolean&notify)
Deprecated.&
(int&series,
java.awt.Shape&shape)
Sets the shape used for the legend item for the specified series, and
to all registered listeners.
(int&series,
java.awt.Font&font)
Sets the font used for the legend text for the specified series, and
to all registered listeners.
(int&series,
java.awt.Paint&paint)
Sets the paint used for the legend text for the specified series, and
to all registered listeners.
(&position)
Deprecated.&
(&position,
boolean&notify)
Deprecated.&
(java.awt.Paint&paint)
Deprecated.&
(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
(java.awt.Stroke&stroke)
Deprecated.&
(java.awt.Stroke&stroke,
boolean&notify)
Deprecated.&
(java.awt.Paint&paint)
Deprecated.&
(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
(&position)
Deprecated.&
(&position,
boolean&notify)
Deprecated.&
(int&series,
java.lang.Boolean&create)
Sets the flag that controls whether entities are created for a series,
and sends a
to all registered listeners.
(int&series,
java.lang.Boolean&create,
boolean&notify)
Sets the flag that controls whether entities are created for a series
and, if requested, sends a
to all registered
listeners.
(int&series,
java.awt.Paint&paint)
Sets the paint used for a series fill and sends a
to all registered listeners.
(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the paint used to fill a series and, if requested,
to all registered listeners.
(int&series,
java.awt.Font&font)
Sets the item label font for a series and sends a
to all registered listeners.
(int&series,
java.awt.Font&font,
boolean&notify)
Sets the item label font for a series and, if requested, sends a
to all registered listeners.
(int&series,
java.awt.Paint&paint)
Sets the item label paint for a series and sends a
to all registered listeners.
(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the item label paint for a series and, if requested, sends a
to all registered listeners.
(int&series,
boolean&visible)
Sets a flag that controls the visibility of the item labels for a series,
and sends a
to all registered listeners.
(int&series,
java.lang.Boolean&visible)
Sets the visibility of the item labels for a series and sends a
to all registered listeners.
(int&series,
java.lang.Boolean&visible,
boolean&notify)
Sets the visibility of item labels for a series and, if requested, sends
to all registered listeners.
(int&series,
&position)
Sets the item label position for negative values in a series and sends a
to all registered listeners.
(int&series,
&position,
boolean&notify)
Sets the item label position for negative values in a series and (if
requested) sends a
to all registered
listeners.
(int&series,
java.awt.Paint&paint)
Sets the paint used for a series outline and sends a
to all registered listeners.
(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the paint used to draw the outline for a series and, if requested,
to all registered listeners.
(int&series,
java.awt.Stroke&stroke)
Sets the outline stroke used for a series and sends a
to all registered listeners.
(int&series,
java.awt.Stroke&stroke,
boolean&notify)
Sets the outline stroke for a series and, if requested, sends a
to all registered listeners.
(int&series,
java.awt.Paint&paint)
Sets the paint used for a series and sends a
to all registered listeners.
(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the paint used for a series and, if requested, sends a
to all registered listeners.
(int&series,
&position)
Sets the item label position for all positive values in a series and
to all registered listeners.
(int&series,
&position,
boolean&notify)
Sets the item label position for all positive values in a series and (if
requested) sends a
to all registered
listeners.
(int&series,
java.awt.Shape&shape)
Sets the shape used for a series and sends a
to all registered listeners.
(int&series,
java.awt.Shape&shape,
boolean&notify)
Sets the shape for a series and, if requested, sends a
to all registered listeners.
(int&series,
java.awt.Stroke&stroke)
Sets the stroke used for a series and sends a
to all registered listeners.
(int&series,
java.awt.Stroke&stroke,
boolean&notify)
Sets the stroke for a series and, if requested, sends a
to all registered listeners.
(java.lang.Boolean&visible)
Deprecated.&
(java.lang.Boolean&visible,
boolean&notify)
Deprecated.&
(int&series,
java.lang.Boolean&visible)
Sets the flag that controls whether a series is visible and sends a
to all registered listeners.
(int&series,
java.lang.Boolean&visible,
boolean&notify)
Sets the flag that controls whether a series is visible and, if
requested, sends a
to all registered
listeners.
(java.lang.Boolean&visible)
Deprecated.&
(java.lang.Boolean&visible,
boolean&notify)
Deprecated.&
(int&series,
java.lang.Boolean&visible)
Sets the flag that controls whether a series is visible in the legend
and sends a
to all registered listeners.
(int&series,
java.lang.Boolean&visible,
boolean&notify)
Sets the flag that controls whether a series is visible in the legend
and, if requested, sends a
to all registered
listeners.
(java.awt.Shape&shape)
Deprecated.&
(java.awt.Shape&shape,
boolean&notify)
Deprecated.&
(java.awt.Stroke&stroke)
Deprecated.&
(java.awt.Stroke&stroke,
boolean&notify)
Deprecated.&
protected void
(boolean&treatAsLine)
Sets the flag that controls whether or not the legend shape is
treated as a line when creating legend items.
Methods inherited from class&java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Field Detail
public static final&java.lang.Double
Zero represented as a Double.
DEFAULT_PAINT
public static final&java.awt.Paint
The default paint.
DEFAULT_OUTLINE_PAINT
public static final&java.awt.Paint
The default outline paint.
DEFAULT_STROKE
public static final&java.awt.Stroke
The default stroke.
DEFAULT_OUTLINE_STROKE
public static final&java.awt.Stroke
The default outline stroke.
DEFAULT_SHAPE
public static final&java.awt.Shape
The default shape.
DEFAULT_VALUE_LABEL_FONT
public static final&java.awt.Font
The default value label font.
DEFAULT_VALUE_LABEL_PAINT
public static final&java.awt.Paint
The default value label paint.
Constructor Detail
AbstractRenderer
Default constructor.
Method Detail
getDrawingSupplier
public abstract&&()
Returns the drawing supplier from the plot.
The drawing supplier.
getItemVisible
public&boolean&(int&series,
Returns a boolean that indicates whether or not the specified item
should be drawn.
Parameters:
series - the series index.
item - the item index.
A boolean.
isSeriesVisible
public&boolean&(int&series)
Returns a boolean that indicates whether or not the specified series
should be drawn.
In fact this method should be named
lookupSeriesVisible() to be consistent with the other series
attributes and avoid confusion with the getSeriesVisible() method.
Parameters:
series - the series index.
A boolean.
getSeriesVisible
public&java.lang.Boolean&(int&series)
Returns the flag that controls whether a series is visible.
Parameters:
series - the series index (zero-based).
The flag (possibly null).
setSeriesVisible
public&void&(int&series,
java.lang.Boolean&visible)
Sets the flag that controls whether a series is visible and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
visible - the flag (null permitted).
setSeriesVisible
public&void&(int&series,
java.lang.Boolean&visible,
boolean&notify)
Sets the flag that controls whether a series is visible and, if
requested, sends a
to all registered
listeners.
Parameters:
series - the series index.
visible - the flag (null permitted).
notify - notify listeners?
getBaseSeriesVisible
public&boolean&()
Returns the base visibility for all series.
The base visibility.
setBaseSeriesVisible
public&void&(boolean&visible)
Sets the base visibility and sends a
to all registered listeners.
Parameters:
visible - the flag.
setBaseSeriesVisible
public&void&(boolean&visible,
boolean&notify)
Sets the base visibility and, if requested, sends
to all registered listeners.
Parameters:
visible - the visibility.
notify - notify listeners?
isSeriesVisibleInLegend
public&boolean&(int&series)
Returns true if the series should be shown in the legend,
and false otherwise.
Parameters:
series - the series index.
A boolean.
getSeriesVisibleInLegend
public&java.lang.Boolean&(int&series)
Returns the flag that controls whether a series is visible in the
This method returns only the "per series" settings - to
incorporate the override and base settings as well, you need to use the
Parameters:
series - the series index (zero-based).
The flag (possibly null).
setSeriesVisibleInLegend
public&void&(int&series,
java.lang.Boolean&visible)
Sets the flag that controls whether a series is visible in the legend
and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
visible - the flag (null permitted).
setSeriesVisibleInLegend
public&void&(int&series,
java.lang.Boolean&visible,
boolean&notify)
Sets the flag that controls whether a series is visible in the legend
and, if requested, sends a
to all registered
listeners.
Parameters:
series - the series index.
visible - the flag (null permitted).
notify - notify listeners?
getBaseSeriesVisibleInLegend
public&boolean&()
Returns the base visibility in the legend for all series.
The base visibility.
setBaseSeriesVisibleInLegend
public&void&(boolean&visible)
Sets the base visibility in the legend and sends a
to all registered listeners.
Parameters:
visible - the flag.
setBaseSeriesVisibleInLegend
public&void&(boolean&visible,
boolean&notify)
Sets the base visibility in the legend and, if requested, sends
to all registered listeners.
Parameters:
visible - the visibility.
notify - notify listeners?
getItemPaint
public&java.awt.Paint&(int&row,
int&column)
Returns the paint used to color data items as they are drawn.
The default implementation passes control to the
lookupSeriesPaint() method. You can override this method
if you require different behaviour.
Parameters:
row - the row (or series) index (zero-based).
column - the column (or category) index (zero-based).
The paint (never null).
lookupSeriesPaint
public&java.awt.Paint&(int&series)
Returns the paint used to color an item drawn by the renderer.
Parameters:
series - the series index (zero-based).
The paint (never null).
getSeriesPaint
public&java.awt.Paint&(int&series)
Returns the paint used to color an item drawn by the renderer.
Parameters:
series - the series index (zero-based).
The paint (possibly null).
setSeriesPaint
public&void&(int&series,
java.awt.Paint&paint)
Sets the paint used for a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
paint - the paint (null permitted).
setSeriesPaint
public&void&(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the paint used for a series and, if requested, sends a
to all registered listeners.
Parameters:
series - the series index.
paint - the paint (null permitted).
notify - notify listeners?
clearSeriesPaints
public&void&(boolean&notify)
Clears the series paint settings for this renderer and, if requested,
to all registered listeners.
Parameters:
notify - notify listeners?
getBasePaint
public&java.awt.Paint&()
Returns the base paint.
The base paint (never null).
setBasePaint
public&void&(java.awt.Paint&paint)
Sets the base paint and sends a
registered listeners.
Parameters:
paint - the paint (null not permitted).
setBasePaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Sets the base paint and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint (null not permitted).
notify - notify listeners?
getAutoPopulateSeriesPaint
public&boolean&()
Returns the flag that controls whether or not the series paint list is
automatically populated when
is called.
A boolean.
setAutoPopulateSeriesPaint
public&void&(boolean&auto)
Sets the flag that controls whether or not the series paint list is
automatically populated when
is called.
Parameters:
auto - the new flag value.
getItemFillPaint
public&java.awt.Paint&(int&row,
int&column)
Returns the paint used to fill data items as they are drawn.
default implementation passes control to the
method - you can override this
method if you require different behaviour.
Parameters:
row - the row (or series) index (zero-based).
column - the column (or category) index (zero-based).
The paint (never null).
lookupSeriesFillPaint
public&java.awt.Paint&(int&series)
Returns the paint used to fill an item drawn by the renderer.
Parameters:
series - the series (zero-based index).
The paint (never null).
getSeriesFillPaint
public&java.awt.Paint&(int&series)
Returns the paint used to fill an item drawn by the renderer.
Parameters:
series - the series (zero-based index).
The paint (never null).
setSeriesFillPaint
public&void&(int&series,
java.awt.Paint&paint)
Sets the paint used for a series fill and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
paint - the paint (null permitted).
setSeriesFillPaint
public&void&(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the paint used to fill a series and, if requested,
to all registered listeners.
Parameters:
series - the series index (zero-based).
paint - the paint (null permitted).
notify - notify listeners?
getBaseFillPaint
public&java.awt.Paint&()
Returns the base (or default) fill paint.
The paint (never null).
setBaseFillPaint
public&void&(java.awt.Paint&paint)
Sets the base fill paint and sends a
all registered listeners.
Parameters:
paint - the paint (null not permitted).
setBaseFillPaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Sets the base fill paint and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint (null not permitted).
notify - notify listeners?
getAutoPopulateSeriesFillPaint
public&boolean&()
Returns the flag that controls whether or not the series fill paint list
is automatically populated when
A boolean.
setAutoPopulateSeriesFillPaint
public&void&(boolean&auto)
Sets the flag that controls whether or not the series fill paint list is
automatically populated when
Parameters:
auto - the new flag value.
getItemOutlinePaint
public&java.awt.Paint&(int&row,
int&column)
Returns the paint used to outline data items as they are drawn.
The default implementation passes control to the
You can override this method
if you require different behaviour.
Parameters:
row - the row (or series) index (zero-based).
column - the column (or category) index (zero-based).
The paint (never null).
lookupSeriesOutlinePaint
public&java.awt.Paint&(int&series)
Returns the paint used to outline an item drawn by the renderer.
Parameters:
series - the series (zero-based index).
The paint (never null).
getSeriesOutlinePaint
public&java.awt.Paint&(int&series)
Returns the paint used to outline an item drawn by the renderer.
Parameters:
series - the series (zero-based index).
The paint (possibly null).
setSeriesOutlinePaint
public&void&(int&series,
java.awt.Paint&paint)
Sets the paint used for a series outline and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
paint - the paint (null permitted).
setSeriesOutlinePaint
public&void&(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the paint used to draw the outline for a series and, if requested,
to all registered listeners.
Parameters:
series - the series index (zero-based).
paint - the paint (null permitted).
notify - notify listeners?
getBaseOutlinePaint
public&java.awt.Paint&()
Returns the base (or default) outline paint.
The paint (never null).
setBaseOutlinePaint
public&void&(java.awt.Paint&paint)
Sets the base outline paint and sends a
all registered listeners.
Parameters:
paint - the paint (null not permitted).
setBaseOutlinePaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Sets the base outline paint and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint (null not permitted).
notify - notify listeners?
getAutoPopulateSeriesOutlinePaint
public&boolean&()
Returns the flag that controls whether or not the series outline paint
list is automatically populated when
is called.
A boolean.
setAutoPopulateSeriesOutlinePaint
public&void&(boolean&auto)
Sets the flag that controls whether or not the series outline paint list
is automatically populated when
is called.
Parameters:
auto - the new flag value.
getItemStroke
public&java.awt.Stroke&(int&row,
int&column)
Returns the stroke used to draw data items.
The default implementation passes control to the getSeriesStroke method.
You can override this method if you require different behaviour.
Parameters:
row - the row (or series) index (zero-based).
column - the column (or category) index (zero-based).
The stroke (never null).
lookupSeriesStroke
public&java.awt.Stroke&(int&series)
Returns the stroke used to draw the items in a series.
Parameters:
series - the series (zero-based index).
The stroke (never null).
getSeriesStroke
public&java.awt.Stroke&(int&series)
Returns the stroke used to draw the items in a series.
Parameters:
series - the series (zero-based index).
The stroke (possibly null).
setSeriesStroke
public&void&(int&series,
java.awt.Stroke&stroke)
Sets the stroke used for a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
stroke - the stroke (null permitted).
setSeriesStroke
public&void&(int&series,
java.awt.Stroke&stroke,
boolean&notify)
Sets the stroke for a series and, if requested, sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
stroke - the stroke (null permitted).
notify - notify listeners?
clearSeriesStrokes
public&void&(boolean&notify)
Clears the series stroke settings for this renderer and, if requested,
to all registered listeners.
Parameters:
notify - notify listeners?
getBaseStroke
public&java.awt.Stroke&()
Returns the base (or default) stroke.
The base stroke (never null).
setBaseStroke
public&void&(java.awt.Stroke&stroke)
Sets the base stroke and sends a
registered listeners.
Parameters:
stroke - the stroke (null not permitted).
setBaseStroke
public&void&(java.awt.Stroke&stroke,
boolean&notify)
Sets the base stroke and, if requested, sends a
to all registered listeners.
Parameters:
stroke - the stroke (null not permitted).
notify - notify listeners?
getAutoPopulateSeriesStroke
public&boolean&()
Returns the flag that controls whether or not the series stroke list is
automatically populated when
is called.
A boolean.
setAutoPopulateSeriesStroke
public&void&(boolean&auto)
Sets the flag that controls whether or not the series stroke list is
automatically populated when
is called.
Parameters:
auto - the new flag value.
getItemOutlineStroke
public&java.awt.Stroke&(int&row,
int&column)
Returns the stroke used to outline data items.
The default
implementation passes control to the
method. You can override this
method if you require different behaviour.
Parameters:
row - the row (or series) index (zero-based).
column - the column (or category) index (zero-based).
The stroke (never null).
lookupSeriesOutlineStroke
public&java.awt.Stroke&(int&series)
Returns the stroke used to outline the items in a series.
Parameters:
series - the series (zero-based index).
The stroke (never null).
getSeriesOutlineStroke
public&java.awt.Stroke&(int&series)
Returns the stroke used to outline the items in a series.
Parameters:
series - the series (zero-based index).
The stroke (possibly null).
setSeriesOutlineStroke
public&void&(int&series,
java.awt.Stroke&stroke)
Sets the outline stroke used for a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
stroke - the stroke (null permitted).
setSeriesOutlineStroke
public&void&(int&series,
java.awt.Stroke&stroke,
boolean&notify)
Sets the outline stroke for a series and, if requested, sends a
to all registered listeners.
Parameters:
series - the series index.
stroke - the stroke (null permitted).
notify - notify listeners?
getBaseOutlineStroke
public&java.awt.Stroke&()
Returns the base (or default) outline stroke.
The stroke (never null).
setBaseOutlineStroke
public&void&(java.awt.Stroke&stroke)
Sets the base outline stroke and sends a
all registered listeners.
Parameters:
stroke - the stroke (null not permitted).
setBaseOutlineStroke
public&void&(java.awt.Stroke&stroke,
boolean&notify)
Sets the base outline stroke and, if requested, sends a
to all registered listeners.
Parameters:
stroke - the stroke (null not permitted).
notify - a flag that controls whether or not listeners are
getAutoPopulateSeriesOutlineStroke
public&boolean&()
Returns the flag that controls whether or not the series outline stroke
list is automatically populated when
is called.
A boolean.
setAutoPopulateSeriesOutlineStroke
public&void&(boolean&auto)
Sets the flag that controls whether or not the series outline stroke list
is automatically populated when
is called.
Parameters:
auto - the new flag value.
getItemShape
public&java.awt.Shape&(int&row,
int&column)
Returns a shape used to represent a data item.
The default implementation passes control to the
method. You can override this method if
you require different behaviour.
Parameters:
row - the row (or series) index (zero-based).
column - the column (or category) index (zero-based).
The shape (never null).
lookupSeriesShape
public&java.awt.Shape&(int&series)
Returns a shape used to represent the items in a series.
Parameters:
series - the series (zero-based index).
The shape (never null).
getSeriesShape
public&java.awt.Shape&(int&series)
Returns a shape used to represent the items in a series.
Parameters:
series - the series (zero-based index).
The shape (possibly null).
setSeriesShape
public&void&(int&series,
java.awt.Shape&shape)
Sets the shape used for a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
shape - the shape (null permitted).
setSeriesShape
public&void&(int&series,
java.awt.Shape&shape,
boolean&notify)
Sets the shape for a series and, if requested, sends a
to all registered listeners.
Parameters:
series - the series index (zero based).
shape - the shape (null permitted).
notify - notify listeners?
getBaseShape
public&java.awt.Shape&()
Returns the base (or default) shape.
The shape (never null).
setBaseShape
public&void&(java.awt.Shape&shape)
Sets the base shape and sends a
registered listeners.
Parameters:
shape - the shape (null not permitted).
setBaseShape
public&void&(java.awt.Shape&shape,
boolean&notify)
Sets the base shape and, if requested, sends a
to all registered listeners.
Parameters:
shape - the shape (null not permitted).
notify - notify listeners?
getAutoPopulateSeriesShape
public&boolean&()
Returns the flag that controls whether or not the series shape list is
automatically populated when
is called.
A boolean.
setAutoPopulateSeriesShape
public&void&(boolean&auto)
Sets the flag that controls whether or not the series shape list is
automatically populated when
is called.
Parameters:
auto - the new flag value.
isItemLabelVisible
public&boolean&(int&row,
int&column)
Returns true if an item label is visible, and
false otherwise.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
A boolean.
isSeriesItemLabelsVisible
public&boolean&(int&series)
Returns true if the item labels for a series are visible,
and false otherwise.
Parameters:
series - the series index (zero-based).
A boolean.
setSeriesItemLabelsVisible
public&void&(int&series,
boolean&visible)
Sets a flag that controls the visibility of the item labels for a series,
and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
visible - the flag.
setSeriesItemLabelsVisible
public&void&(int&series,
java.lang.Boolean&visible)
Sets the visibility of the item labels for a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
visible - the flag (null permitted).
setSeriesItemLabelsVisible
public&void&(int&series,
java.lang.Boolean&visible,
boolean&notify)
Sets the visibility of item labels for a series and, if requested, sends
to all registered listeners.
Parameters:
series - the series index (zero-based).
visible - the visible flag.
notify - a flag that controls whether or not listeners are
getBaseItemLabelsVisible
public&java.lang.Boolean&()
Returns the base setting for item label visibility.
result should be interpreted as equivalent to Boolean.FALSE.
A flag (possibly null).
setBaseItemLabelsVisible
public&void&(boolean&visible)
Sets the base flag that controls whether or not item labels are visible,
and sends a
to all registered listeners.
Parameters:
visible - the flag.
setBaseItemLabelsVisible
public&void&(java.lang.Boolean&visible)
Sets the base setting for item label visibility and sends a
to all registered listeners.
Parameters:
visible - the flag (null is permitted, and viewed
as equivalent to Boolean.FALSE).
setBaseItemLabelsVisible
public&void&(java.lang.Boolean&visible,
boolean&notify)
Sets the base visibility for item labels and, if requested, sends a
to all registered listeners.
Parameters:
visible - the flag (null is permitted, and viewed
as equivalent to Boolean.FALSE).
notify - a flag that controls whether or not listeners are
getItemLabelFont
public&java.awt.Font&(int&row,
int&column)
Returns the font for an item label.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
The font (never null).
getSeriesItemLabelFont
public&java.awt.Font&(int&series)
Returns the font for all the item labels in a series.
Parameters:
series - the series index (zero-based).
The font (possibly null).
setSeriesItemLabelFont
public&void&(int&series,
java.awt.Font&font)
Sets the item label font for a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
font - the font (null permitted).
setSeriesItemLabelFont
public&void&(int&series,
java.awt.Font&font,
boolean&notify)
Sets the item label font for a series and, if requested, sends a
to all registered listeners.
Parameters:
series - the series index (zero based).
font - the font (null permitted).
notify - a flag that controls whether or not listeners are
getBaseItemLabelFont
public&java.awt.Font&()
Returns the base item label font (this is used when no other font
setting is available).
The font (never null).
setBaseItemLabelFont
public&void&(java.awt.Font&font)
Sets the base item label font and sends a
all registered listeners.
Parameters:
font - the font (null not permitted).
setBaseItemLabelFont
public&void&(java.awt.Font&font,
boolean&notify)
Sets the base item label font and, if requested, sends a
to all registered listeners.
Parameters:
font - the font (null not permitted).
notify - a flag that controls whether or not listeners are
getItemLabelPaint
public&java.awt.Paint&(int&row,
int&column)
Returns the paint used to draw an item label.
Parameters:
row - the row index (zero based).
column - the column index (zero based).
The paint (never null).
getSeriesItemLabelPaint
public&java.awt.Paint&(int&series)
Returns the paint used to draw the item labels for a series.
Parameters:
series - the series index (zero based).
The paint (possibly null).
setSeriesItemLabelPaint
public&void&(int&series,
java.awt.Paint&paint)
Sets the item label paint for a series and sends a
to all registered listeners.
Parameters:
series - the series (zero based index).
paint - the paint (null permitted).
setSeriesItemLabelPaint
public&void&(int&series,
java.awt.Paint&paint,
boolean&notify)
Sets the item label paint for a series and, if requested, sends a
to all registered listeners.
Parameters:
series - the series index (zero based).
paint - the paint (null permitted).
notify - a flag that controls whether or not listeners are
getBaseItemLabelPaint
public&java.awt.Paint&()
Returns the base item label paint.
The paint (never null).
setBaseItemLabelPaint
public&void&(java.awt.Paint&paint)
Sets the base item label paint and sends a
to all registered listeners.
Parameters:
paint - the paint (null not permitted).
setBaseItemLabelPaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Sets the base item label paint and, if requested, sends a
to all registered listeners..
Parameters:
paint - the paint (null not permitted).
notify - a flag that controls whether or not listeners are
getPositiveItemLabelPosition
public&&(int&row,
int&column)
Returns the item label position for positive values.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
The item label position (never null).
getSeriesPositiveItemLabelPosition
public&&(int&series)
Returns the item label position for all positive values in a series.
Parameters:
series - the series index (zero-based).
The item label position (never null).
setSeriesPositiveItemLabelPosition
public&void&(int&series,
&position)
Sets the item label position for all positive values in a series and
to all registered listeners.
Parameters:
series - the series index (zero-based).
position - the position (null permitted).
setSeriesPositiveItemLabelPosition
public&void&(int&series,
&position,
boolean&notify)
Sets the item label position for all positive values in a series and (if
requested) sends a
to all registered
listeners.
Parameters:
series - the series index (zero-based).
position - the position (null permitted).
notify - notify registered listeners?
getBasePositiveItemLabelPosition
public&&()
Returns the base positive item label position.
The position (never null).
setBasePositiveItemLabelPosition
public&void&(&position)
Sets the base positive item label position.
Parameters:
position - the position (null not permitted).
setBasePositiveItemLabelPosition
public&void&(&position,
boolean&notify)
Sets the base positive item label position and, if requested, sends a
to all registered listeners.
Parameters:
position - the position (null not permitted).
notify - notify registered listeners?
getNegativeItemLabelPosition
public&&(int&row,
int&column)
Returns the item label position for negative values.
This method can be
overridden to provide customisation of the item label position for
individual data items.
Parameters:
row - the row index (zero-based).
column - the column (zero-based).
The item label position (never null).
getSeriesNegativeItemLabelPosition
public&&(int&series)
Returns the item label position for all negative values in a series.
Parameters:
series - the series index (zero-based).
The item label position (never null).
setSeriesNegativeItemLabelPosition
public&void&(int&series,
&position)
Sets the item label position for negative values in a series and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
position - the position (null permitted).
setSeriesNegativeItemLabelPosition
public&void&(int&series,
&position,
boolean&notify)
Sets the item label position for negative values in a series and (if
requested) sends a
to all registered
listeners.
Parameters:
series - the series index (zero-based).
position - the position (null permitted).
notify - notify registered listeners?
getBaseNegativeItemLabelPosition
public&&()
Returns the base item label position for negative values.
The position (never null).
setBaseNegativeItemLabelPosition
public&void&(&position)
Sets the base item label position for negative values and sends a
to all registered listeners.
Parameters:
position - the position (null not permitted).
setBaseNegativeItemLabelPosition
public&void&(&position,
boolean&notify)
Sets the base negative item label position and, if requested, sends a
to all registered listeners.
Parameters:
position - the position (null not permitted).
notify - notify registered listeners?
getItemLabelAnchorOffset
public&double&()
Returns the item label anchor offset.
The offset.
setItemLabelAnchorOffset
public&void&(double&offset)
Sets the item label anchor offset.
Parameters:
offset - the offset.
getItemCreateEntity
public&boolean&(int&series,
Returns a boolean that indicates whether or not the specified item
should have a chart entity created for it.
Parameters:
series - the series index.
item - the item index.
A boolean.
getSeriesCreateEntities
public&java.lang.Boolean&(int&series)
Returns the flag that controls whether entities are created for a
Parameters:
series - the series index (zero-based).
The flag (possibly null).
setSeriesCreateEntities
public&void&(int&series,
java.lang.Boolean&create)
Sets the flag that controls whether entities are created for a series,
and sends a
to all registered listeners.
Parameters:
series - the series index (zero-based).
create - the flag (null permitted).
setSeriesCreateEntities
public&void&(int&series,
java.lang.Boolean&create,
boolean&notify)
Sets the flag that controls whether entities are created for a series
and, if requested, sends a
to all registered
listeners.
Parameters:
series - the series index.
create - the flag (null permitted).
notify - notify listeners?
getBaseCreateEntities
public&boolean&()
Returns the base visibility for all series.
The base visibility.
setBaseCreateEntities
public&void&(boolean&create)
Sets the base flag that controls whether entities are created
for a series, and sends a
to all registered listeners.
Parameters:
create - the flag.
setBaseCreateEntities
public&void&(boolean&create,
boolean&notify)
Sets the base flag that controls whether entities are created and,
if requested, sends a
to all registered
listeners.
Parameters:
create - the visibility.
notify - notify listeners?
getDefaultEntityRadius
public&int&()
Returns the radius of the circle used for the default entity area
when no area is specified.
setDefaultEntityRadius
public&void&(int&radius)
Sets the radius of the circle used for the default entity area
when no area is specified.
Parameters:
radius - the radius.
lookupLegendShape
public&java.awt.Shape&(int&series)
Performs a lookup for the legend shape.
Parameters:
series - the series index.
The shape (possibly null).
getLegendShape
public&java.awt.Shape&(int&series)
Returns the legend shape defined for the specified series (possibly
Parameters:
series - the series index.
The shape (possibly null).
setLegendShape
public&void&(int&series,
java.awt.Shape&shape)
Sets the shape used for the legend item for the specified series, and
to all registered listeners.
Parameters:
series - the series index.
shape - the shape (null permitted).
getBaseLegendShape
public&java.awt.Shape&()
Returns the default legend shape, which may be null.
The default legend shape.
setBaseLegendShape
public&void&(java.awt.Shape&shape)
Sets the default legend shape and sends a
to all registered listeners.
Parameters:
shape - the shape (null permitted).
getTreatLegendShapeAsLine
protected&boolean&()
Returns the flag that controls whether or not the legend shape is
treated as a line when creating legend items.
A boolean.
setTreatLegendShapeAsLine
protected&void&(boolean&treatAsLine)
Sets the flag that controls whether or not the legend shape is
treated as a line when creating legend items.
Parameters:
treatAsLine - the new flag value.
lookupLegendTextFont
public&java.awt.Font&(int&series)
Performs a lookup for the legend text font.
Parameters:
series - the series index.
The font (possibly null).
getLegendTextFont
public&java.awt.Font&(int&series)
Returns the legend text font defined for the specified series (possibly
Parameters:
series - the series index.
The font (possibly null).
setLegendTextFont
public&void&(int&series,
java.awt.Font&font)
Sets the font used for the legend text for the specified series, and
to all registered listeners.
Parameters:
series - the series index.
font - the font (null permitted).
getBaseLegendTextFont
public&java.awt.Font&()
Returns the default legend text font, which may be null.
The default legend text font.
setBaseLegendTextFont
public&void&(java.awt.Font&font)
Sets the default legend text font and sends a
to all registered listeners.
Parameters:
font - the font (null permitted).
lookupLegendTextPaint
public&java.awt.Paint&(int&series)
Performs a lookup for the legend text paint.
Parameters:
series - the series index.
The paint (possibly null).
getLegendTextPaint
public&java.awt.Paint&(int&series)
Returns the legend text paint defined for the specified series (possibly
Parameters:
series - the series index.
The paint (possibly null).
setLegendTextPaint
public&void&(int&series,
java.awt.Paint&paint)
Sets the paint used for the legend text for the specified series, and
to all registered listeners.
Parameters:
series - the series index.
paint - the paint (null permitted).
getBaseLegendTextPaint
public&java.awt.Paint&()
Returns the default legend text paint, which may be null.
The default legend text paint.
setBaseLegendTextPaint
public&void&(java.awt.Paint&paint)
Sets the default legend text paint and sends a
to all registered listeners.
Parameters:
paint - the paint (null permitted).
getDataBoundsIncludesVisibleSeriesOnly
public&boolean&()
Returns the flag that controls whether or not the data bounds reported
by this renderer will exclude non-visible series.
A boolean.
setDataBoundsIncludesVisibleSeriesOnly
public&void&(boolean&visibleOnly)
Sets the flag that controls whether or not the data bounds reported
by this renderer will exclude non-visible series and sends a
to all registered listeners.
Parameters:
visibleOnly - include only visible series.
calculateLabelAnchorPoint
protected&java.awt.geom.Point2D&(&anchor,
&orientation)
Calculates the item label anchor point.
Parameters:
anchor - the anchor.
x - the x coordinate.
y - the y coordinate.
orientation - the plot orientation.
The anchor point (never null).
addChangeListener
public&void&(&listener)
Registers an object to receive notification of changes to the renderer.
Parameters:
listener - the listener (null not permitted).
removeChangeListener
public&void&(&listener)
Deregisters an object so that it no longer receives
notification of changes to the renderer.
Parameters:
listener - the object (null not permitted).
hasListener
public&boolean&(java.util.EventListener&listener)
Returns true if the specified object is registered with
the dataset as a listener.
Most applications won't need to call this
method, it exists mainly for use by unit testing code.
Parameters:
listener - the listener.
A boolean.
fireChangeEvent
protected&void&()
to all registered listeners.
notifyListeners
public&void&(&event)
Notifies all registered listeners that the renderer has been modified.
Parameters:
event - information about the change event.
public&boolean&(java.lang.Object&obj)
Tests this renderer for equality with another object.
Overrides:
equals&in class&java.lang.Object
Parameters:
obj - the object (null permitted).
true or false.
public&int&()
Returns a hashcode for the renderer.
Overrides:
hashCode&in class&java.lang.Object
The hashcode.
protected&java.lang.Object&()
throws java.lang.CloneNotSupportedException
Returns an independent copy of the renderer.
Overrides:
clone&in class&java.lang.Object
java.lang.CloneNotSupportedException - if some component of the renderer
does not support cloning.
getSeriesVisible
public&java.lang.Boolean&()
Deprecated.&
Returns the flag that controls the visibility of ALL series.
overrides the per series and default settings - you must set it to
null if you want the other settings to apply.
The flag (possibly null).
setSeriesVisible
public&void&(java.lang.Boolean&visible)
Deprecated.&
Sets the flag that controls the visibility of ALL series and sends a
to all registered listeners.
overrides the per series and default settings - you must set it to
null if you want the other settings to apply.
Parameters:
visible - the flag (null permitted).
setSeriesVisible
public&void&(java.lang.Boolean&visible,
boolean&notify)
Deprecated.&
Sets the flag that controls the visibility of ALL series and sends a
to all registered listeners.
overrides the per series and default settings - you must set it to
null if you want the other settings to apply.
Parameters:
visible - the flag (null permitted).
notify - notify listeners?
getSeriesVisibleInLegend
public&java.lang.Boolean&()
Deprecated.&
Returns the flag that controls the visibility of ALL series in the
This flag overrides the per series and default settings - you
must set it to null if you want the other settings to
The flag (possibly null).
setSeriesVisibleInLegend
public&void&(java.lang.Boolean&visible)
Deprecated.&
Sets the flag that controls the visibility of ALL series in the legend
and sends a
to all registered listeners.
This flag overrides the per series and default settings - you must set
it to null if you want the other settings to apply.
Parameters:
visible - the flag (null permitted).
setSeriesVisibleInLegend
public&void&(java.lang.Boolean&visible,
boolean&notify)
Deprecated.&
Sets the flag that controls the visibility of ALL series in the legend
and sends a
to all registered listeners.
This flag overrides the per series and default settings - you must set
it to null if you want the other settings to apply.
Parameters:
visible - the flag (null permitted).
notify - notify listeners?
public&void&(java.awt.Paint&paint)
Deprecated.&
Sets the paint to be used for ALL series, and sends a
to all registered listeners.
If this is
null, the renderer will use the paint for the series.
Parameters:
paint - the paint (null permitted).
public&void&(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
Sets the paint to be used for all series and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint (null permitted).
notify - notify listeners?
setFillPaint
public&void&(java.awt.Paint&paint)
Deprecated.&
Sets the fill paint for ALL series (optional).
Parameters:
paint - the paint (null permitted).
setFillPaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
Sets the fill paint for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint (null permitted).
notify - notify listeners?
setOutlinePaint
public&void&(java.awt.Paint&paint)
Deprecated.&
Sets the outline paint for ALL series (optional) and sends a
to all registered listeners.
Parameters:
paint - the paint (null permitted).
setOutlinePaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
Sets the outline paint for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint (null permitted).
notify - notify listeners?
public&void&(java.awt.Stroke&stroke)
Deprecated.&
Sets the stroke for ALL series and sends a
to all registered listeners.
Parameters:
stroke - the stroke (null permitted).
public&void&(java.awt.Stroke&stroke,
boolean&notify)
Deprecated.&
Sets the stroke for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
stroke - the stroke (null permitted).
notify - notify listeners?
setOutlineStroke
public&void&(java.awt.Stroke&stroke)
Deprecated.&
Sets the outline stroke for ALL series and sends a
to all registered listeners.
Parameters:
stroke - the stroke (null permitted).
setOutlineStroke
public&void&(java.awt.Stroke&stroke,
boolean&notify)
Deprecated.&
Sets the outline stroke for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
stroke - the stroke (null permitted).
notify - notify listeners?
public&void&(java.awt.Shape&shape)
Deprecated.&
Sets the shape for ALL series (optional) and sends a
to all registered listeners.
Parameters:
shape - the shape (null permitted).
public&void&(java.awt.Shape&shape,
boolean&notify)
Deprecated.&
Sets the shape for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
shape - the shape (null permitted).
notify - notify listeners?
setItemLabelsVisible
public&void&(boolean&visible)
Deprecated.&
Sets the visibility of the item labels for ALL series.
Parameters:
visible - the flag.
setItemLabelsVisible
public&void&(java.lang.Boolean&visible)
Deprecated.&
Sets the visibility of the item labels for ALL series (optional).
Parameters:
visible - the flag (null permitted).
setItemLabelsVisible
public&void&(java.lang.Boolean&visible,
boolean&notify)
Deprecated.&
Sets the visibility of item labels for ALL series and, if requested,
to all registered listeners.
Parameters:
visible - a flag that controls whether or not the item labels are
visible (null permitted).
notify - a flag that controls whether or not listeners are
getItemLabelFont
public&java.awt.Font&()
Deprecated.&
Returns the font used for all item labels.
This may be
null, in which case the per series font settings will apply.
The font (possibly null).
setItemLabelFont
public&void&(java.awt.Font&font)
Deprecated.&
Sets the item label font for ALL series and sends a
to all registered listeners.
You can set
this to null if you prefer to set the font on a per series
Parameters:
font - the font (null permitted).
setItemLabelFont
public&void&(java.awt.Font&font,
boolean&notify)
Deprecated.&
Sets the item label font for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
font - the font (null permitted).
notify - a flag that controls whether or not listeners are
getItemLabelPaint
public&java.awt.Paint&()
Deprecated.&
Returns the paint used for all item labels.
This may be
null, in which case the per series paint settings will
The paint (possibly null).
setItemLabelPaint
public&void&(java.awt.Paint&paint)
Deprecated.&
Sets the item label paint for ALL series and sends a
to all registered listeners.
Parameters:
paint - the paint (null permitted).
setItemLabelPaint
public&void&(java.awt.Paint&paint,
boolean&notify)
Deprecated.&
Sets the item label paint for ALL series and, if requested, sends a
to all registered listeners.
Parameters:
paint - the paint.
notify - a flag that controls whether or not listeners are
getPositiveItemLabelPosition
public&&()
Deprecated.&
Returns the item label position for positive values in ALL series.
The item label position (possibly null).
setPositiveItemLabelPosition
public&void&(&position)
Depreca

我要回帖

更多关于 no language defined 的文章

 

随机推荐