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