|
||||||||||
| 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.JTable
at.tuwien.ifs.somtoolbox.apps.viewer.controls.ColourLegendTable
ClassColorTableModel and an ordinary JTable instead.
@Deprecated public class ColourLegendTable
Displays a name-colour legend, i.e. the names of different items and the colours attached to them, as a table. In a
special mode, it is possible to set a limit and offset to display only parts of the given data arrays (see
setData(String[], Color[], int, int)) - this can be useful e.g. if the data shall be split up in several
tables that are arranged horizontally
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
| 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 | |
|---|---|
private Color[] |
colors
Deprecated. |
private String[] |
columnNames
Deprecated. |
private int |
length
Deprecated. |
private String[] |
names
Deprecated. |
private static long |
serialVersionUID
Deprecated. |
| 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 | |
|---|---|
ColourLegendTable()
Deprecated. |
|
ColourLegendTable(String[] names,
Color[] colors,
String[] columnNames,
ListSelectionListener listener)
Deprecated. |
|
ColourLegendTable(String[] columnNames,
ListSelectionListener listener)
Deprecated. |
|
| Method Summary | |
|---|---|
BufferedImage |
asBufferedImage()
Deprecated. |
Color[] |
getColors()
Deprecated. |
ClassColorTableModel |
getModel()
Deprecated. |
private void |
initColumnSizes()
Deprecated. |
void |
setColors(Color[] colors)
Deprecated. |
void |
setData(String[] names,
Color[] colors,
int offset,
int limit)
Deprecated. |
void |
setEnabled(boolean enabled)
Deprecated. |
void |
setModel(TableModel dataModel)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private String[] names
private Color[] colors
private String[] columnNames
private int length
| Constructor Detail |
|---|
public ColourLegendTable()
public ColourLegendTable(String[] columnNames,
ListSelectionListener listener)
public ColourLegendTable(String[] names,
Color[] colors,
String[] columnNames,
ListSelectionListener listener)
| Method Detail |
|---|
public void setData(String[] names,
Color[] colors,
int offset,
int limit)
public void setModel(TableModel dataModel)
setModel in class JTablepublic ClassColorTableModel getModel()
getModel in class JTableprivate void initColumnSizes()
public Color[] getColors()
public void setColors(Color[] colors)
public void setEnabled(boolean enabled)
setEnabled in class JComponentpublic BufferedImage asBufferedImage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||