|
JBCSolutions - JbcBeans v1.5 This document is the API specification for the JbcBeans, version 1.5 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jbc.beans.JbcClock
public class JbcClock
A graphic object that may be used at the developer's convenience.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static int |
FLAT
Constant for flat style. |
static int |
LOWERED
Constant for lowered style. |
static int |
RAISED
Constant for raised style. |
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 | |
---|---|
JbcClock()
Default JbcClock constructor. |
Method Summary | |
---|---|
java.lang.String |
getAbout()
Application code will not use these methods explicitly. |
java.awt.Color |
getBackground()
Gets the background color of this component. |
int |
getBevelSize()
Gets the size of the bevel. |
java.util.Calendar |
getCalendar()
Returns the calendar property. |
int |
getClockBevelType()
Returns the type of clock bevel, one of the following constants defined in JbcClock :
RAISED ,
LOWERED , or
FLAT . |
int |
getClockBorderBevelType()
Returns the type of border bevel, one of the following constants defined in JbcClock :
RAISED ,
LOWERED , or
FLAT . |
java.util.Date |
getDate()
Returns the date property. |
java.awt.Color |
getForeground()
Gets the foreground color of this component. |
int |
getHourOfDay()
Gets the hour of day property. |
int |
getMinute()
Gets the minute property. |
int |
getSecond()
Gets the second property. |
long |
getTime()
Returns the time property. |
boolean |
isSecondEnabled()
Returns true if the second hand is enabled. |
void |
paint(java.awt.Graphics g)
Paints this component. |
void |
paintInterface(java.awt.Graphics g)
|
void |
setAbout(java.lang.String text)
Application code will not use these methods explicitly. |
void |
setBackground(java.awt.Color color)
Sets the background color of this component. |
void |
setBevelSize(int size)
Sets the size of the bevel. |
void |
setCalendar(java.util.Calendar c)
Sets the calendar property. |
void |
setClockBevelType(int v)
Sets the type of clock bevel, one of the following constants defined in JbcClock :
RAISED ,
LOWERED , or
FLAT . |
void |
setClockBorderBevelType(int v)
Sets the type of border bevel, one of the following constants defined in JbcClock :
RAISED ,
LOWERED , or
FLAT . |
void |
setDate(java.util.Date d)
Sets the date property. |
void |
setForeground(java.awt.Color color)
Sets the foreground color of this component. |
void |
setHourOfDay(int h)
Sets the hour of day property. |
void |
setMinute(int m)
Sets the minute property. |
void |
setSecond(int s)
Sets the second property. |
void |
setSecondEnabled(boolean b)
Sets whether the second hand is enabled or not. |
void |
setTime(long l)
Sets the time property. |
void |
updateUI()
Notification from the UIFactory that the L&F has changed. |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int RAISED
getClockBorderBevelType()
,
setClockBorderBevelType(int)
,
getClockBevelType()
,
setClockBevelType(int)
,
Constant Field Valuespublic static final int LOWERED
getClockBorderBevelType()
,
setClockBorderBevelType(int)
,
getClockBevelType()
,
setClockBevelType(int)
,
Constant Field Valuespublic static final int FLAT
getClockBorderBevelType()
,
setClockBorderBevelType(int)
,
getClockBevelType()
,
setClockBevelType(int)
,
Constant Field ValuesConstructor Detail |
---|
public JbcClock()
Creates a JbcClock
instance.
Method Detail |
---|
public void setAbout(java.lang.String text)
public java.lang.String getAbout()
public final void paintInterface(java.awt.Graphics g)
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
g
- The graphics context to use for painting.public int getClockBorderBevelType()
JbcClock
:
RAISED
,
LOWERED
, or
FLAT
.
setClockBorderBevelType(int)
public void setClockBorderBevelType(int v)
JbcClock
:
RAISED
,
LOWERED
, or
FLAT
.
getClockBorderBevelType()
public int getClockBevelType()
JbcClock
:
RAISED
,
LOWERED
, or
FLAT
.
setClockBevelType(int)
public void setClockBevelType(int v)
JbcClock
:
RAISED
,
LOWERED
, or
FLAT
.
getClockBevelType()
public java.util.Calendar getCalendar()
setCalendar(java.util.Calendar)
,
setDate(java.util.Date)
,
setTime(long)
,
setHourOfDay(int)
,
setMinute(int)
,
setSecond(int)
public void setCalendar(java.util.Calendar c)
getCalendar()
,
getDate()
,
getTime()
,
getHourOfDay()
,
getMinute()
,
getSecond()
public java.util.Date getDate()
setCalendar(java.util.Calendar)
,
setDate(java.util.Date)
,
setTime(long)
,
setHourOfDay(int)
,
setMinute(int)
,
setSecond(int)
public void setDate(java.util.Date d)
getCalendar()
,
getDate()
,
getTime()
,
getHourOfDay()
,
getMinute()
,
getSecond()
public long getTime()
setCalendar(java.util.Calendar)
,
setDate(java.util.Date)
,
setTime(long)
,
setHourOfDay(int)
,
setMinute(int)
,
setSecond(int)
public void setTime(long l)
getCalendar()
,
getDate()
,
getTime()
,
getHourOfDay()
,
getMinute()
,
getSecond()
public void setHourOfDay(int h)
setCalendar(java.util.Calendar)
,
setDate(java.util.Date)
,
setTime(long)
,
setHourOfDay(int)
,
setMinute(int)
,
setSecond(int)
public int getHourOfDay()
getCalendar()
,
getDate()
,
getTime()
,
getHourOfDay()
,
getMinute()
,
getSecond()
public void setMinute(int m)
setCalendar(java.util.Calendar)
,
setDate(java.util.Date)
,
setTime(long)
,
setHourOfDay(int)
,
setMinute(int)
,
setSecond(int)
public int getMinute()
getCalendar()
,
getDate()
,
getTime()
,
getHourOfDay()
,
getMinute()
,
getSecond()
public void setSecond(int s)
setCalendar(java.util.Calendar)
,
setDate(java.util.Date)
,
setTime(long)
,
setHourOfDay(int)
,
setMinute(int)
,
setSecond(int)
public int getSecond()
getCalendar()
,
getDate()
,
getTime()
,
getHourOfDay()
,
getMinute()
,
getSecond()
public boolean isSecondEnabled()
setSecondEnabled(boolean)
public void setSecondEnabled(boolean b)
b
- true if the second hand is enabled, else falseisSecondEnabled()
public void setBevelSize(int size)
size
- the value of the bevel sizegetBevelSize()
public int getBevelSize()
setBevelSize(int)
public void updateUI()
updateUI
in class javax.swing.JComponent
JComponent.updateUI()
public java.awt.Color getBackground()
getBackground
in class java.awt.Component
setBackground(java.awt.Color)
public void setBackground(java.awt.Color color)
setBackground
in class javax.swing.JComponent
color
- The color to become this component's
background color.
If this parameter is null then this component will inherit
the default background.getBackground()
public java.awt.Color getForeground()
getForeground
in class java.awt.Component
setForeground(java.awt.Color)
public void setForeground(java.awt.Color color)
setForeground
in class javax.swing.JComponent
color
- The color to become this component's
foreground color.
If this parameter is null then this component will inherit
the default foreground.getForeground()
|
JBCSolutions - JbcBeans v1.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |