| package org.eclipse.nebula.widgets.nattable.renderer.swt; |
| |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.events.PaintEvent; |
| import org.eclipse.swt.events.PaintListener; |
| import org.eclipse.swt.widgets.Canvas; |
| import org.eclipse.swt.widgets.Composite; |
| |
| /** |
| * Put all of the rendering related stuff in here. |
| * But to connect the rendering to the core, there needs to be some transition I guess. |
| * I haven't figured out the big picture on this yet. So this is just the stub for |
| * further discussion at the moment. |
| * |
| * @author Dirk Fauth |
| * |
| */ |
| public class SWTNatTableRenderer extends Canvas implements PaintListener { |
| |
| public static final int DEFAULT_STYLE_OPTIONS = SWT.NO_BACKGROUND | SWT.NO_REDRAW_RESIZE | SWT.DOUBLE_BUFFERED | SWT.V_SCROLL | SWT.H_SCROLL; |
| |
| public SWTNatTableRenderer(Composite parent) { |
| super(parent, DEFAULT_STYLE_OPTIONS); |
| } |
| |
| public SWTNatTableRenderer(Composite parent, int style) { |
| super(parent, style); |
| } |
| |
| @Override |
| public void paintControl(final PaintEvent event) { |
| paintNatTable(event); |
| } |
| |
| private void paintNatTable(final PaintEvent event) { |
| } |
| } |