Package org.astrogrid.samp.gui
Class TransmissionListIcon
java.lang.Object
org.astrogrid.samp.gui.TransmissionListIcon
- All Implemented Interfaces:
Icon
Icon which paints a graphical representation of a list of Transmissions.
- Since:
- 21 Nov 2008
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionTransmissionListIcon
(ListModel rxModel, ListModel txModel, int size) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateBox
(int nTrans) int
int
getTransmissionAt
(Point point) Returns the transmission (if any) which is painted at a given point.void
-
Constructor Details
-
TransmissionListIcon
Constructor.- Parameters:
rxModel
- list of messages received; all elements must beTransmission
objectstxModel
- list of messages sent; all elements must beTransmission
objectssize
- height of icon in pixels; this also scales the width
-
-
Method Details
-
getTransmissionAt
Returns the transmission (if any) which is painted at a given point.- Parameters:
point
- screen point relative to the origin of this icon- Returns:
- transmission painted at
point
or null if there isn't one
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
-
createBox
-