|
|||||||||
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
com.eltima.chart.BevelText
A display area for a short text string.
You can specify count of shadows, shadow depth and bevel type.
You can also specify the gradient of the text and shadows.
Copyright: Copyright (c) 2000-2005
Company: Eltima Software
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
(package private) int |
depthX
|
(package private) int |
depthY
|
(package private) int |
insetX
|
(package private) int |
insetY
|
static int |
SHADOW_BOTH
|
static int |
SHADOW_FIRST
|
static int |
SHADOW_NONE
|
static int |
SHADOW_SECOND
|
(package private) int |
shadowType
|
(package private) java.lang.String |
text
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
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 | |
BevelText()
Creates a bevel text. |
|
BevelText(java.lang.String text)
Creates a bevel text with the specified text. |
Method Summary | |
int |
getDepthX()
Returns the deep replacing of the shadows along the X axes. |
int |
getDepthY()
Returns the deep replacing of the shadows along the Y axes. |
GradientModel |
getGradientShadow1()
Returns the first shadow GradientModel. |
GradientModel |
getGradientShadow2()
Returns the second shadow GradientModel. |
GradientModel |
getGradientText()
Returns the text GradientModel. |
java.awt.Dimension |
getMaximumSize()
Returns the value of the maximumSize property |
java.awt.Dimension |
getMinimumSize()
Returns the value of the mininumSize property |
java.awt.Dimension |
getPreferredSize()
Returns the value of the preferredSize property |
int |
getShadowType()
Returns the shadow type of this component. |
java.lang.String |
getText()
Returns the text string that the component displays. |
void |
paintComponent(java.awt.Graphics g)
|
void |
setDepthX(int depthX)
Sets the deep replacing of the shadows along the Y axes. |
void |
setDepthY(int depthY)
Sets the deep replacing of the shadows along the Y axes. |
void |
setFont(java.awt.Font font)
Sets the font of this component. |
void |
setGradientShadow1(GradientModel model)
Sets first shadow GradientModel. |
void |
setGradientShadow2(GradientModel model)
Sets second shadow GradientModel. |
void |
setGradientText(GradientModel model)
Sets text GradientModel. |
void |
setShadowType(int shadowType)
Sets the shadow type of this component. |
void |
setText(java.lang.String text)
Defines the single line of text this component will display. |
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, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.lang.String text
int depthX
int depthY
int insetX
int insetY
int shadowType
public static final int SHADOW_BOTH
public static final int SHADOW_FIRST
public static final int SHADOW_SECOND
public static final int SHADOW_NONE
Constructor Detail |
public BevelText(java.lang.String text)
text
- the text of bevel textpublic BevelText()
Method Detail |
public void setText(java.lang.String text)
public void setFont(java.awt.Font font)
Component.getFont()
public java.lang.String getText()
setText(java.lang.String)
public java.awt.Dimension getMinimumSize()
mininumSize
property
public java.awt.Dimension getMaximumSize()
maximumSize
property
public java.awt.Dimension getPreferredSize()
preferredSize
property
public void paintComponent(java.awt.Graphics g)
public int getDepthX()
public void setDepthX(int depthX)
depthX
- Set the deep along the X axes.public int getDepthY()
public void setDepthY(int depthY)
depthY
- Set the deep along the Y axes.public void setShadowType(int shadowType)
shadowType
- One of the following:
SHADOW_BOTH (the default),
SHADOW_FIRST,
SHADOW_SECOND,
SHADOW_NONEpublic int getShadowType()
public GradientModel getGradientText()
public GradientModel getGradientShadow2()
public GradientModel getGradientShadow1()
public void setGradientText(GradientModel model)
model
- GradientModelpublic void setGradientShadow2(GradientModel model)
model
- GradientModelpublic void setGradientShadow1(GradientModel model)
model
- GradientModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |