JScratch
Loading...
Searching...
No Matches
com.jscratch.ui.CostumeEditorPanel Class Reference
Inheritance diagram for com.jscratch.ui.CostumeEditorPanel:

Public Member Functions

 CostumeEditorPanel (List< String > costumePaths)

Private Member Functions

void refreshCostumeList ()
void updateCanvasLayout ()
void resizeImage (int newW, int newH)
void createNewCostume ()
void importCostume ()
void loadCostume (String path)
void saveCurrentImage ()

Private Attributes

BufferedImage currentImage
String currentCostumeName
Color currentColor = Color.BLACK
int brushSize = 5
String currentTool = "Brush"
double zoom = 1.0
JPanel canvas
DefaultListModel< String > listModel = new DefaultListModel<>()
JList< String > costumeList = new JList<>(listModel)
List< String > costumePaths
JSpinner widthSpinner
JSpinner heightSpinner

Detailed Description

Definition at line 15 of file CostumeEditorPanel.java.

Constructor & Destructor Documentation

◆ CostumeEditorPanel()

com.jscratch.ui.CostumeEditorPanel.CostumeEditorPanel ( List< String > costumePaths)

Definition at line 30 of file CostumeEditorPanel.java.

Member Function Documentation

◆ createNewCostume()

void com.jscratch.ui.CostumeEditorPanel.createNewCostume ( )
private

Definition at line 216 of file CostumeEditorPanel.java.

◆ importCostume()

void com.jscratch.ui.CostumeEditorPanel.importCostume ( )
private

Definition at line 224 of file CostumeEditorPanel.java.

◆ loadCostume()

void com.jscratch.ui.CostumeEditorPanel.loadCostume ( String path)
private

Definition at line 240 of file CostumeEditorPanel.java.

◆ refreshCostumeList()

void com.jscratch.ui.CostumeEditorPanel.refreshCostumeList ( )
private

Definition at line 177 of file CostumeEditorPanel.java.

◆ resizeImage()

void com.jscratch.ui.CostumeEditorPanel.resizeImage ( int newW,
int newH )
private

Definition at line 206 of file CostumeEditorPanel.java.

◆ saveCurrentImage()

void com.jscratch.ui.CostumeEditorPanel.saveCurrentImage ( )
private

Definition at line 255 of file CostumeEditorPanel.java.

◆ updateCanvasLayout()

void com.jscratch.ui.CostumeEditorPanel.updateCanvasLayout ( )
private

Definition at line 198 of file CostumeEditorPanel.java.

Member Data Documentation

◆ brushSize

int com.jscratch.ui.CostumeEditorPanel.brushSize = 5
private

Definition at line 19 of file CostumeEditorPanel.java.

◆ canvas

JPanel com.jscratch.ui.CostumeEditorPanel.canvas
private

Definition at line 23 of file CostumeEditorPanel.java.

◆ costumeList

JList<String> com.jscratch.ui.CostumeEditorPanel.costumeList = new JList<>(listModel)
private

Definition at line 25 of file CostumeEditorPanel.java.

◆ costumePaths

List<String> com.jscratch.ui.CostumeEditorPanel.costumePaths
private

Definition at line 26 of file CostumeEditorPanel.java.

◆ currentColor

Color com.jscratch.ui.CostumeEditorPanel.currentColor = Color.BLACK
private

Definition at line 18 of file CostumeEditorPanel.java.

◆ currentCostumeName

String com.jscratch.ui.CostumeEditorPanel.currentCostumeName
private

Definition at line 17 of file CostumeEditorPanel.java.

◆ currentImage

BufferedImage com.jscratch.ui.CostumeEditorPanel.currentImage
private

Definition at line 16 of file CostumeEditorPanel.java.

◆ currentTool

String com.jscratch.ui.CostumeEditorPanel.currentTool = "Brush"
private

Definition at line 20 of file CostumeEditorPanel.java.

◆ heightSpinner

JSpinner com.jscratch.ui.CostumeEditorPanel.heightSpinner
private

Definition at line 28 of file CostumeEditorPanel.java.

◆ listModel

DefaultListModel<String> com.jscratch.ui.CostumeEditorPanel.listModel = new DefaultListModel<>()
private

Definition at line 24 of file CostumeEditorPanel.java.

◆ widthSpinner

JSpinner com.jscratch.ui.CostumeEditorPanel.widthSpinner
private

Definition at line 28 of file CostumeEditorPanel.java.

◆ zoom

double com.jscratch.ui.CostumeEditorPanel.zoom = 1.0
private

Definition at line 21 of file CostumeEditorPanel.java.


The documentation for this class was generated from the following file: