org.rr0.is.presentation.view.report.applet
Class TabbedPanel.Tab

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--org.rr0.is.presentation.view.report.applet.TabbedPanel.Tab

public class TabbedPanel.Tab
extends Canvas


Field Summary
 private intfontHeight
           
 private intfontWidth
           
 private booleanselected
           
 private Stringtext
           
 private ColorunselectedColor
           

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
TabbedPanel.Tab(String name, String label)
           

Method Summary
 DimensiongetPreferredSize()
          Gets the preferred size of this component.
 StringgetText()
           
 voidpaint(Graphics g)
           
 voidsetSelected(boolean selected)
           
 private voidsetText(String name)
           

Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, show, hide, getForeground, setForeground, getBackground, setBackground, getFont, setFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, doLayout, layout, validate, invalidate, getGraphics, getFontMetrics, setCursor, getCursor, update, paintAll, repaint, repaint, repaint, repaint, print, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, getComponentAt, locate, getComponentAt, deliverEvent, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getListeners, getInputMethodRequests, getInputContext, enableEvents, disableEvents, coalesceEvents, processEvent, processComponentEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, removeNotify, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, remove, paramString, toString, list, list, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

fontHeight

private int fontHeight

fontWidth

private int fontWidth

selected

private boolean selected

text

private String text

unselectedColor

private Color unselectedColor
Constructor Detail

TabbedPanel.Tab

public TabbedPanel.Tab(String name, String label)
Method Detail

getPreferredSize

public Dimension getPreferredSize()
Gets the preferred size of this component.
Returns: a dimension object indicating this component's preferred size
See Also:
java.awt.Component.getMinimumSize(), LayoutManager

getText

public String getText()

paint

public void paint(Graphics g)

setSelected

public void setSelected(boolean selected)

setText

private void setText(String name)

Association Links

to Class java.lang.String

to Class java.awt.Color