|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.AbstractButton
|
+--javax.swing.JButton
|
+--oracle.dss.util.gui.FontButton
Button and panel for changing font attributes. Sets font, alignment, and color.
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Field Summary | |
static java.lang.String |
PROPERTY_CANCELLEDtrue if user clicks Cancel instead of OK. |
| Fields inherited from class javax.swing.AbstractButton |
BORDER_PAINTED_CHANGED_PROPERTY, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
| 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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
FontButton()Default constructor. | |
FontButton(javax.swing.ImageIcon icon, java.lang.String str)Constructor that sets an icon for the button and the string for the button face. | |
FontButton(java.lang.String str)Constructor that sets the string for the button face. | |
| Method Summary | |
void |
applyFontPane()Initializes the variables in this class. |
java.awt.Color[][] |
getColorPalette()Retrieves the grid of colors to be used by font foreground and background color choosers. |
java.awt.Color |
getComponentBackground()Retrieves the background color that is selected in the dialog. |
java.awt.Font |
getComponentFont()Retrieves the font that is selected in the dialog. |
java.awt.Color |
getComponentForeground()Retrieves the foreground color that is set in the dialog. |
oracle.bali.ewt.chooser.font.FontPane |
getFontPane()Gets the FontPane for the dialog. |
oracle.bali.ewt.help.HelpProvider |
getHelpProvider()Retrieves the Help provider for the panel that this button displays. |
int |
getPaneHorizontalAlignment()Retrieves the horizontal alignment that is set in the dialog. |
int |
getPaneVerticalAlignment()Retrieves the vertical alignment of the font dialog. |
int |
getTextRotation()Retrieves the current text rotation. |
boolean |
isStrikeThroughStyle()Indicates whether the font has the strike-through property selected. |
boolean |
isUnderlineStyle()Indicates whether the font has underline property selected in the font pane. |
void |
setAlignmentButtonMask(int alignment)Specifies which alignment button appear in the dialog. |
void |
setColorComponentMask(int buttons)Specifies which color buttons appear in the dialog. |
void |
setColorPalette(java.awt.Color[][] colors)Specifies the grid of colors to use in color palettes of font foreground and background color choosers. |
void |
setComponentBackground(java.awt.Color c)Specifies the background color in the dialog. |
void |
setComponentFont(java.awt.Font f)Specifies the font for the dialog. |
void |
setComponentForeground(java.awt.Color c)Specifies the foreground color in the dialog. |
void |
setDialogTitle(java.lang.String str)Specifies the title for the Font Dialog. |
void |
setHelpProvider(oracle.bali.ewt.help.HelpProvider helpProvider)Specifies the Help provider for the panel that this button displays. |
void |
setPaneHorizontalAlignment(int alignment)Specifies the horizontal alignment property of the font dialog that this button displays. |
void |
setPaneLocale(java.util.Locale loc)Specifies the locale of the font pane that this button displays. |
void |
setPaneVerticalAlignment(int alignment)Specifies the vertical alignment of the dialog that this button displays. |
void |
setRotationButtonMask(int buttonMask)Specifies which text rotation buttons appear in the dialog. |
void |
setStrikeThroughStyle(boolean yesNo)Specifies whether to select the strikethrough property. |
void |
setStyleButtonMask(int style)Specifies which style buttons appear in the dialog. |
void |
setText(java.lang.String str)Specifies the title for this button, adding ellipses. |
void |
setTextRotation(int rotation)Specifies text rotation. |
void |
setUnderlineStyle(boolean yesNo)Specifies whether to select the underline property. |
| Methods inherited from class javax.swing.JButton |
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, removeNotify, setDefaultCapable, updateUI |
| Methods inherited from class javax.swing.AbstractButton |
addActionListener, addChangeListener, addItemListener, doClick, doClick, getAction, getActionCommand, getDisabledIcon, getDisabledSelectedIcon, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getLabel, getMargin, getMnemonic, getModel, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, isBorderPainted, isContentAreaFilled, isFocusPainted, isFocusTraversable, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setEnabled, setFocusPainted, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setLabel, setMargin, setMnemonic, setMnemonic, setModel, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setUI, setVerticalAlignment, setVerticalTextPosition |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
| Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
| Field Detail |
public static final java.lang.String PROPERTY_CANCELLED
true if user clicks Cancel instead of OK. Check this value before you call "get" methods to set the properties of the object from which this dialog is invoked.| Constructor Detail |
public FontButton(javax.swing.ImageIcon icon,
java.lang.String str)
icon - The icon for the face of the button.str - The string for the face of the button.public FontButton(java.lang.String str)
str - The string for the face of the button.public FontButton()
| Method Detail |
public void setColorPalette(java.awt.Color[][] colors)
colors - Colors for the color palette.public java.awt.Color[][] getColorPalette()
setColorPalette(java.awt.Color[][])public void setHelpProvider(oracle.bali.ewt.help.HelpProvider helpProvider)
helpProvider - The Help provider for this panel.public oracle.bali.ewt.help.HelpProvider getHelpProvider()
public void setText(java.lang.String str)
setText in class javax.swing.AbstractButtonstr - String to display on this button. Do not include ellipses.public void setDialogTitle(java.lang.String str)
str - String to display for the title.public oracle.bali.ewt.chooser.font.FontPane getFontPane()
FontPane for the dialog.public void setRotationButtonMask(int buttonMask)
buttonMask - A constant that specifies which text rotation buttons to show. The constants are listed in the See Also section.BIFontPane.BUTTON_ROTATE_AUTO, BIFontPane.BUTTON_ROTATE_0, BIFontPane.BUTTON_ROTATE_90, BIFontPane.BUTTON_ROTATE_270public void setStyleButtonMask(int style)
style - A constant that specifies which style buttons to show. The constants are defined in oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. Valid constants are:
BUTTON_STYLE_BOLDBUTTON_STYLE_ITALICBUTTON_STYLE_REGULARBUTTON_STYLE_STRIKETHROUGHBUTTON_STYLE_SUBSCRIPTBUTTON_STYLE_SUPERSCRIPTBUTTON_STYLE_UNDERLINEpublic void setAlignmentButtonMask(int alignment)
alignment - A constant that specifies which alignment buttons to show. The constants are defined in oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. Valid constants are:
BUTTON_ALIGNMENT_BOTTOMBUTTON_ALIGNMENT_CENTERBUTTON_ALIGNMENT_ENDBUTTON_ALIGNMENT_FULLBUTTON_ALIGNMENT_LEFTBUTTON_ALIGNMENT_MIDDLEBUTTON_ALIGNMENT_RIGHTBUTTON_ALIGNMENT_STARTBUTTON_ALIGNMENT_TOPpublic void setColorComponentMask(int buttons)
buttons - A constant that specifies which color buttons to show. The constants are defined in oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. The constants are:
COLOR_COMPONENT_BACKGROUNDCOLOR_COMPONENT_BORDERCOLOR_COMPONENT_FOREGROUNDpublic int getTextRotation()
BIFontPane.ROTATE_AUTO, BIFontPane.ROTATE_0, BIFontPane.ROTATE_90, BIFontPane.ROTATE_270public void setTextRotation(int rotation)
A - constant that represents the rotation of the text. Valid constants are listed in the See Also section.BIFontPane.ROTATE_AUTO, BIFontPane.ROTATE_0, BIFontPane.ROTATE_90, BIFontPane.ROTATE_270public java.awt.Color getComponentForeground()
public void setComponentForeground(java.awt.Color c)
c - The current foreground color.public java.awt.Color getComponentBackground()
public void setComponentBackground(java.awt.Color c)
c - The current background color.public java.awt.Font getComponentFont()
public void setComponentFont(java.awt.Font f)
f - The current font.public boolean isUnderlineStyle()
true if the underline property is selected, false if it is not.public void setUnderlineStyle(boolean yesNo)
yesNo - true to select underlining, false to clear it.public boolean isStrikeThroughStyle()
true if strike-through is selected, false if it is not.public void setStrikeThroughStyle(boolean yesNo)
yesNo - true to select strike-through, false to clear it.public int getPaneHorizontalAlignment()
oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. Valid constants are:
HORIZONTAL_ALIGNMENT_CENTERHORIZONTAL_ALIGNMENT_ENDHORIZONTAL_ALIGNMENT_STARTHORIZONTAL_ALIGNMENT_LEFTHORIZONTAL_ALIGNMENT_RIGHTHORIZONTAL_ALIGNMENT_STARTpublic void setPaneHorizontalAlignment(int alignment)
alignment - A constant that specifies the current alignment. The constants are defined in oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. Valid constants are:
HORIZONTAL_ALIGNMENT_CENTERHORIZONTAL_ALIGNMENT_ENDHORIZONTAL_ALIGNMENT_STARTHORIZONTAL_ALIGNMENT_LEFTHORIZONTAL_ALIGNMENT_RIGHTHORIZONTAL_ALIGNMENT_STARTpublic int getPaneVerticalAlignment()
oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. Valid constants are:
VERTICAL_ALIGNMENT_BOTTOMVERTICAL_ALIGNMENT_MIDDLEVERTICAL_ALIGNMENT_TOPpublic void setPaneVerticalAlignment(int alignment)
alignment - A constant that represents the current vertical alignment. The constants are defined in oracle.bali.ewt.chooser.font.FontPane. Because BIFontPane extends FontPane, you access them through BIFontPane. Valid constants are:
VERTICAL_ALIGNMENT_BOTTOMVERTICAL_ALIGNMENT_MIDDLEVERTICAL_ALIGNMENT_TOPpublic void applyFontPane()
public void setPaneLocale(java.util.Locale loc)
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||