Constructor and Description |
---|
ColorMapIcon()
Creates a 16x16 black icon
|
ColorMapIcon(int width,
int height)
Creates a viridis icon
|
ColorMapIcon(int width,
int height,
ColorMap colorMap) |
Modifier and Type | Method and Description |
---|---|
Color |
getBorderColor() |
ColorMap |
getColorMap() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setBorderColor(Color borderColor) |
void |
setColorMap(ColorMap colorMap) |
public ColorMapIcon()
public ColorMapIcon(int width, int height)
width
- icon widthheight
- icon heightpublic ColorMapIcon(int width, int height, ColorMap colorMap)
width
- icon widthheight
- icon heightcolorMap
- the color mappublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public ColorMap getColorMap()
public void setColorMap(ColorMap colorMap)
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.