public class XYGraphLibIntSVG extends java.lang.Object implements IXYGraphLibInt
IXYGraphLibInt.BgColor, IXYGraphLibInt.ButtonImages, IXYGraphLibInt.FgColor, IXYGraphLibInt.Pt
Constructor and Description |
---|
XYGraphLibIntSVG(java.io.OutputStream os,
IXYGraphLib.Rect rect) |
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() |
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 |
setOffset(int x,
int y) |
void |
setSolidLines(int width) |
void |
startDelayedWakeTrigger(long delay)
Graphic library independent methods
|
public XYGraphLibIntSVG(java.io.OutputStream os, IXYGraphLib.Rect rect)
public void close()
public void registerXYPlot(IXYGraphLibAdapter xyPlot)
registerXYPlot
in interface IXYGraphLibInt
public void paint()
public void setOffset(int x, int y)
public void startDelayedWakeTrigger(long delay)
startDelayedWakeTrigger
in interface IXYGraphLibInt
public IXYGraphLib.Rect getBounds()
getBounds
in interface IXYGraphLibInt
public void setBounds(IXYGraphLib.Rect rect)
public void setFontSize(int labelFontSize, int titleFontSize)
setFontSize
in interface IXYGraphLibInt
public void setFgPlotColor(int no)
setFgPlotColor
in interface IXYGraphLibInt
public void setBgPlotColor(int no)
setBgPlotColor
in interface IXYGraphLibInt
public void createColor(int no, IXYGraphLib.RGB value)
createColor
in interface IXYGraphLibInt
public IXYGraphLibInt.Pt getAverageCharacterSize()
getAverageCharacterSize
in interface IXYGraphLibInt
public IXYGraphLibInt.Pt getStringExtends(java.lang.String s)
getStringExtends
in interface IXYGraphLibInt
public void setFgColor(IXYGraphLibInt.FgColor c)
setFgColor
in interface IXYGraphLibInt
public void setBgColor(IXYGraphLibInt.BgColor c)
setBgColor
in interface IXYGraphLibInt
public void setSolidLines(int width)
setSolidLines
in interface IXYGraphLibInt
public void setDashedLines(int width)
setDashedLines
in interface IXYGraphLibInt
public void drawRectangle(IXYGraphLib.Rect rect)
drawRectangle
in interface IXYGraphLibInt
public void drawRectangle(int x, int y, int width, int height)
drawRectangle
in interface IXYGraphLibInt
public void drawImage(IXYGraphLib.Rect rect, IXYGraphLibInt.ButtonImages button, boolean enabled)
drawImage
in interface IXYGraphLibInt
public void setNormalFont()
setNormalFont
in interface IXYGraphLibInt
public void setBoldFont()
setBoldFont
in interface IXYGraphLibInt
public void drawLine(int x1, int y1, int x2, int y2)
drawLine
in interface IXYGraphLibInt
public void drawPolyline(int[] points, int num)
drawPolyline
in interface IXYGraphLibInt
public void drawCircle(int x, int y, int radius)
drawCircle
in interface IXYGraphLibInt
public void fillRectangle(IXYGraphLib.Rect rect)
fillRectangle
in interface IXYGraphLibInt
public void drawRoundRectangle(IXYGraphLib.Rect rect, int radius)
drawRoundRectangle
in interface IXYGraphLibInt
public void fillRoundRectangle(IXYGraphLib.Rect rect, int radius)
fillRoundRectangle
in interface IXYGraphLibInt
public void drawText(java.lang.String label, int x, int y)
drawText
in interface IXYGraphLibInt
public void drawTextRect(int number, java.lang.String label, IXYGraphLib.Rect rect)
drawTextRect
in interface IXYGraphLibInt
public void drawBackground(IXYGraphLib.Rect rect)
drawBackground
in interface IXYGraphLibInt
public void setBgColor(int r, int g, int b)
setBgColor
in interface IXYGraphLibInt
public void setLegendBgColor(int r, int g, int b)
setLegendBgColor
in interface IXYGraphLibInt
public void setLegendSelectBgColor(int r, int g, int b)
setLegendSelectBgColor
in interface IXYGraphLibInt
public void setDrawAreaBgColor(int r, int g, int b)
setDrawAreaBgColor
in interface IXYGraphLibInt
public void setAxisColor(int r, int g, int b)
setAxisColor
in interface IXYGraphLibInt
public void setCursorColor(int r, int g, int b)
setCursorColor
in interface IXYGraphLibInt
public void setFontSize(java.lang.String fontName, int labelFontSize, int titleFontSize)
setFontSize
in interface IXYGraphLibInt
public void setCursorBgColor(int r, int g, int b)
setCursorBgColor
in interface IXYGraphLibInt
public float getButtonRatio()
IXYGraphLibInt
getButtonRatio
in interface IXYGraphLibInt
public boolean hasOwnButtonDrawing(IXYGraphLibInt.ButtonImages button)
IXYGraphLibInt
hasOwnButtonDrawing
in interface IXYGraphLibInt