|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanywheresoftware.b4a.AbsObjectWrapper<T>
anywheresoftware.b4a.objects.ViewWrapper<uk.co.martinpearman.b4a.touchimageview.TouchImageView>
uk.co.martinpearman.b4a.touchimageview.TouchImageViewWrapper
public class TouchImageViewWrapper
Field Summary |
---|
Fields inherited from class anywheresoftware.b4a.objects.ViewWrapper |
---|
lastId |
Fields inherited from class anywheresoftware.b4a.AbsObjectWrapper |
---|
Activity_LoadLayout_Was_Called |
Constructor Summary | |
---|---|
TouchImageViewWrapper()
|
Method Summary | |
---|---|
void |
CreateLog()
Creates log entries with details about the current state of the TouchImageView. |
android.graphics.Bitmap |
getBackgroundImage()
Get or Set the BackgroundImage. |
int |
getClickPeriod()
Get or Set the ClickPeriod in milliseconds. |
anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper |
GetDestRect()
Returns a Rect that describes the current scale and position of the image within the TouchImageView. |
int |
getGravity()
Get or Set the Gravity of the BackgroundImage. |
float |
getMaxScale()
Get or set the maximum scale that the image can be enlarged by (zoomed in). |
float |
getMinScale()
Get or set the minimum scale that the image can be reduced by (zoomed out). |
float |
getScaleX()
Get the factor which the image is currently scaled by on it's X axis. |
float |
getScaleY()
Get the factor which the image is currently scaled by on it's Y axis. |
boolean |
getTouchEnabled()
Get or Set whether touch events are enabled. |
int |
getTranslatePadding()
Get or set the minimum number of pixels that the image will always display within the TouchImageView. |
void |
Initialize(anywheresoftware.b4a.BA pBA,
String EventName)
|
void |
innerInitialize(anywheresoftware.b4a.BA pBA,
String pEventName,
boolean pKeepOldObject)
|
void |
PreScale(float Scale,
int PointX,
int PointY)
Change the current image scale by Scale, centering the change on (X, Y). |
void |
ScaleSrcRectToDestRect(android.graphics.Rect SrcRect,
android.graphics.Rect DestRect,
String ScaleToFit)
Scale and position the area of the (foreground) image defined by SrcRect to the area of the TouchImageView defined by DestRect. |
void |
setBackgroundImage(android.graphics.Bitmap aBitmap)
|
void |
SetBitmap(anywheresoftware.b4a.BA pBA,
android.graphics.Bitmap aBitmap)
Set the (foreground) image. |
void |
setClickPeriod(int ClickPeriod)
|
void |
setGravity(int Gravity)
|
void |
setMaxScale(float MaxScale)
|
void |
setMinScale(float MinScale)
|
void |
setTouchEnabled(boolean Enabled)
|
void |
setTranslatePadding(int TranslatePadding)
|
Methods inherited from class anywheresoftware.b4a.objects.ViewWrapper |
---|
BringToFront, build, buildNativeView, getBackground, getEnabled, getHeight, getLeft, getTag, getTop, getVisible, getWidth, Invalidate, Invalidate2, Invalidate3, RemoveView, RequestFocus, SendToBack, setBackground, SetBackgroundImage, setColor, setEnabled, setHeight, SetLayout, setLeft, setTag, setTop, setVisible, setWidth, toString |
Methods inherited from class anywheresoftware.b4a.AbsObjectWrapper |
---|
baseToString, ConvertToWrapper, equals, getObject, getObjectOrNull, hashCode, IsInitialized, setObject |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TouchImageViewWrapper()
Method Detail |
---|
public void CreateLog()
public android.graphics.Bitmap getBackgroundImage()
public int getClickPeriod()
public anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper GetDestRect()
public int getGravity()
public float getMinScale()
public float getMaxScale()
public float getScaleX()
public float getScaleY()
public boolean getTouchEnabled()
public int getTranslatePadding()
public void Initialize(anywheresoftware.b4a.BA pBA, String EventName)
Initialize
in class anywheresoftware.b4a.objects.ViewWrapper<uk.co.martinpearman.b4a.touchimageview.TouchImageView>
public void innerInitialize(anywheresoftware.b4a.BA pBA, String pEventName, boolean pKeepOldObject)
innerInitialize
in class anywheresoftware.b4a.objects.ViewWrapper<uk.co.martinpearman.b4a.touchimageview.TouchImageView>
public void PreScale(float Scale, int PointX, int PointY)
public void ScaleSrcRectToDestRect(android.graphics.Rect SrcRect, android.graphics.Rect DestRect, String ScaleToFit)
public void setBackgroundImage(android.graphics.Bitmap aBitmap)
public void SetBitmap(anywheresoftware.b4a.BA pBA, android.graphics.Bitmap aBitmap)
public void setClickPeriod(int ClickPeriod)
public void setGravity(int Gravity)
public void setMinScale(float MinScale)
public void setMaxScale(float MaxScale)
public void setTouchEnabled(boolean Enabled)
public void setTranslatePadding(int TranslatePadding)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |