From 8ce960beabdb885eaa10a0f6947d092ea952fbb1 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Mon, 20 Jun 2016 11:14:11 +0300 Subject: [PATCH] Add public getters --- .../nativescript/widgets/BorderDrawable.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java b/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java index 79b16511f..08b3ad35e 100644 --- a/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java +++ b/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java @@ -21,6 +21,51 @@ public class BorderDrawable extends ColorDrawable { private float density; private float borderWidth; private int borderColor; + + public float getBorderWidth() { + return borderWidth; + } + + public int getBorderColor() { + return borderColor; + } + + public float getBorderRadius() { + return borderRadius; + } + + public String getClipPath() { + return clipPath; + } + + public int getBackgroundColor() { + return backgroundColor; + } + + public Bitmap getBackgroundImage() { + return backgroundImage; + } + + public float getBackgroundImageWidth() { + return backgroundImageWidth; + } + + public float getBackgroundImageHeight() { + return backgroundImageHeight; + } + + public String getBackgroundRepeat() { + return backgroundRepeat; + } + + public String getBackgroundPosition() { + return backgroundPosition; + } + + public String getBackgroundSize() { + return backgroundSize; + } + private float borderRadius; private String clipPath; private int backgroundColor;