| Constructor and Description |
|---|
TransmissionListIcon(ListModel rxModel,
ListModel txModel,
int size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JComponent |
createBox(int nTrans) |
int |
getIconHeight() |
int |
getIconWidth() |
Transmission |
getTransmissionAt(Point point)
Returns the transmission (if any) which is painted at a given point.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public TransmissionListIcon(ListModel rxModel, ListModel txModel, int size)
rxModel - list of messages received;
all elements must be Transmission objectstxModel - list of messages sent;
all elements must be Transmission objectssize - height of icon in pixels; this also scales the widthpublic Transmission getTransmissionAt(Point point)
point - screen point relative to the origin of this iconpoint or null if there
isn't onepublic int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Iconpublic JComponent createBox(int nTrans)
Copyright © 2008–2024. All rights reserved.