public class UserPluginIcon extends Object implements Icon
Constructor and Description |
---|
UserPluginIcon()
Creates a new transcoded SVG image.
|
UserPluginIcon(boolean disabled) |
UserPluginIcon(Dimension size)
Creates a new transcoded SVG image with the given dimensions.
|
UserPluginIcon(Dimension size,
boolean disabled) |
UserPluginIcon(int width,
int height) |
UserPluginIcon(int width,
int height,
boolean disabled) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
Image |
getImage() |
static int |
getOrigHeight()
Returns the height of the bounding box of the original SVG image.
|
static int |
getOrigWidth()
Returns the width of the bounding box of the original SVG image.
|
static int |
getOrigX()
Returns the X of the bounding box of the original SVG image.
|
static int |
getOrigY()
Returns the Y of the bounding box of the original SVG image.
|
static void |
paint(Graphics2D g,
boolean disabled)
Paints the transcoded SVG image on the specified graphics context.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setDimension(Dimension newDimension) |
public UserPluginIcon()
public UserPluginIcon(boolean disabled)
public UserPluginIcon(Dimension size)
size
- the dimensions of the iconpublic UserPluginIcon(Dimension size, boolean disabled)
public UserPluginIcon(int width, int height)
public UserPluginIcon(int width, int height, boolean disabled)
public static void paint(Graphics2D g, boolean disabled)
g
- Graphics context.public Image getImage()
public static int getOrigX()
public static int getOrigY()
public static int getOrigWidth()
public static int getOrigHeight()
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void setDimension(Dimension newDimension)
Copyright © 2024 GATE. All rights reserved.