javax.swing.Iconpublic abstract class MultiPosIcon
extends java.lang.Object
implements javax.swing.Icon
| Constructor | Description |
|---|---|
MultiPosIcon(int npos) |
Constructor.
|
| Modifier and Type | Method | 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.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconprotected abstract void paintPositions(java.awt.Graphics g,
java.awt.Point[] positions)
g - graphics contextpositions - graphic positions of pointsCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.