javafx adding second scale - javafx

I use LineChart from JavaFX and I want to add second scale on my chart on right side.
I have tested JFreeChart, but It's used objects from awt (Circle, Color etc.). I use such class from JavaFX, so JFreeChart not resolve my problem.
Do somebody have any ideas how it can be realyzed? Thanks for help.
enter image description here

Related

Change properties of graphic decoration ControlsFx

I am new in using the ControlsFx library and what i am trying to do is to adjust some properties of the ERROR_IMAGE from GraphicValidationDecoration. For example, I want to use the same image for validations, but with another positioning(default is bottom left) and another size. Is that posssible?
I tried using StyleClassValidationDecoration, but i think that's just for the textfield itself, not the icon i am talking about.
I read that this was also requested by the community but i did not find the implementantion for it (https://bitbucket.org/controlsfx/controlsfx/issues/788/make-style-of-graphicvalidationdecoration)

JavaFX get PieChart Color

Is there a way to get the default Pie Chart color in JavaFX? I've been looking for solutions but I couldn't get any. I have seen a way to set the color of the Pie Chart, and then work my way to get the Color value. However, I want to just use the default color of the PieChart provided by JavaFX, and just return it so I could use it for something else. Is there a way to do it?
With JavaFX 8+ the default CSS theme called Modena and you can find a lot of information in this Github gist. All the charts are using the same color palette which is :
CHART_COLOR_1: #f3622d;
CHART_COLOR_2: #fba71b;
CHART_COLOR_3: #57b757;
CHART_COLOR_4: #41a9c9;
CHART_COLOR_5: #4258c9;
CHART_COLOR_6: #9a42c8;
CHART_COLOR_7: #c84164;
CHART_COLOR_8: #888888;
keep in mind that although the link above is a good way to find some properties is always recommended to read the JavaFX CSS Reference Guide

How to draw or plot a mesh using the mouse in JavaFX which can then be textured and deformed?

I am trying to implement a tool into my application. the tool would allow the user to plot a triangle meshes using the mouse. I have looked everywhere for a way to do this, tutorials, examples, etc and have not been successful. I have seen the FXyz library but that does not really simulate What I am trying to accomplish. The goal of the program looks as follows:
Use Case Sequence:
The user adds a png image to the 3D scene or drags it into the 3D scene using the mouse.
Once the image is being displayed the user would then be able to plot a mesh around the image.
Once the user has finished plotting the mesh. There would have to be a way to add the image being overlayed by the mesh as a texture to the mesh. The image should look the same after being added as a texture. Is this too hard or beyond the scope of what can be achieve in JavaFX?
Theoretically It would then be possible to drag the vertices of the mesh at draggable points and successfully applying transformations to the texture. Would this be possible?
Images showing what I am trying to achieve
As you can see maybe after plotting the mesh the points connecting the vertices can be dragged in order to manipulate or transform the shape of the mesh. If the mesh has a texture over it. would the image then also transform ?
Would this be possible with the TriangleMesh class that JavaFX has which by the way there is very little out there which explains how to use it and how the points, face points and texture points work. Very confusing =(.
Target End Result
My question is would the type of manipulation shown in the image above be possible in JavaFX? Can this sort of functionality be achieved using the TriangleMesh class or other similar class in JavaFX ? As you can see what I am trying to achieve is really image manipulation I would appreciate knowing if there is another better way to do this.
I unfortunately do not have any code I can share. I just cant seem to produce any regarding this task. I am not asking to be given code or for someone to solve the problem for me. I just want to see examples be guided into the right direction on how to do this and to know if it is even possible or should I just give up on it!
If you have read this far Thank you so much for your time I really appreciate it.
I have read your question till the end :-) In contrast to many people here you are at least providing a clear description of what you want to achieve. According to my own experience I would say that what you want to do is easily possible with JavaFX and the MeshView is the way to go here.
You can use your image as the texture for this mesh and you can distort the image by manipulating the vertices of this mesh. I have implemented part of your functionality myself for a project so I know that it works.

Regarding Division of TextArea in JavaFX

Hello EveryOne,
The Question I may be asking may be easyone.I'm a newbie to JavaFX and I've got work regarding this. So please help out. Here is my question ---
Can i divide entire TextArea into different parts - like Top Portion for Holding History/Log. Middle Part for using Styling(like ComboBoxes to set font and color accordingly) and Bottom part of that textarea to type messages. So that those msg are sent to Top part after clicking send button.
So, I was not able to figure out whether i can do it or not. If So, please help me. Thanks in advance.
You could use a SplitPane or similar container, and just have multiple text areas
The picture above is using a GridPane

Label along the line in Flex LineChart

I'd like to put a label to each LineSeries on my Flex LineChart so it will be shown next to the line (along it). Any relatively easy way to archieve that?
Well what Mike is asking is quite reasonable, as for the colorblind people Legend might not work well, so they need a strong visual indication that, which line is representing which series.
Can't think of anything else though... :(
How is your question different from this example: LineChart and AreaChart controls example (scroll to the bottom)?
I think you'll find that what you are asking will clutter your chart.
Perhaps instead, you add a mouseover event handler to each legend item and when the event fires, highlight the series in one way or another.
When I did this, I simply faded all series except for the one selected.
You can use the CartesianDataCanvas to position your labels.
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_eventsandeffects_13.html

Resources