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