|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.option.StrokeCellRenderer
public class StrokeCellRenderer
ListCellRenderer and TableCellRenderer
implementation that renders objects of type Stroke nicely.
This renderer can be used to display objects of type LineType.
![]() |
![]() |
| Constructor Summary | |
|---|---|
StrokeCellRenderer()
Creates a new StrokeCellRenderer. |
|
| Method Summary | |
|---|---|
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean hasFocus)
Returns a component that has been configured to display the specified value. |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns a component that has been configured to display the specified value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrokeCellRenderer()
| Method Detail |
|---|
public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean hasFocus)
value is not of type Stroke, the component may
display nothing at all.
getListCellRendererComponent in interface javax.swing.ListCellRendererlist - the JList that is asking the renderer to
drawvalue - the value to be renderedindex - the cells indexisSelected - true if the specified cell was selectedhasFocus - true if the specified cell has the focus
Stroke.
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
value is not of type Stroke, the component may
display nothing at all.
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderertable - the JTable that is asking the renderer to
draw; can be nullvalue - the value to be renderedisSelected - true if the specified cell was selectedhasFocus - true if the specified cell has the focusrow - the row index of the cell being drawncolumn - the column index of the cell being drawn
Stroke.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||