dimanche 27 décembre 2015

Connector design pattern?

I want to connect several classes which are functioning separately but are related.

Lets say I am writing an app in which you can swipe to draw a chart. There are lots of classes in the app which are related and should be connected.

For example three of the classes are:

Swiper - responsible for interpreting the gesture of the user

Points - responsible for handling the points on the chart

ChartDrawer - responsible for drawing the chart on the screen

I want to know is there any design pattern such as a connector which can handle the relation and communication of these classes? Any way i can redesign in a better way or make mind more object oriented?

Sorry if too broad...

Aucun commentaire:

Enregistrer un commentaire