|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.BridgeCalculatorCellRenderer
public class BridgeCalculatorCellRenderer
ListCellRenderer
and TableCellRenderer
implementation that renders objects of type BridgeCalculator
nicely.
Field Summary | |
---|---|
static byte |
STYLE_ALL
A rendering style that shows all aspects of a BridgeCalculator. |
static byte |
STYLE_CROSSING_MODE
A rendering style that shows the crossing mode aspects of a
BridgeCalculator. |
static byte |
STYLE_CROSSING_STYLE
A rendering style that shows the crossing style aspects of a
BridgeCalculator. |
static byte |
STYLE_CROSSING_STYLE_DOUBLE
A rendering style that shows the BridgeCalculator.getCrossingStyle() aspects of a BridgeCalculator
using two parallel lines highlighting the difference between the SCALED and non-scaled variants of the
styles. |
Constructor Summary | |
---|---|
BridgeCalculatorCellRenderer()
Creates a default BridgeCalculatorCellRenderer with style STYLE_ALL |
|
BridgeCalculatorCellRenderer(byte style)
Creates a new BridgeCalculatorCellRenderer. |
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. |
byte |
getStyle()
Returns the style of the renderer. |
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. |
void |
setStyle(byte style)
Sets the style for the renderer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte STYLE_ALL
public static final byte STYLE_CROSSING_STYLE
crossing style
aspects of a
BridgeCalculator.
public static final byte STYLE_CROSSING_MODE
crossing mode
aspects of a
BridgeCalculator.
public static final byte STYLE_CROSSING_STYLE_DOUBLE
BridgeCalculator.getCrossingStyle()
aspects of a BridgeCalculator
using two parallel lines highlighting the difference between the SCALED
and non-scaled variants of the
styles.
Constructor Detail |
---|
public BridgeCalculatorCellRenderer()
STYLE_ALL
public BridgeCalculatorCellRenderer(byte style)
Method Detail |
---|
public byte getStyle()
STYLE_ALL
.
STYLE_ALL
, STYLE_CROSSING_MODE
, STYLE_CROSSING_STYLE
, or STYLE_CROSSING_STYLE_DOUBLE
public void setStyle(byte style)
style
- one of STYLE_ALL
, STYLE_CROSSING_MODE
, STYLE_CROSSING_STYLE
, or STYLE_CROSSING_STYLE_DOUBLE
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean hasFocus)
value
is not of type
BridgeCalculator
, the component may display nothing at all.
getListCellRendererComponent
in interface javax.swing.ListCellRenderer
list
- 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
Arrow
.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
BridgeCalculator
, the component may display nothing at all.
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
table
- 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
Arrow
.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |