Redian新闻
>
Show off一下一天画出来的,欢迎拍砖
avatar
Show off一下一天画出来的,欢迎拍砖# Java - 爪哇娇娃
D*e
1
我剪下来几个枝子在水里,都生根生得很好。但是有一个问题,就是它总是只能从最新
的枝里长出新叶,可是我想能把一个枝叶发成两个,如果我把最新的枝剪了它会死吗?
还是会迫使它从其他的地方发新叶?
avatar
g*y
2
Java画这个图可能半个小时就搞定了,我花了一天,用的是:
HTML + CSS + Javascript
代码异常地ugly, 所有直线都是用border property画出来的,里面嵌套了无穷多的table。
有什么好建议吗?Decision tree是动态生成的。
avatar
g*e
3
最好等新枝条移到土里完全活了以后再折腾。如果新枝条有好几个芽点了,可以打顶让
下部的芽发出枝条。
avatar
g*g
4
Any time you have a complicated graph to draw, you can consider use pure
java to draw on server side and request/show as a resource image dynamically
. Speed is not gonna match a client side draw though.
avatar
D*e
5
就是这种
avatar
g*y
6
We need some editing capability, so generate a graph is not an option for us.

dynamically

【在 g*****g 的大作中提到】
: Any time you have a complicated graph to draw, you can consider use pure
: java to draw on server side and request/show as a resource image dynamically
: . Speed is not gonna match a client side draw though.

avatar
k*u
7
GWT or Flex, both are client side and give you editability, and much clean
to program than JS.

us.

【在 g**********y 的大作中提到】
: We need some editing capability, so generate a graph is not an option for us.
:
: dynamically

avatar
g*y
8
That's good alternative. But very strange, even Google itself rarely use GWT.

【在 k****u 的大作中提到】
: GWT or Flex, both are client side and give you editability, and much clean
: to program than JS.
:
: us.

avatar
o*1
9
不是吧。google wave不就是用gwt吗
google 老的 app 写的时候还没有gwt呢。

GWT.
clean

【在 g**********y 的大作中提到】
: That's good alternative. But very strange, even Google itself rarely use GWT.
avatar
s*8
10
太牛了
avatar
k*u
11
没错,新的ad words也是用gwt。

【在 o**1 的大作中提到】
: 不是吧。google wave不就是用gwt吗
: google 老的 app 写的时候还没有gwt呢。
:
: GWT.
: clean

avatar
g*y
12
en, 那我得学学GWT去,client端的app还是很有前景的。
avatar
m*t
13

table。
No need to use tables. You could use absolute positions in CSS to achieve
the same effects.
Also there are javascript libraries for drawing charts.

【在 g**********y 的大作中提到】
: Java画这个图可能半个小时就搞定了,我花了一天,用的是:
: HTML + CSS + Javascript
: 代码异常地ugly, 所有直线都是用border property画出来的,里面嵌套了无穷多的table。
: 有什么好建议吗?Decision tree是动态生成的。

avatar
g*y
14
Absolute position won't work here because it is part of a dynamic page. It
is impossible to calculate how much draw space I have.
I first tried to use div + css border. To be frank, floated div is nightmare
, even with a CSS missing manual by hand, it is too tall a task for me.

【在 m******t 的大作中提到】
:
: table。
: No need to use tables. You could use absolute positions in CSS to achieve
: the same effects.
: Also there are javascript libraries for drawing charts.

avatar
s*n
15
This is cool.
I guess you can use just one table with 4x48 cells

table。

【在 g**********y 的大作中提到】
: Java画这个图可能半个小时就搞定了,我花了一天,用的是:
: HTML + CSS + Javascript
: 代码异常地ugly, 所有直线都是用border property画出来的,里面嵌套了无穷多的table。
: 有什么好建议吗?Decision tree是动态生成的。

avatar
g*y
16
It is not a fixed table, I need to write a recursive function to generate
tree depending on input XML.

【在 s******n 的大作中提到】
: This is cool.
: I guess you can use just one table with 4x48 cells
:
: table。

avatar
c*t
17
use blend,you can draw much better in a few minutes

table。

【在 g**********y 的大作中提到】
: Java画这个图可能半个小时就搞定了,我花了一天,用的是:
: HTML + CSS + Javascript
: 代码异常地ugly, 所有直线都是用border property画出来的,里面嵌套了无穷多的table。
: 有什么好建议吗?Decision tree是动态生成的。

avatar
c*t
18
blend is the way to go

us.

【在 g**********y 的大作中提到】
: We need some editing capability, so generate a graph is not an option for us.
:
: dynamically

avatar
g*y
19
What is blend? can you give a link?
Do you mean Microsoft Expression Blend 3? I seriously doubt it, hook it up with any XML defined tree from database, allow user to edit it in web and save it back to database? I can't imagine any tool can easily handle it without much coding.
My experience with any software/package is:
More powerful software
=> Less Code & Beautiful result for task suppose to do
=> Much much harder to customize for your need
when it push to some degree, it is simply mission imp

【在 c**t 的大作中提到】
: blend is the way to go
:
: us.

avatar
m*t
20

How is it impossible? You can find out the size of current client area and
go from there.
nightmare
No, don't use float divs. Use one div as the container, then absolutely
position little div containers within. You could use javascript to
dynamically set the dimensions and positions.
Trust me, I did something like this before.

【在 g**********y 的大作中提到】
: Absolute position won't work here because it is part of a dynamic page. It
: is impossible to calculate how much draw space I have.
: I first tried to use div + css border. To be frank, floated div is nightmare
: , even with a CSS missing manual by hand, it is too tall a task for me.

avatar
g*y
21

整个page由几块JSP构成,每块JSP都有可能有javascript动态生成的东西。我确实可以
从HTML DOM算确切位置,但是很麻烦。
Absolute position我记得是相对整个page的吧,那你每个div都挨个儿算(top, left)
和size?

【在 m******t 的大作中提到】
:
: How is it impossible? You can find out the size of current client area and
: go from there.
: nightmare
: No, don't use float divs. Use one div as the container, then absolutely
: position little div containers within. You could use javascript to
: dynamically set the dimensions and positions.
: Trust me, I did something like this before.

avatar
m*t
22

It's relative to the first containing block with a non-static position
specification. IOW, you could conceptually do:





...

And the blocks above would be positioned within the container's
own coordinate system.

【在 g**********y 的大作中提到】
:
: 整个page由几块JSP构成,每块JSP都有可能有javascript动态生成的东西。我确实可以
: 从HTML DOM算确切位置,但是很麻烦。
: Absolute position我记得是相对整个page的吧,那你每个div都挨个儿算(top, left)
: 和size?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。