Back to project page android-appwidget-cirrus.
The source code is released under:
MIT License
If you think the Android project android-appwidget-cirrus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Copyright 2014 Wayne D Grant (www.waynedgrant.com) Licensed under the MIT License */ //from w w w . ja v a 2 s .c o m package com.waynedgrant.cirrus.presentation.formatters; import com.waynedgrant.cirrus.measures.Trend; public class TrendFormatter { private Trend trend; public TrendFormatter(Trend trend) { this.trend = trend; } public String format() { String formatted = "-"; if (trend == Trend.RISING) { formatted = "\u279A"; } else if (trend == Trend.STEADY) { formatted = "\u279E"; } else if (trend == Trend.FALLING) { formatted = "\u2798"; } return formatted; } }