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 TypeMethodDescriptionvoidcp437(boolean x) voiddrawBitmap(int x, int y, byte[] bitmap, int w, int h, int color) voiddrawBitmap(int x, int y, byte[] bitmap, int w, int h, int color, int bg) voiddrawChar(int x, int y, char c, int color, int bg, int size) voiddrawCircle(int x0, int y0, int r, int color) voiddrawCircleHelper(int x0, int y0, int r, int cornername, int color) voiddrawFastHLine(int x, int y, int w, int color) voiddrawFastVLine(int x, int y, int h, int color) voiddrawLine(int x0, int y0, int x1, int y1, int color) abstract voiddrawPixel(int x, int y, int color) voiddrawRect(int x, int y, int w, int h, int color) voiddrawRoundRect(int x, int y, int w, int h, int r, int color) voiddrawTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int color) voiddrawXBitmap(int x, int y, byte[] bitmap, int w, int h, int color) voidfillCircle(int x0, int y0, int r, int color) voidfillRect(int x, int y, int w, int h, int color) voidfillRoundRect(int x, int y, int w, int h, int r, int color) voidfillScreen(int color) voidfillTriangle(int x0, int y0, int x1, int y1, int x2, int y2, int color) intintintintheight()voidinvertDisplay(boolean i) voidsetCursor(int x, int y) voidsetRotation(int x) voidsetTextColor(int c) voidsetTextColor(int c, int b) voidsetTextSize(int s) voidsetTextWrap(boolean w) intwidth()voidwrite(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)
-