DanielBullimore / OOmutiny

OO Javascript frontend
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

0.1.1.1 View #22

Closed DanielBullimore closed 4 years ago

DanielBullimore commented 5 years ago

Priority: [Unset]

Depends:

Description:

A view inherits from Region thus is a defined dimension of the gui with or without border and or back fill. A view however can store a list of instructions by which to draw a defined figure within its region. Those defined draw instructions implement a Json data structure coined Ports (OoPort). This class can download a port or accept one pragmatically generated on the client.

UML:

OoView-06-09-2019

Properties:

objWebRequest - Private OoWebRequest, instance of web request for downloading ports. Decleared automatically at initialization.
objViewPort - Protected OoPort instances, refference to currently viewed port.

Methods:

funDownloadPort() - public function, takes strPortUrl downloads port at that url sets objViewPort and draws it in this view.
funSetPort() - public function, takes OoPort instance as objDrawInstructions and sets objViewPort then draws the port.
funClearView - public function clears the region canvas.
funRender - public function, draws the OoView object on gui and draws port if set.
DanielBullimore commented 5 years ago

removed funDrawPort because set port can draw the port or call fun render. Either way draw ports looks redundant

OoView-06-09-2019

DanielBullimore commented 4 years ago

sanity checking finds:

funSetPort() - public function, takes OoPort instance as objDrawInstructions and sets objViewPort then draws the downloaded port.

The port is not downloaded in this use case, word downloaded omitted from description.

Sanity check passed