Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2007

Tip: Looking for answers? Try searching our database.

controllable java HTML render?

Thread view: 
Kevin - 13 Jun 2007 15:31 GMT
Does anyone know any good "controllable" java HTML render?

By "controllable", what I want is:

1) I may not need to "physically" output the render result on screen,
render it in memory is all I need.
2) but I want to know each item's location after render!
For example, for this page, I want to know the relative (with respect
to the upper left (0,0)) location of the "My Groups", "Sign In", "Sign
Out", the location of the header of this post, etc.
In another words, I want to know:
Item/tag with value "My Groups" locates at pixel (600, 10) on the
screen after render.
Item/tag with value "New post" locates at pixel (700, 250) on the
screen after render. etc.

Any idea of it?

Thanks.
Andrew Thompson - 13 Jun 2007 15:57 GMT
>Does anyone know any good "controllable" java HTML render?
>
[quoted text clipped - 3 lines]
>render it in memory is all I need.
>2) but I want to know each item's location after render!

Why?*

>For example, for this page, I want to know the relative (with respect
>to the upper left (0,0)) location of the "My Groups", "Sign In", "Sign
[quoted text clipped - 6 lines]
>
>Any idea of it?

* I know of pages where all these values would change
according not only to the user's screen size/resolution
and default font size, but also according to how much
of the screen area (width/height) the user is willing to
provide to the *rendering* *component* that displays it,
at that particular instant. (As well as stylesheets that the
user might use to overide the default look of pages, and
a bazillion other things..)

What are these pages?  Are they all controlled by you?
Are they all known in advance (e.g. off one site)?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Kevin - 13 Jun 2007 17:21 GMT
We are doing some other processings, which needs to know the locations
of each tag/item.

Yes, I agree the locations will be based on font size, design, screen
size, etc. We can assume these values are known in advance (or use
whatever default values), and the pages are known (say, saved on disk
already).

Any idea of how to get the location information?
Ian Wilson - 14 Jun 2007 10:11 GMT
> We are doing some other processings, which needs to know the locations
> of each tag/item.

Presumably you render the HTML to a bitmap, discard the HTML and further
process the bitmap.

> Yes, I agree the locations will be based on font size, design, screen
> size, etc. We can assume these values are known in advance (or use
> whatever default values), and the pages are known (say, saved on disk
> already).
>
> Any idea of how to get the location information?

Sorry no, but this link *might* help ...
http://www.perlmonks.org/index.pl?node_id=542341


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.