|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.diff.DiffTableStyleProvider
public class DiffTableStyleProvider
The style provider class to display table difference.
Field Summary | |
---|---|
protected CellStyle |
CELL_STYLE
The shared CELL_STYLE instance in use. |
Constructor Summary | |
---|---|
DiffTableStyleProvider()
|
|
DiffTableStyleProvider(TableDiffPane diffPane,
int index)
Constructor with a diff pane. |
Method Summary | |
---|---|
void |
addChangedCellHighlight(int row,
int column)
Adds a changed cell highlight. |
void |
addChangedHighlight(int start,
int end)
Adds changed rows highlight. |
void |
addConflictedCellHighlight(int row,
int column)
Adds a conflicted cell highlight. |
void |
addConflictHighlight(int start,
int end)
Adds conflicted rows highlight. |
void |
addDeletedCellHighlight(int row,
int column)
Adds a deleted cell highlight. |
void |
addDeletedHighlight(int start,
int end)
Adds deleted rows highlight. |
void |
addInsertedCellHighlight(int row,
int column)
Adds an inserted cell highlight. |
void |
addInsertedHighlight(int start,
int end)
Adds inserted rows highlight. |
void |
addPositionHighlight(int row)
Adds a position highlight. |
void |
clearAllHighlights()
Clears all highlights. |
protected int |
getCellStyle(int row,
int column)
Gets the cell's style. |
CellStyle |
getCellStyleAt(JTable table,
int rowIndex,
int columnIndex)
Gets the cell style at the specified cell. |
Color |
getChangedColor()
Gets the changed color. |
Color |
getConflictedColor()
Gets the conflicted color. |
Color |
getDeletedColor()
Gets the deleted color. |
Color |
getGridColor(int row)
Gets the horizontal grid line color. |
Color |
getInsertedColor()
Gets the inserted color. |
Color |
getVerticalGridColor(int column)
Gets the vertical grid line color. |
void |
setChangedColor(Color changedColor)
Sets the changed color. |
void |
setConflictedColor(Color conflictedColor)
Sets the deleted color. |
void |
setDeletedColor(Color deletedColor)
Sets the deleted color. |
void |
setInsertedColor(Color insertedColor)
Sets the inserted color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final CellStyle CELL_STYLE
Constructor Detail |
---|
public DiffTableStyleProvider()
public DiffTableStyleProvider(TableDiffPane diffPane, int index)
diffPane
- the table diff pane it works for.Method Detail |
---|
public Color getInsertedColor()
setInsertedColor(java.awt.Color)
public void setInsertedColor(Color insertedColor)
insertedColor
- the inserted colorpublic Color getChangedColor()
setChangedColor(java.awt.Color)
public void setChangedColor(Color changedColor)
changedColor
- the changed colorpublic Color getDeletedColor()
setDeletedColor(java.awt.Color)
public void setDeletedColor(Color deletedColor)
deletedColor
- the deleted colorpublic Color getConflictedColor()
setConflictedColor(java.awt.Color)
public void setConflictedColor(Color conflictedColor)
conflictedColor
- the deleted colorpublic CellStyle getCellStyleAt(JTable table, int rowIndex, int columnIndex)
TableStyleProvider
getCellStyleAt
in interface TableStyleProvider
table
- the table.rowIndex
- the row index as in the tablecolumnIndex
- the column index as in the table
protected int getCellStyle(int row, int column)
row
- the row indexcolumn
- the column index
public Color getGridColor(int row)
GridColorProvider
getGridColor
in interface GridColorProvider
row
- the row index. Note the grid line corresponding to a row is the one below the row.
public Color getVerticalGridColor(int column)
GridColorProvider
getVerticalGridColor
in interface GridColorProvider
column
- the column index. The vertical grid line corresponding to a column is the one on the right side of
the column (in left to right orientation).
public void clearAllHighlights()
public void addChangedCellHighlight(int row, int column)
row
- the row indexcolumn
- the column indexpublic void addDeletedCellHighlight(int row, int column)
row
- the row indexcolumn
- the column indexpublic void addInsertedCellHighlight(int row, int column)
row
- the row indexcolumn
- the column indexpublic void addConflictedCellHighlight(int row, int column)
row
- the row indexcolumn
- the column indexpublic void addChangedHighlight(int start, int end)
start
- the start row indexend
- the end row indexpublic void addDeletedHighlight(int start, int end)
start
- the start row indexend
- the end row indexpublic void addInsertedHighlight(int start, int end)
start
- the start row indexend
- the end row indexpublic void addConflictHighlight(int start, int end)
start
- the start row indexend
- the end row indexpublic void addPositionHighlight(int row)
row
- the row index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |