| |
---|
| | this.createdDate = date.format(dateTimeFormatter); |
---|
| | this.isPublic = false; |
---|
| | this.owner = owner; |
---|
| | this.editors.add(new Editor(owner, true)); |
---|
| | this.pageMap.put(0, new Page()); |
---|
| | this.pages.add(this.pageMap.get(0)); |
---|
| | this.pageMap.put(0, new Page(1)); |
---|
| | this.lastUpdate = date.format(dateTimeFormatter); |
---|
| | } |
---|
| | |
---|
| | public Animation(Account account) { |
---|
| |
---|
| | } |
---|
| | |
---|
| | //private Gallery gallery = Gallery.getInstance(); |
---|
| | //private Accounts accounts = Accounts.getInstance(); |
---|
| | |
---|
| | // page情報 |
---|
| | private ArrayList<Page> pages = new ArrayList<>(); |
---|
| | |
---|
| | public ArrayList<Page> getPages() { |
---|
| | return (this.pages); |
---|
| | } |
---|
| | |
---|
| | //----------------------------------------------------------------- |
---|
| | // setter |
---|
| | |
---|
| |
---|
| | } |
---|
| | |
---|
| | public String getLastUpdate() { |
---|
| | return lastUpdate; |
---|
| | } |
---|
| | |
---|
| | public HashMap<Integer, Page> getPageMap() { |
---|
| | return pageMap; |
---|
| | } |
---|
| | |
---|
| | //----------------------------------------------------------------- |
---|
| | // remover |
---|
| |
---|
| | this.name = "dummyAnimation"; |
---|
| | this.isPublic = false; |
---|
| | this.owner = ownerAccount; |
---|
| | this.editors.add(new Editor(owner, true)); |
---|
| | this.pageMap.put(0, new Page()); |
---|
| | this.pageMap.put(0, new Page(1)); |
---|
| | |
---|
| | LocalDateTime date = LocalDateTime.now(); |
---|
| | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"); |
---|
| | this.createdDate = date.format(dateTimeFormatter); |
---|
| |
---|
| | |
---|
| | |
---|
| | //this.lastAccess = LocalDateTime.of(2015, 12, 15, 0, 0); |
---|
| | |
---|
| | // pageとlayerを1枚ずつ追加 |
---|
| | this.pages.add(this.pageMap.get(0)); |
---|
| | |
---|
| | var newWork = new Work(); //ユーザーの制作作品の作成 |
---|
| | |
---|
| | newWork.setWork(); |
---|
| | newWork.setAnimation(this); |
---|
| |
---|
| | |