由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - the best way to transfer data?
相关主题
[转载] Mutually exclusive attributes有一系列的button
Java API for XML?请教: class private data member
What xml editor plugin for eclipse?其实有很多概念都是误导性的
请教,business analyst 适合学什么语言?这几年Java跟其他语言的差距拉大了。
Re: salesforce用的什么数据库产品呀?Dependency Injection
一个java servelet 的问题一道初级JAVA题求帮助
Any testNG gui exist?JMIT v0.0.001 Release
实在搞不定了,问问大虾,java里面得itemListener画图 LIBRARY
相关话题的讨论汇总
话题: plot话题: data话题: value话题: best话题: way
进入Java版参与讨论
1 (共1页)
q**c
发帖数: 179
1
basically have two parts.
One is a window, having buttons etc. and also loading data,
which is extended from frame.
The other is a 'Plot', to plot data depending on the types,
which is extended from canvas.
The thing is I want to make this Plot more independent, so
what's the best way to communicate between the window and
the Plot?
have checked some examples by googling. however most are
very small programs with Plot itself dealing with I/O data.
KG
发帖数: 515
2
Independent of what? If you r looking for help, you better make your question
more clear to others.

【在 q**c 的大作中提到】
: basically have two parts.
: One is a window, having buttons etc. and also loading data,
: which is extended from frame.
: The other is a 'Plot', to plot data depending on the types,
: which is extended from canvas.
: The thing is I want to make this Plot more independent, so
: what's the best way to communicate between the window and
: the Plot?
: have checked some examples by googling. however most are
: very small programs with Plot itself dealing with I/O data.

g*s
发帖数: 2277
3
encapsulation吧. 把data作为Plot的Attribute,在Plot里定义setData去设置data,
override paint or repaint(Canvas的method吧?忘了)去画点啊线啊.

【在 KG 的大作中提到】
: Independent of what? If you r looking for help, you better make your question
: more clear to others.

w*r
发帖数: 2421
4
I think you question is that you want to make a 'generic' plot package
which can take varioius forms of data.
I am working on my project by letting the chart/plot package accept the
XML form of data. Basically most of my plot is 2D plot, then I just define
the data as






.......

by letting this generic structure , you can write your parser to parse it
into your chart's data object, then you can draw
you are free to exten

【在 q**c 的大作中提到】
: basically have two parts.
: One is a window, having buttons etc. and also loading data,
: which is extended from frame.
: The other is a 'Plot', to plot data depending on the types,
: which is extended from canvas.
: The thing is I want to make this Plot more independent, so
: what's the best way to communicate between the window and
: the Plot?
: have checked some examples by googling. however most are
: very small programs with Plot itself dealing with I/O data.

1 (共1页)
进入Java版参与讨论
相关主题
画图 LIBRARYRe: salesforce用的什么数据库产品呀?
javafx2.2+已经可以直接打包成native了一个java servelet 的问题
这个应该是java本身的错误吧?Any testNG gui exist?
问JavaFX的一个问题实在搞不定了,问问大虾,java里面得itemListener
[转载] Mutually exclusive attributes有一系列的button
Java API for XML?请教: class private data member
What xml editor plugin for eclipse?其实有很多概念都是误导性的
请教,business analyst 适合学什么语言?这几年Java跟其他语言的差距拉大了。
相关话题的讨论汇总
话题: plot话题: data话题: value话题: best话题: way