Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.gridView.gui
Class FontPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--oracle.dss.gridView.gui.FontPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, HelpContext, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable

public class FontPanel
extends javax.swing.JPanel
implements java.beans.PropertyChangeListener, HelpContext

Panel for changing font attributes. Sets font, alignment, and color.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

Field Summary
static java.lang.String PROPERTY_CANCELLED
          true if user clicks Cancel instead of OK.
static java.lang.String PROPERTY_FONTPANEL_WRAP_WORDS
          Property: Wrap Words.

 

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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

 

Constructor Summary
FontPanel(ViewStyle style)
          Default constructor.

 

Method Summary
 void apply()
          Applies font properties to the 'ViewStyle'
 void cleanUp()
          Clean up memory space
 java.awt.Font getComponentFont()
          Gets the font that is selected in this panel.
 java.awt.Color getComponentForeground()
          Gets the foreground color that is set in this panel.
 java.lang.String getFontName()
          Gets the font name.
 oracle.bali.ewt.chooser.font.FontPane getFontPane()
          Gets the FontPane for this dialog.
 int getFontSize()
          Gets the font size.
 java.lang.String getHelpContextID()
          Retrieves the Help context ID for this panel.
 int getHorizontalAlignment()
          Gets the horizontal alignment that is selected in this panel.
 int getVerticalAlignment()
          Gets the vertical alignment that is selected in this panel.
 boolean getWrapWordsState()
          Gets the state of the 'Wrap words in cell' checkbox.
 boolean isBoldStyle()
          Find if the font has bold property.
 boolean isHelpEnabled()
          Indicates whether a Help button in a dialog box that is displayed by this panel, is displayed.
 boolean isItalicStyle()
          Find if the font has italic property.
 boolean isStrikeThroughStyle()
          Find if the font has StrikeThrough property.
 boolean isUnderlineStyle()
          Find if the font has underline property.
 void setAlignmentButtonMask(int alignment)
          Specifies which alignment button appear in the panel.
 void setColorComponentMask(int buttons)
          Specifies which color buttons appear in the panel.
 void setComponentFont(java.awt.Font f)
          Sets the Font in this panel.
 void setComponentForeground(java.awt.Color c)
          Sets the foreground color in this panel.
 void setHelpContextID(java.lang.String strHelpContextID)
          Sets the Help context ID for this panel.
 void setHelpEnabled(boolean bValue)
          Specifies whether a Help button in a dialog box that is displayed by this panel, is displayed.
 void setHorizontalAlignment(int alignment)
          Sets the horizontal alignment.
 void setLocale(java.util.Locale loc)
          set locale of the font
 void setStyleButtonMask(int style)
          Specifies which style buttons appear in the panel.
 void setVerticalAlignment(int alignment)
          Sets the vertical alignment.

 

Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, updateUI

 

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, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, 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, imageUpdate, 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, 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.beans.PropertyChangeListener
propertyChange

 

Field Detail

PROPERTY_FONTPANEL_WRAP_WORDS

public static final java.lang.String PROPERTY_FONTPANEL_WRAP_WORDS
Property: Wrap Words. Use this constant when listening for changes in the 'Wrap words in cell' check box.

PROPERTY_CANCELLED

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

FontPanel

public FontPanel(ViewStyle style)
Default constructor.
Method Detail

cleanUp

public void cleanUp()
Clean up memory space

getHelpContextID

public java.lang.String getHelpContextID()
Retrieves the Help context ID for this panel. The Help context ID is the full class path for this panel. This Help context ID is used when listening for the user event to display Help for this panel.
Specified by:
getHelpContextID in interface HelpContext
Returns:
The Help context ID for this panel.

setHelpContextID

public void setHelpContextID(java.lang.String strHelpContextID)
Sets the Help context ID for this panel.
Specified by:
setHelpContextID in interface HelpContext
Following copied from interface: oracle.dss.util.help.HelpContext
Parameters:
strHelpContextID - a String value that represents the Help context ID.

setHelpEnabled

public void setHelpEnabled(boolean bValue)
Specifies whether a Help button in a dialog box that is displayed by this panel, is displayed.

For example, suppose that this panel had a font button and that font button displayed a font dialog box. If that font dialog box had a Help button, then this method would specify whether that Help button is displayed.

Parameters:
bValue - true to display the Help button, false to hide it.

isHelpEnabled

public boolean isHelpEnabled()
Indicates whether a Help button in a dialog box that is displayed by this panel, is displayed.

For example, suppose that this panel had a font button and that font button displayed a font dialog box. If that font dialog box had a Help button, then this method would tell you whether that Help button is displayed.

Returns:
true if the Help button is hidden, false if it is displayed.

getFontPane

public oracle.bali.ewt.chooser.font.FontPane getFontPane()
Gets the FontPane for this dialog.

setStyleButtonMask

public void setStyleButtonMask(int style)
Specifies which style buttons appear in the panel.
Parameters:
style - A constant that specifies which style buttons to show. The constants are:
  • BUTTON_STYLE_BOLD
  • BUTTON_STYLE_ITALIC
  • BUTTON_STYLE_STRIKETHROUGH
  • BUTTON_STYLE_UNDERLINE

setAlignmentButtonMask

public void setAlignmentButtonMask(int alignment)
Specifies which alignment button appear in the panel.
Parameters:
alignment - A constant that specifies which alignment buttons to show. The constants are:
  • BUTTON_ALIGNMENT_BOTTOM
  • BUTTON_ALIGNMENT_CENTER
  • BUTTON_ALIGNMENT_LEFT
  • BUTTON_ALIGNMENT_MIDDLE
  • BUTTON_ALIGNMENT_RIGHT
  • BUTTON_ALIGNMENT_TOP

setColorComponentMask

public void setColorComponentMask(int buttons)
Specifies which color buttons appear in the panel.
Parameters:
buttons - A constant that specifies which color buttons to show. The constants are:
  • COLOR_COMPONENT_FOREGROUND

getComponentForeground

public java.awt.Color getComponentForeground()
Gets the foreground color that is set in this panel.
Returns:
The foreground color.

setComponentForeground

public void setComponentForeground(java.awt.Color c)
Sets the foreground color in this panel. Normally, this is the foreground color of the object from which the panel is invoked.
Parameters:
c - the current foreground color.

getComponentFont

public java.awt.Font getComponentFont()
Gets the font that is selected in this panel.
Returns:
The selected font.

setComponentFont

public void setComponentFont(java.awt.Font f)
Sets the Font in this panel. Normally, this is the font of the object from which this panel is invoked.
Parameters:
f - the current font. status new

isUnderlineStyle

public boolean isUnderlineStyle()
Find if the font has underline property.
Returns:
a boolean representing if underline property is set.

isStrikeThroughStyle

public boolean isStrikeThroughStyle()
Find if the font has StrikeThrough property.
Returns:
a boolean representing if StrikeThrough property is set.

isBoldStyle

public boolean isBoldStyle()
Find if the font has bold property.
Returns:
a boolean representing if bold property is set.

isItalicStyle

public boolean isItalicStyle()
Find if the font has italic property.
Returns:
a boolean representing if italic property is set.

getHorizontalAlignment

public int getHorizontalAlignment()
Gets the horizontal alignment that is selected in this panel.
Returns:
A constant that specifies the horizontal alignment. The constants are inherited.

setHorizontalAlignment

public void setHorizontalAlignment(int alignment)
Sets the horizontal alignment. Normally this is the horizontal alignment of the object from which this panel is invoked.
Parameters:
alignment - a constant that specifies the current alignment. The constants are inherited.

getVerticalAlignment

public int getVerticalAlignment()
Gets the vertical alignment that is selected in this panel.
Returns:
A constant that specifies vertical alignment. The constants are inherited.

getWrapWordsState

public boolean getWrapWordsState()
Gets the state of the 'Wrap words in cell' checkbox.
Returns:
true if checked, false if not

getFontName

public java.lang.String getFontName()
Gets the font name.
Returns:
a string containing the font name

getFontSize

public int getFontSize()
Gets the font size.
Returns:
a value containing the font size

setVerticalAlignment

public void setVerticalAlignment(int alignment)
Sets the vertical alignment. Normally this is the vertical alignment of the object from which the panel is invoked.
Parameters:
alignment - a constant that specifies the current vertical alignment.

apply

public void apply()
Applies font properties to the 'ViewStyle'

setLocale

public void setLocale(java.util.Locale loc)
set locale of the font
Overrides:
setLocale in class java.awt.Component

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.