|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
nl.tudelft.simulation.dsol.gui.panels.TablePanel
public class TablePanel
The tablePanel provides an easy to access table for the DSOL Framework
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TablePanel(int rows,
int columns)
Constructor for TablePanel. |
Method Summary | |
---|---|
void |
addColumn()
adds a column to the tablePanel |
void |
addRow()
adds a row to the tablePanel |
boolean |
contains(Component container)
contains this container |
void |
deleteColumn()
deletes a column from the tablePanel |
void |
deleteRow()
deletes a row from the contentpanel |
Component |
getCell(int row,
int column)
gets the container in a cell |
int |
getColumn(Point point)
returns the column of a point on the panel |
int |
getColumns()
returns the number of Columns |
int |
getRow(Point point)
returns the row of a specific point |
int |
getRows()
returns the number of rows |
void |
removeCell(int row,
int column)
removes the content of a cell |
void |
setCell(Component container,
int row,
int column)
Method setCell. |
void |
validate()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TablePanel(int rows, int columns)
columns
- the amount of columnsrows
- the amount of rowsMethod Detail |
---|
public void addRow()
public void addColumn()
public void deleteRow()
public void deleteColumn()
public int getRow(Point point)
point
- the xy-point
public int getColumn(Point point)
point
- the x-y point
public void setCell(Component container, int row, int column)
container
- the subject of the cellrow
- of the cellcolumn
- of the cellpublic boolean contains(Component container)
container
- contains the container..
public Component getCell(int row, int column)
row
- the rowcolumn
- the column
public void removeCell(int row, int column)
row
- the rowcolumn
- the columnpublic int getColumns()
public int getRows()
public void validate()
validate
in class Container
Component.validate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |