Created
February 13, 2012 02:21
-
-
Save anaisbetts/1812814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Info { | |
| // instance variables | |
| String brandName; | |
| String shirtSize; | |
| String cut; | |
| String date; | |
| PImage musicImg; | |
| PImage fromImg; | |
| PImage photoImg; | |
| PImage materialImg; | |
| // constructor | |
| Info(String brandName_, String shirtSize_, String cut_, String date_, String musicImg_, String fromImg_, String photoImg_, String materialImg_) { | |
| brandName = brandName_; | |
| shirtSize = shirtSize_; | |
| musicImg = loadUrl(musicImg_, "png"); | |
| fromImg = loadUrl(fromImg_, "png"); | |
| photoImg = loadUrl(photoImg_, "png"); | |
| materialImg = loadUrl(materialImg_, "png"); | |
| cut = cut_; | |
| date = date_; | |
| } | |
| void display(float offsetX, float offsetY, Boolean isSelected) { | |
| if (isSelected == true) { | |
| drawImagesInCorners(offsetX, offsetY); | |
| } | |
| } | |
| void drawImagesInCorners(float offsetX, float offsetY) { | |
| // TODO: Draw the images in the four corners | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment