Package me.araopj.cscreen.components
Class Box
- java.lang.Object
-
- me.araopj.cscreen.components.Box
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidplace(Screen sc)Places the box on the provided screen.voidsetHeight(int height)Overrides the `setHeight` method from the `Resizable` interface.voidsetWidth(int width)Overrides the `setWidth` method from the `Resizable` interface.
-
-
-
Field Detail
-
width
protected int width
-
height
protected int height
-
r
protected int r
-
c
protected int c
-
charSets
protected CharSets charSets
-
-
Constructor Detail
-
Box
public Box(int r, int c, int width, int height)Constructs a `Box` with specified parameters.- Parameters:
r- The row position of the box.c- The column position of the box.width- The width of the box.height- The height of the box.
-
Box
public Box(int r, int c)Constructs a `Box` with specified row and column positions.- Parameters:
r- The row position of the box.c- The column position of the box.
-
-
Method Detail
-
setWidth
public void setWidth(int width)
Overrides the `setWidth` method from the `Resizable` interface.
-
setHeight
public void setHeight(int height)
Overrides the `setHeight` method from the `Resizable` interface.
-
place
public void place(Screen sc)
Places the box on the provided screen.- Parameters:
sc- The `Screen` object on which the box is placed.
-
-