tico.interpreter
Class TInterpreterBoard
java.lang.Object
tico.interpreter.TInterpreterBoard
public class TInterpreterBoard
- extends java.lang.Object
A control that displays a communication board.
A TBoard
object doesn't actually contain your data; it simply
provides a view of the data. Like any non-trivial Swing
component, the board gets data by querying its data model.
TBoard
displays its data by drawing individual elements. Each
element displayed by the board contains exactly one item of data, which is
called a component.
- Version:
- 1.0 Nov 20, 2009
- Author:
- Isabel González y Carolina Palacio
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TInterpreterBoard
public TInterpreterBoard()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getWidth
public float getWidth()
setWidth
public void setWidth(float width)
getHeight
public float getHeight()
setHeight
public void setHeight(float height)
getSoundFile
public java.lang.String getSoundFile()
setSoundFile
public void setSoundFile(java.lang.String newSoundPath)
getImageFile
public java.lang.String getImageFile()
setImageFile
public void setImageFile(java.lang.String newImagePath)
getBackgroundColor
public java.awt.Color getBackgroundColor()
setBackgroundColor
public void setBackgroundColor(java.awt.Color backgroundColor)
getGradientColor
public java.awt.Color getGradientColor()
setGradientColor
public void setGradientColor(java.awt.Color gradientColor)
getImageResizeStyle
public int getImageResizeStyle()
setImageResizeStyle
public void setImageResizeStyle(int newImageResizeStyle)
getTextAreaByName
public TInterpreterTextArea getTextAreaByName(java.lang.String nameTextArea)
getCellByName
public TInterpreterCell getCellByName(java.lang.String nameCell)
getLineList
public java.util.ArrayList<TInterpreterLine> getLineList()
setLineList
public void setLineList(java.util.ArrayList<TInterpreterLine> newLineList)
getLabelList
public java.util.ArrayList<TInterpreterLabel> getLabelList()
setLabelList
public void setLabelList(java.util.ArrayList<TInterpreterLabel> newLabelList)
getRepaintOrderedComponents
public java.util.ArrayList<java.lang.Object> getRepaintOrderedComponents()
setRepaintOrderedComponents
public void setRepaintOrderedComponents(java.util.ArrayList<java.lang.Object> newObjectList)
getOvalList
public java.util.ArrayList<TInterpreterOval> getOvalList()
setOvalList
public void setOvalList(java.util.ArrayList<TInterpreterOval> newOvalList)
getRectangleList
public java.util.ArrayList<TInterpreterRectangle> getRectangleList()
setRectangleList
public void setRectangleList(java.util.ArrayList<TInterpreterRectangle> newRectangleList)
getRoundRectangleList
public java.util.ArrayList<TInterpreterRoundRectangle> getRoundRectangleList()
setRoundRectangleList
public void setRoundRectangleList(java.util.ArrayList<TInterpreterRoundRectangle> newRoundRectangleList)
getCellList
public java.util.ArrayList<TInterpreterCell> getCellList()
setCellList
public void setCellList(java.util.ArrayList<TInterpreterCell> newCellList)
getOrderedCellListNames
public java.util.ArrayList<java.lang.String> getOrderedCellListNames()
setOrderedCellListNames
public void setOrderedCellListNames(java.util.ArrayList<java.lang.String> newOrderedCellListNames)
isCellInOrderedCellList
public boolean isCellInOrderedCellList(java.lang.String idCell)
goToInitialState
public void goToInitialState()
paintBoard
public void paintBoard(javax.swing.JPanel interpreterArea,
boolean playBoardSound)
initializeArrays
public void initializeArrays()
insertLine
public void insertLine(TInterpreterLine line)
insertLabel
public void insertLabel(TInterpreterLabel label)
insertOval
public void insertOval(TInterpreterOval oval)
insertRectangle
public void insertRectangle(TInterpreterRectangle rectangle)
insertRoundRectangle
public void insertRoundRectangle(TInterpreterRoundRectangle roundRectangle)
insertCell
public void insertCell(TInterpreterCell cell)
insertTextarea
public void insertTextarea(TInterpreterTextArea textArea)
insertOrderedCellName
public void insertOrderedCellName(java.lang.String cellName)
insertComponent
public void insertComponent(java.lang.Object component)