Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8180346

A new GridPaneVector control

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      I'd like to be able draw directional line segments (vectors) between the middle of grid edges and/or the center of grids in a GridPane. The vectors could span rows/columns and for my purpose only need to be horizontal or vertical.

      I suggest a control because shapes (rectangle, line, etc) do not resize.

      GridPaneVectors would resize along with grid lines when a "Percent Height" or "Percent Width" is set to something other than -1.

      They would not be rendered when the scene is displayed. Instead my program would draw a rectangle with an animated linear gradient over each GridPaneVector.

      It would be ideal if a GridPaneVector could only be used only in a GridPane but since it is never rendered it would be ignored when used elsewhere.

      JUSTIFICATION :
      I want to build a scene that shows a station along a pipeline with pumps and valves in the center of grids joined by narrow rectangles to show the pipes in between. The rectangles would be painted with a linear gradient that is animated when that section is flowing. The display can be resized from very small where just the pump, valves and pipe segments are shown to very large where all the device data like pressures, vibrations, flow meters, etc. are shown.

      SceneBuilder could show GridPaneVectors along with grid lines in a resizable GridPane.


      CUSTOMER SUBMITTED WORKAROUND :
      Without this control I would need to specify vectors outside of .fxml and perform the layout functionality manually instead of having it done by the layout pass.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: