格式化时间戳为制定的style
@param style
@param unixtime
@return
966705
public static String formatUnixTime(String style, BigInteger unixtime){
		SimpleDateFormat sdf = new SimpleDateFormat(style);
		return sdf.format(unixtime);
	}
136956
private int getStyleKey(Map<String, Object> style, BandElement bandElement) {  
    	final int prime = 31;
    	int hashCode = getFontKey(style);   	
    	if (style.containsKey(StyleFormatConstants.BACKGROUND_COLOR)) {    		
            Color val = (Color) style.get(StyleFormatConstants.BACKGROUND_COLOR);
            hashCode = prime*hashCode + val.hashCode() * 3;
        }
        if (style.containsKey(StyleFormatConstants.HORIZONTAL_ALIGN_KEY)) {        	
            String val = (String) style.get(StyleFormatConstants.HORIZONTAL_ALIGN_KEY);
            hashCode = prime*hashCode +  + val.hashCode();
        }
        if (style.containsKey(StyleFormatConstants.VERTICAL_ALIGN_KEY)) {        
        	String val = (String) style.get(StyleFormatConstants.VERTICAL_ALIGN_KEY);
            hashCode = prime*hashCode + val.hashCode();
        }
        if (style.containsKey(StyleFormatConstants.BORDER_LEFT)) {        	
        	Float val = (Float) style.get(StyleFormatConstants.BORDER_LEFT) * 23;
        	hashCode = prime*hashCode + val.hashCode();
        }
        if (style.containsKey(StyleFormatConstants.BORDER_RIGHT)) {        
        	Float val = (Float) style.get(StyleFormatConstants.BORDER_RIGHT) * 29;
        	hashCode = prime*hashCode + val.hashCode();
        }
        if (style.containsKey(StyleFormatConstants.BORDER_TOP)) {        	
        	Float val = (Float) style.get(StyleFormatConstants.BORDER_TOP) * 31;
        	hashCode = prime*hashCode + val.hashCode();
        }
        if (style.containsKey(StyleFormatConstants.BORDER_BOTTOM)) {        	
        	Float val = (Float) style.get(StyleFormatConstants.BORDER_BOTTOM) * 37;
        	hashCode = prime*hashCode + val.hashCode();
        }        
        if (style.containsKey(StyleFormatConstants.BORDER_LEFT_COLOR)) {        	
        	Color val = (Color) style.get(StyleFormatConstants.BORDER_LEFT_COLOR);
        	hashCode = prime*hashCode + val.hashCode() * 5;
        }
        if (style.containsKey(StyleFormatConstants.BORDER_RIGHT_COLOR)) {        	
        	Color val = (Color) style.get(StyleFormatConstants.BORDER_RIGHT_COLOR);
        	hashCode = prime*hashCode + val.hashCode() * 7;
        }
        if (style.containsKey(StyleFormatConstants.BORDER_TOP_COLOR)) {        
        	Color val = (Color) style.get(StyleFormatConstants.BORDER_TOP_COLOR);
        	hashCode = prime*hashCode +  val.hashCode() * 11;
        }
        if (style.containsKey(StyleFormatConstants.BORDER_BOTTOM_COLOR)) {        	
        	Color val = (Color) style.get(StyleFormatConstants.BORDER_BOTTOM_COLOR);
        	hashCode = prime*hashCode + val.hashCode() * 13;
        }
        if (style.containsKey(StyleFormatConstants.PATTERN)) {        	
        	String val = (String) style.get(StyleFormatConstants.PATTERN);        	
        	hashCode = prime*hashCode + val.hashCode() * 17;
        }
        
        if (bandElement != null) {
        	hashCode = prime*hashCode + bandElement.hashCode();
        }	
        return hashCode;
    }
812041
public FontData deriveFont(float size, int style) {
		FontData original = getStyled(getFamilyName(), style);
		FontData data = new FontData();
		data.size = size;
		data.javaFont = original.javaFont.deriveFont(style, size);
		data.upem = upem;
		data.ansiKerning = ansiKerning;
		data.charWidth = charWidth;
		
		return data;
	}
1347518
private static int selectStyle(char ch) {
        switch (ch) {
        case 'S':
            return SHORT;
        case 'M':
            return MEDIUM;
        case 'L':
            return LONG;
        case 'F':
            return FULL;
        case '-':
            return NONE;
        default:
            throw new IllegalArgumentException("Invalid style character: " + ch);
        }
    }
858832
public final static DateFormat getDateInstance(int style)
    {
        return get(0, style, 2, Locale.getDefault(Locale.Category.FORMAT));
    }
455296
public String asText(DateStyle dateStyle) {
		DateStyle prevStyle = this.style;
		
		checkNotNull(dateStyle).setLocale(prevStyle.locale());
		dateStyle.setFormatSymbols(prevStyle.formatSymbols());
		String dayText = with(dateStyle).asText();
		with(prevStyle);
		return dayText;
	}
1048353
public static String getCurrentStyle(Element element, Style style) {

        return getStyleImpl().getCurrentStyle(element, style.toString());
    }
1221536
public static String format(final LocalTime self, FormatStyle timeStyle) {
        return self.format(DateTimeFormatter.ofLocalizedTime(timeStyle));
    }
473200
public TextFormat withFont(String name, Font.Style style, float size) {
    return withFont(new Font(name, style, size));
  }
1024863
F getDateInstance(final int dateStyle, final TimeZone timeZone, final Locale locale) {
		return getDateTimeInstance(Integer.valueOf(dateStyle), null, timeZone, locale);
	}
66347
public static int getStyleValue(String style) {
		int s = 0;
		if (style.indexOf(Markup.CSS_VALUE_NORMAL) != -1) {
			s |= NORMAL;
		}
		if (style.indexOf(Markup.CSS_VALUE_BOLD) != -1) {
			s |= BOLD;
		}
		if (style.indexOf(Markup.CSS_VALUE_ITALIC) != -1) {
			s |= ITALIC;
		}
		if (style.indexOf(Markup.CSS_VALUE_OBLIQUE) != -1) {
			s |= ITALIC;
		}
		if (style.indexOf(Markup.CSS_VALUE_UNDERLINE) != -1) {
			s |= UNDERLINE;
		}
		if (style.indexOf(Markup.CSS_VALUE_LINETHROUGH) != -1) {
			s |= STRIKETHRU;
		}
		return s;
	}
142244
public static boolean setStyle(PolylineOptions polylineOptions, StyleRow style, float density) {

        if (style != null) {

            Color color = style.getColorOrDefault();
            polylineOptions.color(color.getColorWithAlpha());

            double width = style.getWidthOrDefault();
            polylineOptions.width((float) width * density);

        }

        return style != null;
    }
916342
public final String getStyleProperty(StyleName styleName) {
        return styleProps!=null ? styleProps.get(styleName) : null;
    }
807500
function getStyle(jqCur, jqContainer) {
    var curDom = $(jqCur, jqContainer)[0];

    if (!curDom) {
        return {
            isExist: false
        };
    }

    var computedStyle = document.defaultView.getComputedStyle(curDom);

    return {
        isExist: true,
        width: computedStyle.width,
        height: computedStyle.height,
        lineHeight: computedStyle.lineHeight,
        // 判断是否是一行文字，注意此处即使是一行，height和lineHeight可能不是绝对相等，比如前者是 24.14px，而后者可能为 24.13px，但相差不大
        isOneLine: parseInt(computedStyle.height) === parseInt(computedStyle.lineHeight),
        computedStyle: computedStyle
    };
}
360614
public static String decode(Style style) {
		if (style != null) {
			if (style instanceof ShapeStyle) {
				return decode((ShapeStyle) style);
			} else if (style instanceof FontStyle) {
				return decode((FontStyle) style);
			} else if (style instanceof PictureStyle) {
				return decode((PictureStyle) style);
			}
		}
		return "";
	}
170836
static String extractStyle(String style, String attribute) {
		if (style == null) {
			return "";
		}
		
		StringTokenizer tokens = new StringTokenizer(style,";");
		
		while (tokens.hasMoreTokens()) {
			String token = tokens.nextToken();
			String key = token.substring(0,token.indexOf(':'));
			if (key.equals(attribute)) {
				return token.substring(token.indexOf(':')+1);
			}
		}
		
		return "";
	}
310582
public static boolean setStyle(MarkerOptions markerOptions, StyleRow style) {

        boolean styleSet = false;

        if (style != null) {
            Color color = style.getColorOrDefault();
            float hue = color.getHue();
            markerOptions.icon(BitmapDescriptorFactory.defaultMarker(hue));
            styleSet = true;
        }

        return styleSet;
    }