|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.swing.joutlooknavbar.State
This class represents the way a NavBarItem is displayed.
Title: JOutlookNavBar
Description: A Swing component simulating Outlook's Nav Bar
Copyright: Copyright (c) 2004
Company: SyGem Software
Method Summary | |
javax.swing.border.Border |
getBorder()
Returns the Border that this State will use to surround it's NavBarItem. |
java.awt.Color |
getColor()
Returns the color that this State will use to draw the NavBarItem's title |
java.awt.Font |
getFont()
Returns the Font that this State will use to draw the NavBarItem's title. |
int |
getHorizontalAlignment()
Gets the current horizontal alignment value for the State |
int |
getHorizontalTextPosition()
Gets the current horizontal text position value for the State |
int |
getVerticalAlignment()
Gets the current vertical alignment value for the State |
int |
getVerticalTextPosition()
Gets the current vertical text position value for the State |
void |
setBorder(javax.swing.border.Border border)
Set the border for this State. |
void |
setColor(java.awt.Color color)
Sets the color that this State will use to draw the NavBarItem's title |
void |
setFont(java.awt.Font font)
Sets the font that this State will use to draw the NavBarItem's title |
void |
setHorizontalAlignment(int horizontalAlignment)
Sets the horizontal text alignment for this State. |
void |
setHorizontalTextPosition(int horizontalTextPosition)
Sets the horizontal text position for this State. |
void |
setVerticalAlignment(int verticalAlignment)
Sets the vertical text alignment for this State. |
void |
setVerticalTextPosition(int verticalTextPosition)
Sets the vertical text position for this State. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public javax.swing.border.Border getBorder()
public java.awt.Color getColor()
public java.awt.Font getFont()
public int getHorizontalAlignment()
public int getHorizontalTextPosition()
public int getVerticalAlignment()
public int getVerticalTextPosition()
public void setBorder(javax.swing.border.Border border)
border
- The new border for this Statepublic void setColor(java.awt.Color color)
color
- The new color for this Statepublic void setFont(java.awt.Font font)
font
- The new font for this Statepublic void setHorizontalAlignment(int horizontalAlignment)
Sets the horizontal text alignment for this State.
NOTE: These changes will be overriden if the changes are made before the item is added to a category.
horizontalAlignment
- One of the following constants defined in SwingConstants: LEFT, CENTER (the default), RIGHT, LEADING or TRAILING.public void setHorizontalTextPosition(int horizontalTextPosition)
Sets the horizontal text position for this State.
NOTE: These changes will be overriden if the changes are made before the item is added to a category.
horizontalTextPosition
- One of the following constants defined in SwingConstants: LEFT, CENTER (default), RIGHT, LEADING, or TRAILING.public void setVerticalAlignment(int verticalAlignment)
Sets the vertical text alignment for this State.
NOTE: These changes will be overriden if the changes are made before the item is added to a category.
verticalAlignment
- One of the following constants defined in SwingConstants: TOP, CENTER (the default), or BOTTOM.public void setVerticalTextPosition(int verticalTextPosition)
Sets the vertical text position for this State.
NOTE: These changes will be overriden if the changes are made before the item is added to a category.
verticalTextPosition
- One of the following constants defined in SwingConstants: TOP, CENTER, or BOTTOM (the default).
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |