public class UpdateSiteIcon extends Object implements Icon
Constructor and Description |
---|
UpdateSiteIcon()
Creates a new transcoded SVG image.
|
UpdateSiteIcon(boolean disabled) |
UpdateSiteIcon(Dimension size)
Creates a new transcoded SVG image with the given dimensions.
|
UpdateSiteIcon(Dimension size,
boolean disabled) |
UpdateSiteIcon(int width,
int height) |
UpdateSiteIcon(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 UpdateSiteIcon()
public UpdateSiteIcon(boolean disabled)
public UpdateSiteIcon(Dimension size)
size
- the dimensions of the iconpublic UpdateSiteIcon(Dimension size, boolean disabled)
public UpdateSiteIcon(int width, int height)
public UpdateSiteIcon(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.