Class MatrixCellView
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.datamodel.cell.MatrixCellView
-
- Direct Known Subclasses:
MatrixCellView.EditableCellView
@OpenApiAll public class MatrixCellView extends java.lang.Object
Represents one cell element in the matrix
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
MatrixCellView.EditableCellView
Specific view implementation for displaying Editable empty cellprivate static class
MatrixCellView.ReadonlyCellView
Specific view implementation for displaying Read Only empty cell
-
Field Summary
Fields Modifier and Type Field Description private AbstractMatrixCell
cell
Matrix Cell which is representedstatic MatrixCellView
EMPTY_EDITABLE
Display empty but editable cellstatic MatrixCellView
EMPTY_READONLY
Display empty read-only cellprivate javax.swing.Icon
icon
Represents dependencies of the non-empty matrix cellprivate java.lang.String
mToolTipText
Cached tooltip text, that describes represented cellstatic MatrixCellView
NULL_CELL
Static value to represent null valued cell view
-
Constructor Summary
Constructors Constructor Description MatrixCellView(AbstractMatrixCell cell)
Creates new cell view
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractMatrixCell
getCell()
javax.swing.Icon
getIcon()
Returns representation icon for this celljava.lang.String
getToolTipText()
boolean
isEditable()
void
setToolTipText(java.lang.String text)
Sets tooltip text describing the content of the cell
-
-
-
Field Detail
-
cell
private final AbstractMatrixCell cell
Matrix Cell which is represented
-
mToolTipText
private java.lang.String mToolTipText
Cached tooltip text, that describes represented cell
-
icon
private javax.swing.Icon icon
Represents dependencies of the non-empty matrix cell
-
NULL_CELL
public static final MatrixCellView NULL_CELL
Static value to represent null valued cell view
-
EMPTY_EDITABLE
public static final MatrixCellView EMPTY_EDITABLE
Display empty but editable cell
-
EMPTY_READONLY
public static final MatrixCellView EMPTY_READONLY
Display empty read-only cell
-
-
Constructor Detail
-
MatrixCellView
public MatrixCellView(@CheckForNull AbstractMatrixCell cell)
Creates new cell view- Parameters:
cell
- matrix cell
-
-
Method Detail
-
getCell
@CheckForNull public AbstractMatrixCell getCell()
- Returns:
- matrix cell.
-
isEditable
public boolean isEditable()
- Returns:
- is cell editable
-
getIcon
@CheckForNull public javax.swing.Icon getIcon()
Returns representation icon for this cell- Returns:
- cell representation icon
-
getToolTipText
@CheckForNull public java.lang.String getToolTipText()
- Returns:
- tooltip text describing the content of the cell
-
setToolTipText
public void setToolTipText(@CheckForNull java.lang.String text)
Sets tooltip text describing the content of the cell
-
-