|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ImageIcon
com.sibvisions.rad.ui.swing.ext.JVxFontAwesomeIcon
public class JVxFontAwesomeIcon
The JVxFontAwesomeIcon
is an ImageIcon
implementation for FontAwesome font.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.ImageIcon |
---|
javax.swing.ImageIcon.AccessibleImageIcon |
Field Summary |
---|
Fields inherited from class javax.swing.ImageIcon |
---|
component, tracker |
Constructor Summary | |
---|---|
JVxFontAwesomeIcon(FontAwesome pFont)
Creates a new instance of JVxFontAwesomeIcon with default size of 16px. |
|
JVxFontAwesomeIcon(java.lang.String pDefinition)
Creates a new instance of JVxFontAwesomeIcon . |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the color. |
int |
getIconHeight()
|
int |
getIconWidth()
|
java.awt.Image |
getImage()
|
int |
getSize()
Gets the size. |
void |
paintIcon(java.awt.Component pComponent,
java.awt.Graphics pGraphics,
int pX,
int pY)
|
void |
setColor(java.awt.Color pColor)
Sets the color. |
void |
setSize(int pSize)
Sets the size. |
Methods inherited from class javax.swing.ImageIcon |
---|
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JVxFontAwesomeIcon(FontAwesome pFont)
JVxFontAwesomeIcon
with default size of 16px.
pFont
- the icon definitionpublic JVxFontAwesomeIcon(java.lang.String pDefinition)
JVxFontAwesomeIcon
.
pDefinition
- The icon definition (only the name or followed by a list of properties:
server;size=20;color=0xFFAACCMethod Detail |
---|
public void paintIcon(java.awt.Component pComponent, java.awt.Graphics pGraphics, int pX, int pY)
paintIcon
in interface javax.swing.Icon
paintIcon
in class javax.swing.ImageIcon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
getIconWidth
in class javax.swing.ImageIcon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
getIconHeight
in class javax.swing.ImageIcon
public java.awt.Image getImage()
getImage
in class javax.swing.ImageIcon
public void setSize(int pSize)
pSize
- the sizepublic int getSize()
public void setColor(java.awt.Color pColor)
pColor
- the colorpublic java.awt.Color getColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |