Object Oriented Design CS5004

In this assignment you will work on two views for your Shapes Photo Album application - an interactive "Graphical" view and a static "Web" view. Yes, we know: both views are graphical in one sense of the word, but for this assignment we are distinguishing between a (nearly) native interactive graphical application from a static web page using html markup and SVG.
iuww520iuww520iuww520iuww520iuww520iuww520iuww520iuww520
As with the model, in the abstract sense, a view is an interface; particular concrete views implement that interface. Accordingly, your work in this assignment should carefully distinguish between any one particular implementation of a view and the common interface to which they should all adhere. (Side note: if your model from the previous assignment failed to have a similar interface/implementation split, you should fix that also).
Note: both the Web view (SVG) and the Graphical view (Swing) use a coordinate system that stipulates the origin is in the upper left corner of the "frame"/window. The command input files we provide (more info below) default to this coordinate system. If you prefer to use your own coordinate origin (e.g. 0,0 in the center of the screen like Python Turtle) you'll need to write your own code to do the coordinate transformation.
View interface(s)
Start by planning your views, and observing which operations you need. Although different views look and behave differently, there are some common aspects to all views.
The design of the actual interface(s) is left up to you. A common design technique is to have a view interface that has all functionalities and then individual views suppress or provide defaults for functionalities they do not implement. Another relevant design rule is from the SOLID principles: Interface Segregation (No client should be forced to depend on methods that it does not use). Think about these aspects as you come up with a design for your views.
Both views support the concept of displaying "snapshots" with the unique identifier and optional descriptive text that is included with those snapshots.
1 Graphical View
In this view, you will draw the photo album snapshots inside of a window, one snapshot at a time. You must have interactive buttons that allow the user to:
• View the snapshot information (unique id and description)
• "page forward" and show the next snapshot if it exists. If no further snapshots exist, a message to the user should indicate that
• "page backward" and show the previous snapshot, if there is a previous one, If there is no "previous" a message to the user should be shown
• "jump" to a snapshot the user explicitly selects from a list of options An example is below. You are free to be creative in your placement of UI elements as long as you provide equivalent functionality (e.g. perhaps your navigation buttons are graphical and placed on the left hand side of the window)

相关推荐
我命由我123452 分钟前
Kotlin 极简小抄 P3(函数、函数赋值给变量)
android·开发语言·java-ee·kotlin·android studio·学习方法·android-studio
半夏知半秋3 分钟前
R语言中的shiny框架
开发语言·笔记·学习·r语言
科研小白_d.s21 分钟前
php环境搭建教程
开发语言·php
工程师老罗23 分钟前
Java笔试面试题AI答之设计模式(5)
java·开发语言·设计模式
CopyLower26 分钟前
如何确保消息只被消费一次:Java实现详解
java·开发语言
蜜桃小阿雯34 分钟前
JAVA开源项目 甘肃非物质文化网站 计算机毕业设计
java·开发语言·spring boot·spring cloud·java-ee·开源
feng68_35 分钟前
Java的格式化输出
java·开发语言
一只经常emo的程序员39 分钟前
JAVA的函数式接口是啥?
java·开发语言·spring·kafka·eclipse·系统架构·tomcat
国中之林1 小时前
【C++ Primer Plus习题】17.1
开发语言·c++·学习·刷题
weixin_531804241 小时前
请解释Java中的内存模型及其与并发编程的关系。什么是Java中的CAS操作?它如何保证原子性?
java·开发语言·数据库