|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.swing.JCTreeTable.SwitchIcon
The icon that renderers itself differently whether the view is
TREE
or TABLE
.
Field Summary | |
protected Color |
background
|
protected Color |
foreground
|
protected boolean |
orientationLeft
|
protected int |
view
|
Constructor Summary | |
JCTreeTable.SwitchIcon()
Constructor. |
|
JCTreeTable.SwitchIcon(boolean orientationLeft,
int view)
Constructor that specifies the orientation. |
Method Summary | |
Color |
getBackground()
Gets the current background color of the icon. |
Color |
getForeground()
Gets the current foreground color of the icon. |
int |
getIconHeight()
Gets the height of the icon. |
int |
getIconWidth()
Gets the width of the icon. |
int |
getView()
Gets the current icon view. |
boolean |
isOrientationLeft()
Return whether the orientation is left to right or not. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draws the icon. |
void |
setBackground(Color background)
Sets the new background color of the icon. |
void |
setForeground(Color foreground)
Sets the new foreground color of the icon. |
void |
setOrientationLeft(boolean orientationLeft)
|
void |
setView(int view)
Sets the icon view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean orientationLeft
protected int view
protected Color background
protected Color foreground
Constructor Detail |
public JCTreeTable.SwitchIcon()
public JCTreeTable.SwitchIcon(boolean orientationLeft, int view)
orientationLeft
- If true, the orientation is left to right.view
- The view of the icon, either TREE
or
TABLE
.Method Detail |
public boolean isOrientationLeft()
public void setOrientationLeft(boolean orientationLeft)
orientationLeft
- public void setView(int view)
TREE
or
TABLE
.
view
- The new icon view; must be one of TREE
or
TABLE
public int getView()
TREE
or
TABLE
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public Color getBackground()
public void setBackground(Color background)
background
- the new background color of the iconpublic Color getForeground()
public void setForeground(Color foreground)
foreground
- the new foreground color of the iconpublic void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- a component used to aid in drawing icon; currently unusedg
- the graphics object used to draw the iconx
- the X position at which to draw the icony
- the Y position at which to draw the icon
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |