Big Day/Date
Big day/date clock in horology style
Description
Big date and date indicators under semi-transparent skeleton face.
Anatomy
Face with windows for big day and big date imdicators. Day indicator based on standard DayOfWeek hand type. Date indicator classically implemented using two custom hands, controlled manually with pair line of code. Three central hands for time.
XML Settings File
<?xml version="1.0" encoding="utf-8"?>
<TrueAnalogClock
face="big_day_date_face"
useSystemTime="true">
<hand
image="big_day_date_hand_day"
axisFacePoint="929:929"
axisPoint="856:856"
type="DayOfWeek"
underFace="true"/>
<hand
name="DateUnits"
image="big_day_date_hand_date_units"
axisFacePoint="1004:1438"
axisPoint="387:387"
shadow="true"
type="Custom"
underFace="true"
valueRange="10"/>
<hand
name="DateTens"
image="big_day_date_hand_date_tens"
axisFacePoint="773:1236"
axisPoint="179:179"
shadow="true"
type="Custom"
underFace="true"
valueRange="4"/>
<hand
image="big_day_date_hand_hour"
axisFacePoint="929:929"
axisPoint="51:557"
shadow="true"
type="Hour"/>
<hand
image="big_day_date_hand_minute"
axisFacePoint="929:929"
axisPoint="40:846"
shadow="true"
type="Minute"/>
<hand
image="big_day_date_hand_second"
axisFacePoint="929:929"
axisPoint="34:850"
shadow="true"
type="Second"/>
</TrueAnalogClock>
Manual code
The code finds custom hands by their names and sets the values.
int day = calendar.get(Calendar.DAY_OF_MONTH);
hands = clock.findHands("DateUnits");
for (Object item : hands) ((TrueAnalogClockHand) item).setValue(day % 10);
hands = clock.findHands("DateTens");
for (Object item : hands) ((TrueAnalogClockHand) item).setValue(day / 10);