Minor style formatting.

Fixed a switch statement formatting to conform with Bisq code style.
This commit is contained in:
Deus Max 2020-10-31 14:48:18 +02:00
parent 162c119285
commit 24784cb22d
No known key found for this signature in database
GPG key ID: 99EFAE1719A26B0F

View file

@ -486,15 +486,19 @@ public class TradesChartsView extends ActivatableViewAndModel<VBox, TradesCharts
long time = model.getTimeFromTickIndex(index); long time = model.getTimeFromTickIndex(index);
String fmt = ""; String fmt = "";
switch (model.tickUnit) { switch (model.tickUnit) {
case YEAR : fmt = "yyyy"; case YEAR:
fmt = "yyyy";
break; break;
case MONTH : fmt = "MMMyy"; case MONTH:
fmt = "MMMyy";
break; break;
case WEEK : case WEEK:
case DAY : fmt = "dd/MMM\nyyyy"; case DAY:
fmt = "dd/MMM\nyyyy";
break; break;
case HOUR : case HOUR :
case MINUTE_10: fmt = "HH:mm\ndd/MMM"; case MINUTE_10:
fmt = "HH:mm\ndd/MMM";
break; break;
default: // nothing here default: // nothing here
} }