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