|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.basicruledisplayer.logic.Utils
public final class Utils
Some rule painter utils.
Field Summary | |
---|---|
static Image |
ARROW
|
static Image |
DOTS
|
static Image |
LAMBDA
|
Method Summary | |
---|---|
static Color |
getColorAlternation()
Returns the background color for an alternation from the options. |
static Color |
getColorAttribute()
Returns the background color for an attribute from the options. |
static Color |
getColorBackground()
Returns the background color for the rule displayer. |
static Color |
getColorConcatenation()
Returns the background color for a concatenation from the options. |
static Color |
getColorElement()
Returns the background color for an element from the options. |
static Color |
getColorForeground()
Returns the foreground color for the rule displayer. |
static Color |
getColorSimpleData()
Returns the background color for simple data from the options. |
static int |
getHeight(Image image)
Returns the height of the specified image. |
static BufferedImage |
getImage(int width,
int height)
Creates an image of specified dimension, filled with the background color. |
static BufferedImage |
getImage(int width,
int height,
Color color)
Creates an image of specified dimension, filled with the specified color. |
static Color |
getNodeColor(AbstractStructuralNode n)
Return the background color for the specified node. |
static int |
getWidth(Image image)
Returns the width of the specified image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Image LAMBDA
public static final Image DOTS
public static final Image ARROW
Method Detail |
---|
public static Color getColorElement()
public static Color getColorAttribute()
public static Color getColorSimpleData()
public static Color getColorConcatenation()
public static Color getColorAlternation()
public static Color getColorBackground()
public static Color getColorForeground()
public static Color getNodeColor(AbstractStructuralNode n)
n
- Node for which the background color should be found.
public static BufferedImage getImage(int width, int height)
width
- Positive integer representing the width of the image.height
- Positive integer representing the height of the image.
public static BufferedImage getImage(int width, int height, Color color)
width
- Positive integer representing the width of the image.height
- Positive integer representing the height of the image.color
- Background color of the image.
public static int getWidth(Image image)
null
.public static int getHeight(Image image)
null
.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |