You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

196 lines
5.5 KiB

@startuml
class cc.liuyx.note.activity.UserSettingsActivity {
- Switch nightMode
- Switch reverseSort
- LinearLayout fabColor
- LinearLayout fabPlanColor
- Switch noteTitle
- SharedPreferences sharedPreferences
- {static} boolean night_change
# void onCreate(Bundle)
# void needRefresh()
- void initView()
# void onActivityResult(int,int,Intent)
- void setSelfNightMode()
- void setNightModePref(boolean)
+ boolean onKeyDown(int,KeyEvent)
}
class cc.liuyx.note.activity.UserSettingsActivity$EditAlarmActivity {
- DatePickerDialog.OnDateSetListener dateSetListener
- TimePickerDialog.OnTimeSetListener timeSetListener
- EditText et_title
- EditText et
- Button set_date
- Button set_time
- TextView date
- TextView time
- Plan plan
- int[] dateArray
- int[] timeArray
- int openMode
- String old_title
- String old_content
- String old_time
- long id
- boolean timeChange
# void onCreate(Bundle)
+ boolean onKeyDown(int,KeyEvent)
+ boolean onCreateOptionsMenu(Menu)
+ boolean onOptionsItemSelected(MenuItem)
# void needRefresh()
- void init()
- void setDateTV(int,int,int)
- void setTimeTV(int,int)
+ void onClick(View)
- void isTimeChange()
- boolean canBeSet()
}
class cc.liuyx.note.activity.FabColorActivity {
- Toolbar myToolbar
- int openMode
- SharedPreferences sharedPreferences
- ImageView q
# void onCreate(Bundle)
- void initImageView()
- void chooseCurFabColor(int)
- void setClick()
+ void onClick(View)
+ boolean onKeyDown(int,KeyEvent)
}
class cc.liuyx.note.activity.EditActivity {
- NoteDatabase dbHelper
- Context context
- EditText et
- String old_content
- String old_time
- int old_Tag
- long id
- int openMode
- int tag
- boolean tagChange
# void onCreate(Bundle)
# void needRefresh()
+ boolean onCreateOptionsMenu(Menu)
+ boolean onKeyDown(int,KeyEvent)
+ boolean onOptionsItemSelected(MenuItem)
+ String dateToStr()
- void deleteNote(Intent)
}
class cc.liuyx.note.activity.AboutActivity {
# void onCreate(Bundle)
# void needRefresh()
}
class cc.liuyx.note.activity.MainActivity {
- NoteDatabase dbHelper
- PlanDatabase planDbHelper
- FloatingActionButton fab
- FloatingActionButton fab_alarm
- ListView lv
- ListView lv_plan
- LinearLayout lv_layout
- LinearLayout lv_plan_layout
- Context context
- NoteAdapter adapter
- PlanAdapter planAdapter
- List<Note> noteList
- List<Plan> planList
- TextView mEmptyView
- Toolbar myToolbar
- PopupWindow popupWindow
- PopupWindow popupCover
- LayoutInflater layoutInflater
- RelativeLayout main
- ViewGroup customView
- ViewGroup coverView
- WindowManager wm
- DisplayMetrics metrics
- TagAdapter tagAdapter
- TextView setting_text
- ImageView setting_image
- TextView about_text
- ImageView about_image
- ListView lv_tag
- TextView add_tag
- BroadcastReceiver myReceiver
- Achievement achievement
- SharedPreferences sharedPreferences
- Switch content_switch
- AlarmManager alarmManager
~ String[] list_String
# void onCreate(Bundle)
- void showPopUpWindow()
- void refreshTagList()
- void resetTagsX(AdapterView<?>)
# void needRefresh()
+ void initView()
- void refreshLvVisibility()
+ void initPopupView()
- void initPrefs()
+ boolean onCreateOptionsMenu(Menu)
+ boolean onOptionsItemSelected(MenuItem)
+ void refreshListView()
- void chooseFabColor(int)
- void chooseFabPlanColor(int)
+ void onItemClick(AdapterView<?>,View,int,long)
# void onActivityResult(int,int,Intent)
+ boolean onItemLongClick(AdapterView<?>,View,int,long)
+ void sortNotes(List<Note>,int)
+ void sortPlans(List<Plan>,int)
+ long dateStrToSec(String)
+ List<Integer> numOfTagNotes(List<String>)
+ int npLong(Long)
+ void onDestroy()
- void startAlarm(Plan)
- void startAlarms(List<Plan>)
- void cancelAlarm(Plan)
- void cancelAlarms(List<Plan>)
+ void onResume()
}
class cc.liuyx.note.activity.MainActivity$Achievement {
- SharedPreferences sharedPreferences
- int noteNumber
- int wordNumber
- int noteLevel
- int wordLevel
- void getPref()
- void initPref()
- void addCurrent(List<Note>)
+ void addNote(String)
+ void deleteNote()
+ void editNote(String,String)
+ void noteNumberAchievement(int)
+ void wordNumberAchievement(int)
+ void announcement(String,int,int)
+ String annoucementTitle(int,int)
+ void setState(int)
+ void listen()
+ void resetAll()
}
abstract class cc.liuyx.note.activity.BaseActivity {
+ String TAG
+ String ACTION
# BroadcastReceiver receiver
# IntentFilter filter
# void onCreate(Bundle)
+ boolean isNightMode()
+ void setNightMode()
# {abstract}void needRefresh()
+ void onDestroy()
+ long calStrToSec(String)
}
cc.liuyx.note.activity.BaseActivity <|-- cc.liuyx.note.activity.UserSettingsActivity
cc.liuyx.note.activity.UserSettingsActivity +.. cc.liuyx.note.activity.UserSettingsActivity$EditAlarmActivity
cc.liuyx.note.activity.OnClickListener <|.. cc.liuyx.note.activity.UserSettingsActivity$EditAlarmActivity
cc.liuyx.note.activity.BaseActivity <|-- cc.liuyx.note.activity.UserSettingsActivity$EditAlarmActivity
cc.liuyx.note.activity.OnClickListener <|.. cc.liuyx.note.activity.FabColorActivity
android.support.v7.app.AppCompatActivity <|-- cc.liuyx.note.activity.FabColorActivity
cc.liuyx.note.activity.BaseActivity <|-- cc.liuyx.note.activity.EditActivity
cc.liuyx.note.activity.BaseActivity <|-- cc.liuyx.note.activity.AboutActivity
android.widget.AdapterView.OnItemClickListener <|.. cc.liuyx.note.activity.MainActivity
android.widget.AdapterView.OnItemLongClickListener <|.. cc.liuyx.note.activity.MainActivity
cc.liuyx.note.activity.BaseActivity <|-- cc.liuyx.note.activity.MainActivity
cc.liuyx.note.activity.MainActivity +.. cc.liuyx.note.activity.MainActivity$Achievement
android.support.v7.app.AppCompatActivity <|-- cc.liuyx.note.activity.BaseActivity
@enduml