aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/layout/BlockLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/layout/BlockLayout.java')
-rw-r--r--src/main/model/layout/BlockLayout.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/model/layout/BlockLayout.java b/src/main/model/layout/BlockLayout.java
index c2ec40d..7f59dc6 100644
--- a/src/main/model/layout/BlockLayout.java
+++ b/src/main/model/layout/BlockLayout.java
@@ -4,12 +4,17 @@ import model.html.Node;
import java.awt.*;
+// A block style layout.
public class BlockLayout extends Layout {
+ // MODIFIES: this
+ // EFFECTS: constructs a new BlockLayout
public BlockLayout(Node node, Layout parent) {
super(node, parent);
}
+ // MODIFIES: this
+ // EFFECTS: recursively constructs the layout tree
public void layout() {
this.setLocation(this.getParent().getLocation());
this.getPreviousSibling().ifPresent(