public class FakePanelEntity extends FakeEntity

Known direct subclasses
FakeActivityPanelEntity

Test-only implementation of ActivityPanelEntity


Test-only implementation of PanelEntity

Summary

Public constructors

Public methods

float

Sets a corner radius on all four corners of this PanelEntity.

@NonNull Vector3

Gets the number of pixels per meter for this panel.

@NonNull Dimensions

Returns the spatial size of this Panel in meters.

@NonNull PixelDimensions

Sets the pixel (not Dp) dimensions of the view underlying this PanelEntity.

void
setCornerRadius(float cornerRadius)

Sets a corner radius on all four corners of this PanelEntity.

void

Returns the spatial size of this Panel in meters.

void

Sets the pixel (not Dp) dimensions of the view underlying this PanelEntity.

Public constructors

FakePanelEntity

Added in 1.0.0-alpha04
public FakePanelEntity()

Public methods

getCornerRadius

Added in 1.0.0-alpha04
public float getCornerRadius()

Sets a corner radius on all four corners of this PanelEntity.

getPixelDensity

Added in 1.0.0-alpha04
public @NonNull Vector3 getPixelDensity()

Gets the number of pixels per meter for this panel. This value reflects changes to scale, including parent scale.

This method will be removed in a future release.

Returns
@NonNull Vector3

Vector3 scale applied to pixels within the Panel. (Z will be 0)

getSize

Added in 1.0.0-alpha04
public @NonNull Dimensions getSize()

Returns the spatial size of this Panel in meters. This includes any scaling applied to this panel by itself or its parents, which might be set via changes to setScale.

Returns
@NonNull Dimensions

Dimensions size of this panel in meters. (Z will be 0)

getSizeInPixels

Added in 1.0.0-alpha04
public @NonNull PixelDimensions getSizeInPixels()

Sets the pixel (not Dp) dimensions of the view underlying this PanelEntity. Calling this might cause the layout of the Panel contents to change. Updating this will not cause the scale or pixel density to change.

setCornerRadius

Added in 1.0.0-alpha04
public void setCornerRadius(float cornerRadius)

Sets a corner radius on all four corners of this PanelEntity.

setSize

Added in 1.0.0-alpha04
public void setSize(@NonNull Dimensions size)

Returns the spatial size of this Panel in meters. This includes any scaling applied to this panel by itself or its parents, which might be set via changes to setScale.

Returns
void

Dimensions size of this panel in meters. (Z will be 0)

setSizeInPixels

Added in 1.0.0-alpha04
public void setSizeInPixels(@NonNull PixelDimensions sizeInPixels)

Sets the pixel (not Dp) dimensions of the view underlying this PanelEntity. Calling this might cause the layout of the Panel contents to change. Updating this will not cause the scale or pixel density to change.