public abstract class Component extends Object
Modifier and Type | Field and Description |
---|---|
protected Dimension |
myDim |
protected TerminalOutput |
myIO |
protected String |
myName |
protected Point |
myPosition |
Constructor and Description |
---|
Component(TerminalOutput io,
String name) |
Modifier and Type | Method and Description |
---|---|
abstract void |
draw() |
Dimension |
getDimension() |
Point |
getLocation() |
String |
getName() |
protected void |
setDimension(Dimension dim) |
void |
setLocation(int col,
int row) |
void |
setLocation(Point pos) |
protected String myName
protected TerminalOutput myIO
protected Point myPosition
protected Dimension myDim
public Component(TerminalOutput io, String name)
public abstract void draw() throws IOException
IOException
public String getName()
public Point getLocation()
public void setLocation(Point pos)
public void setLocation(int col, int row)
public Dimension getDimension()
protected void setDimension(Dimension dim)
Copyright © 2024. All rights reserved.