> Actively developed UI toolkits I'm aware of include DominoUI and DnComponents
Interesting. I checked those out and neither of them seem to have a canvas
widget. Did I miss it?
Thank you,
Neil
--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!
> "what do you expect in a canvas widget"
I am not exactly sure. This is all a bit new to me.
When I look at the canvas class in GWT, it does not have
methods to support zoom so I would have
to write my own code for that functionality.
Looking at the canvas class in SmartGWT, it has methods
for zoom so I can let the library handle it.
--https://groups.google.com/d/msgid/google-web-toolkit/61482f4a-db23-4b0d-83c4-342902cf5ba8n%40googlegroups.com
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit.
> The only zoom I see in smartgwt's canvas is "zoom overflow" settings
I am sorry, I was not clear in my earlier message. Their DrawPane class
has a method called setZoomLevel.
They posted a demo of it:
https://smartclient.com/smartgwt/showcase/?autotest=showcase#zoom_and_pan
I have no idea how it works, I don’t need to.
I used it in my app and it is working well.
> myCanvas.getContext2d().scale(2, 2);
Colin says doing that will pixelate the view. Is that correct?
> Neil, I'm not sure where I appeared to have said that.
I am sorry, I did not intend to put words in your mouth.
That was my understanding from your previous email stating
that canvas is a raster format. I misinterpreted your statements.
I apologize for that.
--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/E3P4xZ8SFCg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/0e1b79f7-fa2e-482f-899b-65c5e9ca3e72n%40googlegroups.com.
@Craig - If you draw everything on the same canvas, the zoom/scale works on everything on that canvas. it limits what you can do with that canvas. If you want to scale or zoom everything, yes then it doesn't matter. So yes you are right, it depends on the project.
@Colin - With multiple layers I would also need multiple canvas's and overlay them right?
We wrote a single adapter widget that uses a single canvas. This adapter widget knows what the zoom level is. Objects that are drawn on that widget of a certain type get zoomed, whilst others of a different type do not. It is super simple and easily explained to new devs. Everyone on the team can add views or objects and the type determines how these are displayed. Even devs without exact knowledge of how the canvas works can develop and maintain objects to be displayed.I guess it's also a development style/preference thing. If you code the view of the canvas in a single class or single method, the solution is likely to have to rely more on the technological capabilities of the canvas. Working with an adapter then does not really make a lot of sense.If you have more of an OO style of development, you express more in functional blocks. Then you have to rely less on the technical capabilities as you can translate what needs to be done on the basis of what your objects are before you hit the canvas. Then the zooming/scaling happens in the object, not on the canvas so to speak.So the required functionality of the canvas remains fairly basic.
performance wise, I've done fully animated person relation networks and animated dashboards in large canvases for nearly a decade now.We've never ran into any performance issues.That being said, I think the views and on-screen actions we used were somewhat limited when compared to developing a game with full world rendering or something similar.Did I already say I love this gwt group? It makes me think a lot more about what I am doing and why I am doing it.Plus the input from the GWT devs usually give me insights I haven't thought about before or didn't know existed.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/c66862dd-bcfc-4516-b2bf-c5dc17a73deen%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/7299cb42-a00a-415a-b6a6-c8718ce1f9ddn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/778e24ce-c26e-4170-a346-755129440140n%40googlegroups.com.
Hello!
I am following your conversation because i am working on same issues :
Migrating GWT/GXT project to GWT 2.10 + Java 11 + Jetty 9
Initial Context on Legacy project using:
GWT 2.8.2
GXT 2.3.1a-gwt22
Embedded Jetty
Java 8
Migration Goal
Update the project to use:
Java 11
GWT 2.10.1
Jetty 9
A custom-built GXT version compatible with GWT 2.10
Steps Already Completed
1. GXT Recompilation and Installation
Cloned the GXT 2.3.1a sources.
Adapted the code to compile with GWT 2.10.1.
Successfully built gxt-main-2.3.1a-gwt2.10.jar.
Installed it locally using:
2. Maven Configuration Updated
Switched to Java 11 using maven.compiler.source and target.
GWT updated to version 2.10.1.
Added the locally installed GXT dependency
3. GWT Module Inheritance
Added
4. GXT Verification
Confirmed GXT.gwt.xml is present inside the JAR (jar tf checked).
JAR added to the Eclipse launch configuration (Run Configurations > Classpath).
Jetty Configuration Jetty 9 Already in Use
Version confirmed: 9.4.52.v20230823 (via mvn dependency:tree).
Dependencies have <scope>compile</scope> (not provided).
jetty-server-9.4.52.v20230823.jar appears in the Eclipse classpath.
Current Blocking Issues
1. GXT Not Found at Runtime
When launching GWT DevMode: Unable to find 'com/extjs/gxt/ui/GXT.gwt.xml' on your classpath
Despite:
The file being present in the JAR.
The JAR being listed in the Run Configurations > Classpath.
Proper inheritance in the .gwt.xml file.
2. Jetty Server Class Not Found
Tried using the argument:
-server org.eclipse.jetty.server.Server
ClassNotFoundException: org.eclipse.jetty.server.Server
Even though the JAR is present in the classpath, and Jetty 9 is confirmed to be in use.
So i need to understand
Why is GWT DevMode (or CodeServer) unable to find com.extjs.gxt.ui.GXT.gwt.xml, even though it is present and properly declared?
How can I resolve the ClassNotFoundException for org.eclipse.jetty.server.Server, despite Jetty 9 being correctly added?
Are there any special configurations or recommendations for running GWT 2.10 with Jetty 9 and Java 11 in Eclipse?
Important note: I do not want to switch to a Tomcat 9 deployment (war packaging) as a workaround. The current state of the project makes the packaging and deployment process extremely slow — over one hour just to build and deploy. Therefore, I need a solution that works using GWT Super DevMode and embedded Jetty
Thanks in advance for any help or suggestions.
__wejden
So i need to understand
Why is GWT DevMode (or CodeServer) unable to find com.extjs.gxt.ui.GXT.gwt.xml, even though it is present and properly declared?
How can I resolve the ClassNotFoundException for org.eclipse.jetty.server.Server, despite Jetty 9 being correctly added?
Are there any special configurations or recommendations for running GWT 2.10 with Jetty 9 and Java 11 in Eclipse?