Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centering text is not reliable #48

Open
gonuke opened this issue May 28, 2015 · 10 comments
Open

Centering text is not reliable #48

gonuke opened this issue May 28, 2015 · 10 comments

Comments

@gonuke
Copy link
Member

gonuke commented May 28, 2015

For reasons I haven't been able (taken the time) to figure out...

Although we explicitly set the text alignment to be CENTERED, it doesn't get invoked until the text wraps. There are some things on the interWebs about this...

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

This might be the solution, and seems a big refactor that would probably add a nudge to a discussion I had with @FlanFlanagan about merging some of his classes.

http://stackoverflow.com/questions/7757169/centre-a-label-on-a-node-in-javafx-2-0

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

More information on this and why it doesn't work as expected: https://community.oracle.com/thread/2330022

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

@yarden-livnat is there something we are missing? CSS?

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

If not using a stackPane, I think we need to calculate the bounds once the text value is set and then manually recenter. I'm not sure how to trigger that dynamically as the text changes.

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

@yarden-livnat
Copy link
Member

If only I had written Cyclist as a web SPA (single page application) using D3…. Life would have been so much easier.

Yarden

On May 29, 2015, at 9:30 AM, Paul Wilson [email protected] wrote:

This looks promising: http://www.redmountainsw.com/wordpress/688/javafx-textalignment-gotcha/ http://www.redmountainsw.com/wordpress/688/javafx-textalignment-gotcha/

Reply to this email directly or view it on GitHub #48 (comment).

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

Don't let @scopatz hear you say that :) :(

@gonuke
Copy link
Member Author

gonuke commented May 29, 2015

Easier enough that you'll do it for v2.0?

@FlanFlanagan
Copy link
Member

A stackpane might be possible. Also, just saying, the JavaScript version of
Cycic still exists, although it needs a lot of work :)
On May 29, 2015 11:07 AM, "Paul Wilson" [email protected] wrote:

Easier enough that you'll do it for v2.0?


Reply to this email directly or view it on GitHub
#48 (comment).

@yarden-livnat
Copy link
Member

Could be.

From the point of of view of writing better charts, better network graphs and having the capability to save (svg) pdf files the answer is a resounding yes. It would make deployment much simpler :-) Of course there is the caveat that things don’t work the same way on all browsers but I think compatibility has improved dramatically since MS stopped their in compatible IE but I haven’t looked at this at all as I’ve been testing my tools only on Chrome.

Let’s collect feedback from our team and from the users at ANS and see what features they like, dislike, don’t use, or would like to see. Now that people have used the tool for a while maybe they can reflect of how they would have liked the interface to look like.

For example,

  1. Does the approach of multiple resizable tools that can overlap each other is better than maybe a grid of fixed sized tools?
  2. I had envision using both Cycic and the Vis at the same time but it doesn’t seems like you need or want that (maybe because Cycic utilize a lot of screen space).
  3. Do people ever use the nested workspaces? The design could be much simpler if we don’t use it.
  4. Do people apply filters to the workspace (i.e. automatically apply it to all the views) or only to a single view at a time.

I have many other such questions. It would be great to meet at ANS to discuss these. I’m free all day on Tuesday and I plan on being in the morning workshop session on Wednesday. I hope we can discuss these issues then. Will that work for the rest of you?

Yarden

On May 29, 2015, at 10:07 AM, Paul Wilson [email protected] wrote:

Easier enough that you'll do it for v2.0?


Reply to this email directly or view it on GitHub #48 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants