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) intintgetTransmissionAt(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 beTransmissionobjectstxModel- list of messages sent; all elements must beTransmissionobjectssize- 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
pointor null if there isn't one
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
paintIcon
-
createBox
-