Graphics API: draw circle (#295)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016 devemux86
|
||||
* Copyright 2017 nebular
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@@ -42,6 +43,8 @@ public interface Canvas {
|
||||
*/
|
||||
void drawBitmap(Bitmap bitmap, float x, float y);
|
||||
|
||||
void drawCircle(float x, float y, float radius, Paint paint);
|
||||
|
||||
void drawLine(int x1, int y1, int x2, int y2, Paint paint);
|
||||
|
||||
void fillColor(int color);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
* Copyright 2010, 2011, 2012 mapsforge.org
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016 devemux86
|
||||
* Copyright 2017 nebular
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@@ -73,6 +74,8 @@ public interface Paint {
|
||||
|
||||
float getStrokeWidth();
|
||||
|
||||
Style getStyle();
|
||||
|
||||
float getTextHeight(String text);
|
||||
|
||||
float getTextWidth(String text);
|
||||
|
||||
Reference in New Issue
Block a user