|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.visuals.IconView
public class IconView
IconView is a lightweight component class that paints an IconInterface object.
IconInterface,
Serialized Form| Field Summary | |
|---|---|
protected com.sas.visuals.IconInterface |
icon
the IconInterface object to be manipulated and displayed |
| Fields inherited from class com.sas.awt.Component |
|---|
RB_KEY |
| Constructor Summary | |
|---|---|
IconView()
Default constructor. |
|
IconView(com.sas.visuals.IconInterface icon)
Constructor that sets the IconInterface to paint. |
|
| Method Summary | |
|---|---|
java.awt.Dimension |
computePreferredSize()
Return the preferredSize of the IconInterface |
com.sas.visuals.IconInterface |
getIcon()
Return the IconInterface being painted. |
java.awt.Insets |
getInsets()
Return the insets for the IconView. |
void |
paint(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Invokes the paint of the IconInterface object. |
void |
paint(java.awt.Graphics g)
Paints this component. |
void |
setIcon(com.sas.visuals.IconInterface i)
Set the IconInterface object that is to be displayed. |
void |
update(java.awt.Graphics g)
Overridden to just call paint |
| Methods inherited from class com.sas.awt.Component |
|---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, getMinimumSize, setDefaultHeight, setDefaultValues, setDefaultWidth |
| Methods inherited from interface com.sas.visuals.IconInterface |
|---|
getPreferredSize |
| Field Detail |
|---|
protected com.sas.visuals.IconInterface icon
| Constructor Detail |
|---|
public IconView()
public IconView(com.sas.visuals.IconInterface icon)
icon - the IconInterface object to be displayed| Method Detail |
|---|
public com.sas.visuals.IconInterface getIcon()
setIcon(com.sas.visuals.IconInterface)public java.awt.Dimension computePreferredSize()
computePreferredSize in interface VisualInterfacecomputePreferredSize in class ComponentVisualComponentVisualInterface.computePreferredSize()public java.awt.Insets getInsets()
getInsets in interface com.sas.visuals.PainterInterfacePainterInterfacepublic void update(java.awt.Graphics g)
update in class ComponentVisualComponentg - Graphics contextVisualInterfaceSupport.update(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)public void paint(java.awt.Graphics g)
paint in class ComponentVisualComponentg - Graphics contextVisualInterfaceSupport.paint(com.sas.ComponentInterface, com.sas.awt.VisualInterface, java.awt.Component, java.awt.Graphics)
public void paint(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paint in interface com.sas.visuals.PainterInterfacecomp - the Component to paint the IconInterface with.g - Graphics contextx - the x coordinatey - the y coordinatewidth - the width to be painted.height - the height to be painted.public void setIcon(com.sas.visuals.IconInterface i)
i - the IconInterface object to be displayed and manipulated in this IconView.getIcon()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||