com.jzy3d.surfedit.swing.sync
Class SurfEditTableSync
java.lang.Object
com.jzy3d.surfedit.swing.sync.SurfEditTableSync
public class SurfEditTableSync
- extends java.lang.Object
SurfEditTableSync
maintains synchronization between a chart and a table.
The chart key controller is registered both by the table and the chart.
To avoid conflicts with the table key shortcuts (which uses arrow keys
for changing the current cell selection), +/- on a surface cell z value should be
achieved with k/j keys instead of arrow up/down.
The table renderer directly uses the surface object to know selected cells and colormaps.
When the chart's surface has a Z change, the table is updated.
When the table has a cell value change, the chart's surface is updated.
When a table cell is selected, it directly change the selection status of the surface.
- Author:
- Martin Pernollet
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurfEditTableSync
public SurfEditTableSync(InteractiveChart chart,
SurfEditTable table)
wire
public static SurfEditTableSync wire(InteractiveChart chart,
SurfEditTable table)
unwire
public void unwire()
- To be called before changing the primary surface.
configure
public static void configure(javax.swing.JTable table)
- Some settings required to have appropriate selection mode.
getChart
public InteractiveChart getChart()
getTable
public javax.swing.JTable getTable()
isLockChartToTable
public boolean isLockChartToTable()
isLockTableToChart
public boolean isLockTableToChart()