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


oracle.dss.dataView
Class BaseTitle

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JLabel
                          |
                          +--oracle.dss.dataView.BaseTitle
All Implemented Interfaces:
javax.accessibility.Accessible, DataviewTitles, FontAttribute, HorizontalAlignment, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants, Titles, ViewComponent
Direct Known Subclasses:
Footnote, Subtitle, Title

public abstract class BaseTitle
extends javax.swing.JLabel
implements DataviewTitles, ViewComponent, java.io.Serializable

The title component for a data view.

See Also:
Serialized Form

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

 

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

 

Method Summary
 java.awt.Font getFont()
          Retrieves a Font object for the title.
 java.lang.String getFontName()
          get font name
 int getFontSize()
          get font size
 int getHorizontalAlignment()
          Retrieves the horizontal alignment for the font within its rectangle.
 java.lang.String getText()
          Returns the parsed text for a string that includes variables.
 java.lang.String getUnParseText()
          Retrieves the unparsed text for the title.
 boolean isFocusTraversable()
          Indicates whether this component can receive the focus.
 boolean isFontBold()
          is font bold?
 boolean isFontItalic()
          is font italic?
 boolean isUnderline()
          Indicates whether the text is underlined with one line.
 boolean isVisible()
          Indicates whether the title is visible.
 void setBackground(java.awt.Color bg)
          Specifies the background color of this component.
 void setFont(java.awt.Font f)
          Specifies a Font object for the title.
 void setFontBold(boolean bold)
          specifies wheather the font is bold.
 void setFontItalic(boolean italic)
          specifies wheather the font is italic.
 void setFontName(java.lang.String name)
          specifies the font name.
 void setFontSize(int size)
          specifies the font size.
 void setForeground(java.awt.Color fg)
          Specifies the foreground color of this component.
 void setHorizontalAlignment(int alignment)
          Specifies the horizontal alignment for the font within its rectangle.
 void setText(java.lang.String t)
          Specifies the parsed text for a String that includes variables.
 void setUnderline(boolean underline)
          Specifies whether the text is underlined with one line.
 void setVisible(boolean b)
          Specifies whether the title is visible.

 

Methods inherited from class javax.swing.JLabel
getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setUI, setVerticalAlignment, setVerticalTextPosition, 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, 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, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, 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, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, 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 oracle.dss.dataView.DataviewTitles
getBackground, getForeground

 

Methods inherited from interface oracle.dss.dataView.ViewComponent
getBeanInfo, getComponentName, getID

 

Method Detail

isFocusTraversable

public boolean isFocusTraversable()
Indicates whether this component can receive the focus.
Overrides:
isFocusTraversable in class javax.swing.JComponent
Returns:
true if this component can receive the focus.

setVisible

public void setVisible(boolean b)
Specifies whether the title is visible.
Specified by:
setVisible in interface Titles
Overrides:
setVisible in class javax.swing.JComponent
Parameters:
b - true to make the title visible, false to make the title invisible.

isVisible

public boolean isVisible()
Indicates whether the title is visible.
Specified by:
isVisible in interface Titles
Overrides:
isVisible in class java.awt.Component
Returns:
true if it is visible, false if it is invisible.

setText

public void setText(java.lang.String t)
Specifies the parsed text for a String that includes variables.
Specified by:
setText in interface Titles
Overrides:
setText in class javax.swing.JLabel
Parameters:
t - The parsed text for a String that includes variables. If you pass an empty string, then this method logs an error with the error handler and does not change the text.

getText

public java.lang.String getText()
Returns the parsed text for a string that includes variables.
Specified by:
getText in interface Titles
Overrides:
getText in class javax.swing.JLabel
Returns:
The parsed text for a string that includes variables.

getUnParseText

public java.lang.String getUnParseText()
Retrieves the unparsed text for the title. Unparsed text is text with variable names instead of variable definitions.
Specified by:
getUnParseText in interface Titles
Returns:
The unparsed text for the title.

setBackground

public void setBackground(java.awt.Color bg)
Specifies the background color of this component.
Specified by:
setBackground in interface DataviewTitles
Overrides:
setBackground in class javax.swing.JComponent
Following copied from interface: oracle.dss.dataView.DataviewTitles
Parameters:
bg - The background color for this title.

setForeground

public void setForeground(java.awt.Color fg)
Specifies the foreground color of this component.
Specified by:
setForeground in interface DataviewTitles
Overrides:
setForeground in class javax.swing.JComponent
Following copied from interface: oracle.dss.dataView.DataviewTitles
Parameters:
fg - The foreground color for this title.

setFont

public void setFont(java.awt.Font f)
Specifies a Font object for the title. A Font object is the awt object with attributes such as name, style, and absolute size.
Specified by:
setFont in interface FontAttribute
Overrides:
setFont in class javax.swing.JComponent
Parameters:
f - A Font object for the title.

getFont

public java.awt.Font getFont()
Retrieves a Font object for the title. A Font object is the awt object with attributes such as name, style, and absolute size.
Specified by:
getFont in interface FontAttribute
Overrides:
getFont in class java.awt.Component
Returns:
A Font object for the title.

getFontSize

public int getFontSize()
get font size

setFontSize

public void setFontSize(int size)
specifies the font size.
Parameters:
size - of the font

getFontName

public java.lang.String getFontName()
get font name

setFontName

public void setFontName(java.lang.String name)
specifies the font name.
Parameters:
name - of the font

isFontBold

public boolean isFontBold()
is font bold?

setFontBold

public void setFontBold(boolean bold)
specifies wheather the font is bold.
Parameters:
bold - true to set the font to bold false to prevent the font to be bold.

isFontItalic

public boolean isFontItalic()
is font italic?

setFontItalic

public void setFontItalic(boolean italic)
specifies wheather the font is italic.
Parameters:
italic - true to set the font to italic false to prevent the font to be italic.

setUnderline

public void setUnderline(boolean underline)
Specifies whether the text is underlined with one line.
Specified by:
setUnderline in interface DataviewTitles
Parameters:
underline - true to underline the text with one line, false to prevent the text from being underlined with one line.

isUnderline

public boolean isUnderline()
Indicates whether the text is underlined with one line.
Specified by:
isUnderline in interface DataviewTitles
Returns:
true if the text is underlined with one line, false if the text is not underlined with one line.

setHorizontalAlignment

public void setHorizontalAlignment(int alignment)
Specifies the horizontal alignment for the font within its rectangle.
Specified by:
setHorizontalAlignment in interface HorizontalAlignment
Overrides:
setHorizontalAlignment in class javax.swing.JLabel
Parameters:
alignment - A swing constant that represents the horizontal alignment of the font within its rectangle. Valid constants are SwingConstants.RIGHT, SwingConstants.LEFT, SwingConstants.CENTER, and SwingConstants.LEADING. The SwingConstants class is defined in the javax.swing package.

getHorizontalAlignment

public int getHorizontalAlignment()
Retrieves the horizontal alignment for the font within its rectangle. Valid constants are SwingConstants.RIGHT, SwingConstants.LEFT, SwingConstants.CENTER, and SwingConstants.LEADING. The SwingConstants class is defined in the javax.swing package.
Specified by:
getHorizontalAlignment in interface HorizontalAlignment
Overrides:
getHorizontalAlignment in class javax.swing.JLabel
Returns:
A swing constant that represents the horizontal alignment of the font within its rectangle.

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


Copyright © 2003, Oracle. All Rights Reserved.