Java Code Examples for com.taobao.weex.utils.WXUtils#getFloat()

The following examples show how to use com.taobao.weex.utils.WXUtils#getFloat() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
private float getBorderWidth(String key) {
  float temp = WXUtils.getFloat(get(key));
  if (WXUtils.isUndefined(temp)) {
    return getBorderWidth();
  }
  return temp;
}
 
Example 2
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
public float getPaddingLeft() {
  float temp = WXUtils.getFloat(get(Constants.Name.PADDING_LEFT));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(Constants.Name.PADDING));
  }
  return temp;
}
 
Example 3
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
public float getMarginBottom() {
  float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_BOTTOM));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(Constants.Name.MARGIN));
  }
  return temp;
}
 
Example 4
Source File: WXStyle.java    From weex-uikit with MIT License 5 votes vote down vote up
public float getMarginLeft() {
  float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_LEFT));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(Constants.Name.MARGIN));
  }
  return temp;
}
 
Example 5
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
public float getMarginTop() {
  float temp = WXUtils.getFloat(get(Constants.Name.MARGIN_TOP));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(Constants.Name.MARGIN));
  }
  return temp;
}
 
Example 6
Source File: WXStyle.java    From weex-uikit with MIT License 5 votes vote down vote up
public float getPaddingRight() {
  float temp = WXUtils.getFloat(get(Constants.Name.PADDING_RIGHT));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(Constants.Name.PADDING));
  }
  return temp;
}
 
Example 7
Source File: WXStyle.java    From weex with Apache License 2.0 5 votes vote down vote up
public float getPaddingTop() {
  float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDINGTOP));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDING));
  }
  return temp;
}
 
Example 8
Source File: WXStyle.java    From weex with Apache License 2.0 5 votes vote down vote up
public float getPaddingRight() {
  float temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDINGRIGHT));
  if (WXUtils.isUndefined(temp)) {
    temp = WXUtils.getFloat(get(WXDomPropConstant.WX_PADDING));
  }
  return temp;
}
 
Example 9
Source File: WXStyle.java    From weex-uikit with MIT License 4 votes vote down vote up
public float getMinWidth() {
  return WXUtils.getFloat(get(Constants.Name.MIN_WIDTH));
}
 
Example 10
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 4 votes vote down vote up
public float getMinHeight() {
  return WXUtils.getFloat(get(Constants.Name.MIN_HEIGHT));
}
 
Example 11
Source File: WXStyle.java    From weex-uikit with MIT License 4 votes vote down vote up
public float getBottom() {
  return WXUtils.getFloat(get(Constants.Name.BOTTOM));
}
 
Example 12
Source File: WXStyle.java    From weex-uikit with MIT License 4 votes vote down vote up
public float getMaxWidth() {
  return WXUtils.getFloat(get(Constants.Name.MAX_WIDTH));
}
 
Example 13
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 4 votes vote down vote up
public float getFlex() {
  return WXUtils.getFloat(get(Constants.Name.FLEX));
}
 
Example 14
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 4 votes vote down vote up
@Deprecated
public float getBorderWidth() {
  return WXUtils.getFloat(get(Constants.Name.BORDER_WIDTH));
}
 
Example 15
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 4 votes vote down vote up
@Deprecated
public float getMargin(){
  return WXUtils.getFloat(get(Constants.Name.MARGIN));
}
 
Example 16
Source File: WXStyle.java    From weex with Apache License 2.0 4 votes vote down vote up
public float getRight() {
  return WXUtils.getFloat(get(WXDomPropConstant.WX_POSITION_RIGHT));
}
 
Example 17
Source File: WXStyle.java    From ucar-weex-core with Apache License 2.0 4 votes vote down vote up
public float getMinWidth() {
  return WXUtils.getFloat(get(Constants.Name.MIN_WIDTH));
}
 
Example 18
Source File: WXStyle.java    From weex with Apache License 2.0 4 votes vote down vote up
public float getMaxHeight() {
  return WXUtils.getFloat(get(WXDomPropConstant.WX_MAXHEIGHT));
}
 
Example 19
Source File: WXStyle.java    From weex-uikit with MIT License 4 votes vote down vote up
public float getMaxHeight() {
  return WXUtils.getFloat(get(Constants.Name.MAX_HEIGHT));
}
 
Example 20
Source File: WXStyle.java    From weex-uikit with MIT License 4 votes vote down vote up
public float getMargin(){
  return WXUtils.getFloat(get(Constants.Name.MARGIN));
}