public abstract class MultiPosIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
MultiPosIcon(int npos)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
protected abstract void |
paintPositions(java.awt.Graphics g,
java.awt.Point[] positions)
Generates graphics for a given set of positions in a way that
represents the behaviour this icon wants to illustrate.
|
public MultiPosIcon(int npos)
npos
- number of pointspublic int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
protected abstract void paintPositions(java.awt.Graphics g, java.awt.Point[] positions)
g
- graphics contextpositions
- graphic positions of pointsCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.