![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
imp.gui.IComponent
public class IComponent
Encapsulates a view of JComponent as so-called IComponent providing additional methods for convenience.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
String |
getBgcolor()
Gets this component background color. |
String |
getColor()
Gets this component color. |
String |
getTextFont()
Gets this component font. |
String |
getTitle()
Gets this component title. |
String |
getTooltip()
Gets this component tool-tip. |
BufferedImage |
grab()
Grabs this component as an image. |
IComponent |
refresh()
Repaints this component and return this. |
IComponent |
setBgcolor(String bgcolor)
Sets this component background color and return this. |
IComponent |
setColor(String color)
Sets this component color and return this. |
IComponent |
setHeight(int height)
Sets this component height and return this. |
IComponent |
setTextFont(String font)
Sets this component font and return this. |
IComponent |
setTitle(String title)
Sets this component title (also called component name) and return this. |
IComponent |
setTooltip(String tip)
Sets this component tool-tip and return this. |
IComponent |
setWidth(int width)
Sets this component width and return this. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getBgcolor()
public String getColor()
public String getTextFont()
public String getTitle()
public String getTooltip()
public BufferedImage grab()
public IComponent refresh()
public IComponent setBgcolor(String bgcolor)
bgcolor
- This component background color name ("black", "blue", "cyan", "gray", "green", "magenta", "orange", "pink", "red", "white", "yellow") or "transparent"
or "RRGGBB" where RR, GG and BB are hexadecimal values for the red, green and blue channels or a Java Color.public IComponent setColor(String color)
color
- This component background color name ("black", "blue", "cyan", "gray", "green", "magenta", "orange", "pink", "red", "white", "yellow")
or "RRGGBB" where RR, GG and BB are hexadecimal values for the red, green and blue channels or a Java Color.public IComponent setHeight(int height)
height
- This component height.public IComponent setTextFont(String font)
font
- This component font.public IComponent setTitle(String title)
title
- This component title.public IComponent setTooltip(String tip)
tip
- This component tool-tip.public IComponent setWidth(int width)
width
- This component width.