public class XYGraphLibIntSWT extends java.lang.Object implements IXYGraphLibInt
IXYGraphLibInt.BgColor, IXYGraphLibInt.ButtonImages, IXYGraphLibInt.FgColor, IXYGraphLibInt.Pt| Constructor and Description |
|---|
XYGraphLibIntSWT(Display dp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createColor(int no,
IXYGraphLib.RGB value) |
void |
drawBackground(IXYGraphLib.Rect rect) |
void |
drawCircle(int x,
int y,
int radius) |
void |
drawImage(IXYGraphLib.Rect rect,
IXYGraphLibInt.ButtonImages button,
boolean enabled) |
void |
drawLine(int x1,
int y1,
int x2,
int y2) |
void |
drawPolyline(int[] points,
int num) |
void |
drawRectangle(int x,
int y,
int width,
int height) |
void |
drawRectangle(IXYGraphLib.Rect rect) |
void |
drawRoundRectangle(IXYGraphLib.Rect rect,
int radius) |
void |
drawText(java.lang.String label,
int x,
int y) |
void |
drawTextRect(int number,
java.lang.String label,
IXYGraphLib.Rect rect) |
void |
fillRectangle(IXYGraphLib.Rect rect) |
void |
fillRoundRectangle(IXYGraphLib.Rect rect,
int radius) |
IXYGraphLibInt.Pt |
getAverageCharacterSize()
Get the width of a average character in the current drawing environment
|
IXYGraphLib.Rect |
getBounds() |
float |
getButtonRatio()
Get the ration of button width to height.
|
IXYGraphLibInt.Pt |
getStringExtends(java.lang.String s)
Get width and height of a string in pixels
|
boolean |
hasOwnButtonDrawing(IXYGraphLibInt.ButtonImages button)
If true, the core will not paint the buttons.
|
void |
paint(GC gc) |
void |
registerXYPlot(IXYGraphLibAdapter xyPlot) |
void |
setAxisColor(int r,
int g,
int b) |
void |
setBgColor(int r,
int g,
int b) |
void |
setBgColor(IXYGraphLibInt.BgColor c)
Set current background color
|
void |
setBgPlotColor(int no) |
void |
setBoldFont() |
void |
setBounds(IXYGraphLib.Rect rect) |
void |
setCursorBgColor(int r,
int g,
int b) |
void |
setCursorColor(int r,
int g,
int b) |
void |
setDashedLines(int width) |
void |
setDrawAreaBgColor(int r,
int g,
int b) |
void |
setFgColor(IXYGraphLibInt.FgColor c)
Set current foreground color
|
void |
setFgPlotColor(int no) |
void |
setFontSize(int labelFontSize,
int titleFontSize) |
void |
setFontSize(java.lang.String fontName,
int labelFontSize,
int titleFontSize) |
void |
setLegendBgColor(int r,
int g,
int b) |
void |
setLegendSelectBgColor(int r,
int g,
int b) |
void |
setNormalFont() |
void |
setSolidLines(int width) |
void |
startDelayedWakeTrigger(long delay) |
public void close()
public void registerXYPlot(IXYGraphLibAdapter xyPlot)
registerXYPlot in interface IXYGraphLibIntpublic void paint(GC gc)
public void startDelayedWakeTrigger(long delay)
startDelayedWakeTrigger in interface IXYGraphLibIntpublic IXYGraphLib.Rect getBounds()
getBounds in interface IXYGraphLibIntpublic void setBounds(IXYGraphLib.Rect rect)
public void setFontSize(int labelFontSize,
int titleFontSize)
setFontSize in interface IXYGraphLibIntpublic void setFontSize(java.lang.String fontName,
int labelFontSize,
int titleFontSize)
setFontSize in interface IXYGraphLibIntpublic void setAxisColor(int r,
int g,
int b)
setAxisColor in interface IXYGraphLibIntpublic void setCursorColor(int r,
int g,
int b)
setCursorColor in interface IXYGraphLibIntpublic void setCursorBgColor(int r,
int g,
int b)
setCursorBgColor in interface IXYGraphLibIntpublic void setBgColor(int r,
int g,
int b)
setBgColor in interface IXYGraphLibIntpublic void setLegendBgColor(int r,
int g,
int b)
setLegendBgColor in interface IXYGraphLibIntpublic void setLegendSelectBgColor(int r,
int g,
int b)
setLegendSelectBgColor in interface IXYGraphLibIntpublic void setDrawAreaBgColor(int r,
int g,
int b)
setDrawAreaBgColor in interface IXYGraphLibIntpublic void setFgPlotColor(int no)
setFgPlotColor in interface IXYGraphLibIntpublic void setBgPlotColor(int no)
setBgPlotColor in interface IXYGraphLibIntpublic void createColor(int no,
IXYGraphLib.RGB value)
createColor in interface IXYGraphLibIntpublic IXYGraphLibInt.Pt getAverageCharacterSize()
getAverageCharacterSize in interface IXYGraphLibIntpublic IXYGraphLibInt.Pt getStringExtends(java.lang.String s)
getStringExtends in interface IXYGraphLibIntpublic void setFgColor(IXYGraphLibInt.FgColor c)
setFgColor in interface IXYGraphLibIntpublic void setBgColor(IXYGraphLibInt.BgColor c)
setBgColor in interface IXYGraphLibIntpublic void setSolidLines(int width)
setSolidLines in interface IXYGraphLibIntpublic void setDashedLines(int width)
setDashedLines in interface IXYGraphLibIntpublic void drawRectangle(IXYGraphLib.Rect rect)
drawRectangle in interface IXYGraphLibIntpublic void drawRectangle(int x,
int y,
int width,
int height)
drawRectangle in interface IXYGraphLibIntpublic void drawImage(IXYGraphLib.Rect rect, IXYGraphLibInt.ButtonImages button, boolean enabled)
drawImage in interface IXYGraphLibIntpublic void setNormalFont()
setNormalFont in interface IXYGraphLibIntpublic void setBoldFont()
setBoldFont in interface IXYGraphLibIntpublic void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine in interface IXYGraphLibIntpublic void drawPolyline(int[] points,
int num)
drawPolyline in interface IXYGraphLibIntpublic void drawCircle(int x,
int y,
int radius)
drawCircle in interface IXYGraphLibIntpublic void fillRectangle(IXYGraphLib.Rect rect)
fillRectangle in interface IXYGraphLibIntpublic void drawRoundRectangle(IXYGraphLib.Rect rect, int radius)
drawRoundRectangle in interface IXYGraphLibIntpublic void fillRoundRectangle(IXYGraphLib.Rect rect, int radius)
fillRoundRectangle in interface IXYGraphLibIntpublic void drawText(java.lang.String label,
int x,
int y)
drawText in interface IXYGraphLibIntpublic void drawTextRect(int number,
java.lang.String label,
IXYGraphLib.Rect rect)
drawTextRect in interface IXYGraphLibIntpublic void drawBackground(IXYGraphLib.Rect rect)
drawBackground in interface IXYGraphLibIntpublic float getButtonRatio()
IXYGraphLibIntgetButtonRatio in interface IXYGraphLibIntpublic boolean hasOwnButtonDrawing(IXYGraphLibInt.ButtonImages button)
IXYGraphLibInthasOwnButtonDrawing in interface IXYGraphLibInt