[x] How to Change the Focus Style(will need Edit interface for UML object attachment)
class UMLObjectsView extends FociView{
...
class {some umlObj} extends UMLObjects {
focus(){
super.focusBounds()
// or
super.focusLine()
}
}
// FociController
static focus(){
if(!Focus.umlObj.isFocused){
Focus.umlObj.isFocused = true;
Focus.focusG.innerHTML = Focus.umlObj.focus(); # this is the important point. This mean focus is depends on umlObj that Inherited FociView
document.activeElement.blur()
}
}
[x] What type, and how many interfaces need to Use Focusing UML Object
//for now, Editable, Shortcuttable, Focusable is needed
interface Editable {
showEditMenu() // shows edit menu in window as SVG or HTML
}
interface Shortcuttale {
shortcuts() // list of shortcuts with "if" statement.
}
interface Focusable {
focus()
unfocus()
}
Considerations
[x] How to Change the Focus Style(will need Edit interface for UML object attachment)
interface Editable { showEditMenu() // shows edit menu in window as SVG or HTML }
interface Shortcuttale { shortcuts() // list of shortcuts with "if" statement. } interface Focusable { focus() unfocus() }