Skip to content
Open

Lab3 #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
408 changes: 0 additions & 408 deletions lab-01/README.md

This file was deleted.

43 changes: 0 additions & 43 deletions lab-02/README.md

This file was deleted.

8 changes: 8 additions & 0 deletions lab-03/paint/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lab-03/paint/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions lab-03/paint/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions lab-03/paint/.idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lab-03/paint/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added lab-03/paint/out/production/paint/App.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lab-03/paint/out/production/paint/Constants.class
Binary file not shown.
Binary file added lab-03/paint/out/production/paint/Drawer.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lab-03/paint/out/production/paint/View.class
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions lab-03/paint/paint.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="javafx-sdk-19" level="application" />
<orderEntry type="library" name="lib" level="application" />
</component>
</module>
5 changes: 5 additions & 0 deletions lab-03/paint/src/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public class App {
public static void main(String[] args) {
View.launch();
}
}
21 changes: 21 additions & 0 deletions lab-03/paint/src/ColorsDecoder.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import javafx.scene.paint.Color;
import java.util.Objects;

public class ColorsDecoder {
static public Color Decode(String color) {
if (Objects.equals(color, "black")) {
return Color.BLACK;
} else if (Objects.equals(color, "blue")) {
return Color.BLUE;
} else if (Objects.equals(color, "red")) {
return Color.RED;
} else if (Objects.equals(color, "yellow")) {
return Color.YELLOW;
} else if (Objects.equals(color, "green")) {
return Color.GREEN;
} else if (Objects.equals(color, "white")) {
return Color.WHITE;
}
return null;
}
}
27 changes: 27 additions & 0 deletions lab-03/paint/src/Constants.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
public class Constants {
public static enum Tool {
brush,
circle,
curve,
line,
pencil,
rectangle,
rub,
spray,
text
}

public static enum FigureFills {
NO,
EQUAL,
NOT_EQUAL
}

public static final double smallSize = 1;
public static final double middleSize = 3;
public static final double hugeSize = 5;
public static final double windowWidth = 1200;
public static final double windowHeight = 800;
public static final double paintingAreaWidth = 1000;
public static final double paintingAreaHeight = 800;
}
Loading