echo-list Mailing List for Echo (Page 70)
Brought to you by:
tliebeck
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
(1) |
Mar
(33) |
Apr
(59) |
May
(69) |
Jun
(65) |
Jul
(67) |
Aug
(100) |
Sep
(80) |
Oct
(82) |
Nov
(90) |
Dec
(78) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(86) |
Feb
(69) |
Mar
(127) |
Apr
(72) |
May
(110) |
Jun
(117) |
Jul
(71) |
Aug
(75) |
Sep
(90) |
Oct
(47) |
Nov
(23) |
Dec
(24) |
| 2004 |
Jan
(3) |
Feb
(42) |
Mar
(25) |
Apr
(11) |
May
(3) |
Jun
(2) |
Jul
(9) |
Aug
(5) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2005 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Phillip B. <phi...@cl...> - 2002-03-11 06:52:08
|
Hi Brian, This is already there. Grid.Cell extends Panel which has the methods you are looking at. Try the following with an instance of Grid.Cell... cell.setHorizontalAlignment(EchoConstants.RIGHT); regards, Phillip B. |
|
From: Phillip B. <phi...@cl...> - 2002-03-10 22:26:02
|
Hi Tod, I can understand the desire to keep Echo a self contained library. My reservation with a separate Echo TableModel is I cannot see the benefit of reinventing this particular wheel. Maybe you could clarify the reasons for wanting to do this? If you go ahead with creating a separate model api then I'd request the following be part of the design; - it should be an interface so other implementations can be plugged in (probably stating the obvious). - it would seem likely that most organisations have adaptor classes that map their data to Swing TableModels. Therefore to avoid the need to create a whole new set of adaptors for Echo, it would make sense to provide a class that adapts a Swing TableModel to an Echo TableModel. Regarding the column-row parameter ordering I'm not going to object if you change it. The thing to keep in mind (which probably applies to the whole of the Echo project), is whenever we create a similar class or method to the JDK which deviates from the JDK api we will introduce an obstacle to learning and using the framework. By keeping similar apis consistent developers get to transfer their knowledge which makes adoption of Echo that much easier. cheers Phillip B. |
|
From: Tod L. <tli...@ne...> - 2002-03-10 10:25:28
|
Phillip, Thanks so much for your contribution, its great to see talented programmers getting interested in the project. I've had a chance to play around with the Table component and it looks quite nicely done. I'd like to merge it into the main tree but there are a couple of minor modifications I'd like to do first. First, I don't want Echo to have any dependency on Swing, so I want to create an Echo-specific version of Swing's TableModel and supporting event/listener objects. Second, all other Echo methods currently take coordinates in column- then-row order. If I recall correctly, tables are normally done row- then-column, as is the case of JTable and your implementation. I think it would be better to keep everything consistent across Echo and use the column-then-row ordering. Let me know what you think. Thanks again, --Tod Liebeck NextApp, Inc. PS. I'm out of town until Wednesday morning, so I won't be able to get to much done until then. I'll take a look at the JFreeChart component when I get back. > This is a multi-part message in MIME format. > > Hi all, > > Just started looking at Echo and one of the things I thought was missing > was a Table component. So I've built one which you can find attached in > table.zip. > > It's basically a subclass of Grid which renders and listens to a > javax.swing.table.TableModel. Similar to JTable you can create > pluggable TableCellRenderers and it has a TableColumnModel a bit like > the one in JTable. > > There is a TableServlet class which demos the functionality. > > regards, > > Phillip B. > > |
|
From: Phillip B. <phi...@cl...> - 2002-03-10 03:40:54
|
Attached is a zip file that contains the required code to use Echo with JFreeChart. JFreeChart is a LGPL charting library that is available from http://www.object-refinery.com/jfreechart JFreeChart is integrated with Echo via a single class called ChartImageReference. This is basically an extended AwtImageReference that returns an image of the chart. ChartImageReference has a setParent() method so that you can identify it's containing Component. When a parent is set, the ChartImageReference will listen for changes in the JFreeChart and will call the Component.update() method of the parent to force the UI to be updated. This should allow any changes in the chart to be automatically reflected in the UI. Because the chart is an ImageReference you can use it where ever you can use an image. The zip file contains a demonstration servlet which places the chart in a Button. This allows you to click on the chart and cycle through each of the demos chart types. In order to run the demo you will need to download a copy of JFreeChart from http://www.object-refinery.com/jfreechart . Extract the two jar files jcommon-0.5.6.jar and jfreechart-0.7.4.jar from the distribution's lib directory and make them available in your classpath. Add the following to your web.xml file and you should be able to run the demo servlet. <servlet> <servlet-name>ChartServlet</servlet-name> <servlet-class>ChartServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>ChartServlet</servlet-name> <url-pattern>/chartdemo</url-pattern> </servlet-mapping> Let me know what you think and if you find any problems. Tod, do you have any reservations to adding this into the next release? regards, Phillip B. |
|
From: Phillip B. <phi...@cl...> - 2002-03-10 01:22:07
|
I'm trying to use the new Font underline style with the Button component
and it is not working. The Button is displaying, there just isn't any
underline.
e.g.
public static final Font BUTTON_FONT
= new Font(Font.TIMES_ROMAN, Font.UNDERLINE, 12);
button = new Button("Test Button");
button.setFont(BUTTON_FONT);
mainPane.add(button);
The underline is working fine with Labels though.
Any thoughts?
regards,
Phillip B.
|
|
From: Tod L. <tli...@ne...> - 2002-03-08 08:58:43
|
Echo 0.7.2 is finally out. Changes in this version: - Added HttpPane which can be used to display Non-Echo Web content within an Echo application. - Added Underline feature to Font. - The usual mix of fixes and documentation enhancements. |
|
From: Phillip B. <phi...@cl...> - 2002-03-07 09:49:39
|
Hi all, Just started looking at Echo and one of the things I thought was missing was a Table component. So I've built one which you can find attached in table.zip. It's basically a subclass of Grid which renders and listens to a javax.swing.table.TableModel. Similar to JTable you can create pluggable TableCellRenderers and it has a TableColumnModel a bit like the one in JTable. There is a TableServlet class which demos the functionality. regards, Phillip B. |
|
From: Tod L. <tli...@ne...> - 2002-03-04 10:15:13
|
Echo 0.7.1 has been released! Changes: - Added dynamic image rendering capability: In addition to using images retrieved from a Web server, java.awt.Image objects may now be used within Echo applications. - Tutorial dynamic image example added. - Ancillary services functional. - Added PNG Encoder to translate java.awt.Image objects into PNG streams. - Fixed Ant build issue on Windows machines due to case-sensitive file names. As always, please feel free to contact me with any questions or problems. |
|
From: Tod L. <tli...@ne...> - 2002-02-28 09:09:31
|
Testing mailing list.... please disregard. |