Class MultiPosIcon
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.MultiPosIcon
- All Implemented Interfaces:
Icon
Uncoloured icon suitable for legends representing multi-position plot types.
This abstract class generates X,Y positions representing the positions
on the icon, and concrete subclasses can do something visually specific
with them.
- Since:
- 28 Nov 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
protected abstract void
paintPositions
(Graphics g, Point[] positions) Generates graphics for a given set of positions in a way that represents the behaviour this icon wants to illustrate.
-
Constructor Details
-
MultiPosIcon
public MultiPosIcon(int npos) Constructor.- Parameters:
npos
- number of points
-
-
Method Details
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
-
paintPositions
Generates graphics for a given set of positions in a way that represents the behaviour this icon wants to illustrate. The number of positions presented is that specified at construction time.- Parameters:
g
- graphics contextpositions
- graphic positions of points
-