public class SwtWdgCanvas
extends Canvas
GralCanvasStorage
.https://www.eclipse.org/articles/Article-SWT-graphics/SWT_graphics.html
Modifier and Type | Class and Description |
---|---|
private static class |
SwtWdgCanvas.AccessFigure
Inherited class only for protected access to
GralCanvasStorage.Figure data. |
private static class |
SwtWdgCanvas.SwtFigureData
This are data for only one widget.
|
Modifier and Type | Field and Description |
---|---|
private GralCanvasStorage |
canvasStore |
(package private) SwtWdgCanvas.AccessFigure |
figAccess |
protected PaintListener |
paintListener
The listener for paint events.
|
private java.util.Map<java.lang.String,SwtWdgCanvas.SwtFigureData> |
swtFigures |
private SwtMng |
swtMng |
private GralWidget.ImplAccess |
wdggaccess |
Constructor and Description |
---|
SwtWdgCanvas(GralWidget.ImplAccess wdggaccess,
SwtMng swtMng,
GralCanvasStorage canvasStore,
Composite parent,
int style) |
Modifier and Type | Method and Description |
---|---|
private void |
drawArc(GC g,
GralCanvasStorage.Figure order,
GralCanvasStorage.Arcus arc) |
void |
drawBackground(GC g,
int x,
int y,
int dx,
int dy) |
private void |
drawPolyline(GC g,
GralCanvasStorage.Figure order,
GralCanvasStorage.PolyLine line) |
private void |
drawText(GC g,
GralCanvasStorage.Figure figure,
GralCanvasStorage.FigureText text) |
private void |
enhanceArea(int xmin,
int ymin,
int dx,
int dy) |
private GralPoint |
getPixelScaling(GralCanvasStorage.Figure order) |
private SwtWdgCanvas.SwtFigureData |
getSwtFigureData(java.lang.String name,
int size) |
private void |
prepareArc(GC g,
GralCanvasStorage.Figure order,
GralCanvasStorage.Arcus arc) |
private void |
preparePolyline(GC g,
GralCanvasStorage.Figure order,
GralCanvasStorage.PolyLine line) |
private final GralCanvasStorage canvasStore
private final SwtMng swtMng
private final GralWidget.ImplAccess wdggaccess
private java.util.Map<java.lang.String,SwtWdgCanvas.SwtFigureData> swtFigures
SwtWdgCanvas.AccessFigure figAccess
protected PaintListener paintListener
SwtWdgCanvas(GralWidget.ImplAccess wdggaccess, SwtMng swtMng, GralCanvasStorage canvasStore, Composite parent, int style)
public void drawBackground(GC g, int x, int y, int dx, int dy)
private SwtWdgCanvas.SwtFigureData getSwtFigureData(java.lang.String name, int size)
private GralPoint getPixelScaling(GralCanvasStorage.Figure order)
private void enhanceArea(int xmin, int ymin, int dx, int dy)
private void preparePolyline(GC g, GralCanvasStorage.Figure order, GralCanvasStorage.PolyLine line)
private void drawPolyline(GC g, GralCanvasStorage.Figure order, GralCanvasStorage.PolyLine line)
private void prepareArc(GC g, GralCanvasStorage.Figure order, GralCanvasStorage.Arcus arc)
private void drawArc(GC g, GralCanvasStorage.Figure order, GralCanvasStorage.Arcus arc)
private void drawText(GC g, GralCanvasStorage.Figure figure, GralCanvasStorage.FigureText text)