Package virtualbreadboard.arduino
Class Adafruit_GFX
java.lang.Object
virtualbreadboard.arduino.PrintFormatter
virtualbreadboard.arduino.Adafruit_GFX
- Direct Known Subclasses:
Adafruit_NeoMatrix
,Adafruit_SSD1306
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cp437
(boolean x) void
drawBitmap
(int x, int y, byte[] bitmap, int w, int h, int color) void
drawBitmap
(int x, int y, byte[] bitmap, int w, int h, int color, int bg) void
drawChar
(int x, int y, char c, int color, int bg, int size) void
drawCircle
(int x0, int y0, int r, int color) void
drawCircleHelper
(int x0, int y0, int r, int cornername, int color) void
drawFastHLine
(int x, int y, int w, int color) void
drawFastVLine
(int x, int y, int h, int color) void
drawLine
(int x0, int y0, int x1, int y1, int color) abstract void
drawPixel
(int x, int y, int color) void
drawRect
(int x, int y, int w, int h, int color) void
drawRoundRect
(int x, int y, int w, int h, int r, int color) void
drawTriangle
(int x0, int y0, int x1, int y1, int x2, int y2, int color) void
drawXBitmap
(int x, int y, byte[] bitmap, int w, int h, int color) void
fillCircle
(int x0, int y0, int r, int color) void
fillRect
(int x, int y, int w, int h, int color) void
fillRoundRect
(int x, int y, int w, int h, int r, int color) void
fillScreen
(int color) void
fillTriangle
(int x0, int y0, int x1, int y1, int x2, int y2, int color) int
int
int
int
height()
void
invertDisplay
(boolean i) void
setCursor
(int x, int y) void
setRotation
(int x) void
setTextColor
(int c) void
setTextColor
(int c, int b) void
setTextSize
(int s) void
setTextWrap
(boolean w) int
width()
void
write
(char c)
-
Constructor Details
-
Adafruit_GFX
public Adafruit_GFX(int w, int h)
-
-
Method Details
-
drawPixel
public abstract void drawPixel(int x, int y, int color) -
drawCircle
public void drawCircle(int x0, int y0, int r, int color) -
drawCircleHelper
public void drawCircleHelper(int x0, int y0, int r, int cornername, int color) -
fillCircle
public void fillCircle(int x0, int y0, int r, int color) -
drawLine
public void drawLine(int x0, int y0, int x1, int y1, int color) -
drawRect
public void drawRect(int x, int y, int w, int h, int color) -
drawFastVLine
public void drawFastVLine(int x, int y, int h, int color) -
drawFastHLine
public void drawFastHLine(int x, int y, int w, int color) -
fillRect
public void fillRect(int x, int y, int w, int h, int color) -
fillScreen
public void fillScreen(int color) -
drawRoundRect
public void drawRoundRect(int x, int y, int w, int h, int r, int color) -
fillRoundRect
public void fillRoundRect(int x, int y, int w, int h, int r, int color) -
drawTriangle
public void drawTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int color) -
fillTriangle
public void fillTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int color) -
drawBitmap
public void drawBitmap(int x, int y, byte[] bitmap, int w, int h, int color) -
drawBitmap
public void drawBitmap(int x, int y, byte[] bitmap, int w, int h, int color, int bg) -
drawXBitmap
public void drawXBitmap(int x, int y, byte[] bitmap, int w, int h, int color) -
write
public void write(char c) -
drawChar
public void drawChar(int x, int y, char c, int color, int bg, int size) -
setCursor
public void setCursor(int x, int y) -
getCursorX
public int getCursorX() -
getCursorY
public int getCursorY() -
setTextSize
public void setTextSize(int s) -
setTextColor
public void setTextColor(int c) -
setTextColor
public void setTextColor(int c, int b) -
setTextWrap
public void setTextWrap(boolean w) -
getRotation
public int getRotation() -
setRotation
public void setRotation(int x) -
cp437
public void cp437(boolean x) -
width
public int width() -
height
public int height() -
invertDisplay
public void invertDisplay(boolean i)
-