| com.javujavu.javux.wings.item.ItemRenderer
All known Subclasses: com.javujavu.javux.wings.item.DefaultItemRenderer, com.javujavu.javux.wings.extra.ColorItem, com.javujavu.javux.wings.item.LabelItem, com.javujavu.javux.wings.extra.FontItem, com.javujavu.javux.wings.extra.ColorItemBox,
Method Summary | |
void | drawItem(Graphics g, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Insets margin, int alignment, int textPosition, Object context) | Dimension | getItemSize(Object item, WingComponent owner, Style style, Object context) | public boolean | imageUpdate(Image img, int infoflags, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Rectangle itemBounds) |
drawItem | void drawItem(Graphics g, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Insets margin, int alignment, int textPosition, Object context)(Code) | | Draw the item
Parameters: g - graphics Parameters: x - the x coordinate of the item to be drawn. Parameters: y - the y coordinate of the item to be drawn. Parameters: width - the width of the item to be drawn. Parameters: height - the height of the item to be drawn. Parameters: item - item to be drawn Parameters: owner - component containing the item Parameters: style - style Parameters: margin - margin Parameters: alignment - alignment Parameters: textPosition - text position LEFT, RIGHT or CENTER Parameters: context - component specific context |
getItemSize | Dimension getItemSize(Object item, WingComponent owner, Style style, Object context)(Code) | | Returns item size for the specified style
Parameters: item - item Parameters: owner - component containing the item Parameters: style - style Parameters: context - component specific context items size |
imageUpdate | public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height, Object item, WingComponent owner, Style style, Rectangle itemBounds)(Code) | | Implementation should update owner component if the item contains updated image
See ImageObserver.imageUpdate for more information
Parameters: img - the image being observed. Parameters: infoflags - Parameters: x - the x coordinate Parameters: y - the y coordinate Parameters: width - the width Parameters: height - the height Parameters: item - item Parameters: owner - component containing the item Parameters: style - style Parameters: itemBounds - bounds of the item false if the infoflags indicate that theimage is completely loadedor item does not display the specified image; true otherwise. |
|
|