|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
org.jscience.architecture.traffic.util.Hyperlink
public class Hyperlink
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected int |
alignment
DOCUMENT ME! |
static int |
CENTER
Indicates that the label should be centered. |
protected java.lang.String |
label
DOCUMENT ME! |
static int |
LEFT
Indicates that the label should be left justified. |
protected java.util.Vector |
listeners
DOCUMENT ME! |
static int |
RIGHT
Indicates that the label should be right justified. |
protected java.awt.Rectangle |
textBounds
DOCUMENT ME! |
protected boolean |
underline
DOCUMENT ME! |
| 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 | |
|---|---|
Hyperlink()
Constructs an empty hyperlink. |
|
Hyperlink(java.lang.String text)
Constructs a new hyperlink with the specified string of text, left justified. |
|
Hyperlink(java.lang.String text,
int al)
Constructs a new hyperlink that presents the specified string of text with the specified alignment. |
|
| Method Summary | |
|---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action events from this hyperlink. |
java.awt.event.ActionListener[] |
getActionListeners()
Returns an array of the action listeners. |
int |
getAlignment()
Returns the alignment of this hyperlink. |
java.lang.String |
getText()
Returns the text of this hyperlink. |
boolean |
getUnderline()
Checks if the text of this hyperlink is underlined. |
boolean |
isFocusTraversable()
Returns true to allow hyperlinks to receive focus. |
void |
paint(java.awt.Graphics gr)
Paints this hyperlink on the given Graphics object. |
void |
paintAll(java.awt.Graphics g)
DOCUMENT ME! |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer receives action events from this hyperlink. |
void |
removeAllActionListeners()
Removes all action listeners. |
void |
setAlignment(int al)
Sets the alignment of this hyperlink to the specified alignment. |
void |
setText(java.lang.String text)
Sets the text of this hyperlink to the specified text. |
void |
setUnderline(boolean ul)
Underlines the text of this hyperlink if the specified value is true. |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LEFT
public static final int CENTER
public static final int RIGHT
protected java.lang.String label
protected boolean underline
protected int alignment
protected java.util.Vector listeners
protected java.awt.Rectangle textBounds
| Constructor Detail |
|---|
public Hyperlink()
public Hyperlink(java.lang.String text)
text - The lavel of the new hyperlink.
public Hyperlink(java.lang.String text,
int al)
text - The label of the new hyperlink.al - The alignment of the label.| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
text - DOCUMENT ME!public boolean getUnderline()
public void setUnderline(boolean ul)
ul - DOCUMENT ME!public int getAlignment()
public void setAlignment(int al)
al - DOCUMENT ME!public void addActionListener(java.awt.event.ActionListener l)
l - The action listener to add.public void removeActionListener(java.awt.event.ActionListener l)
l - The action listener to remove.public void removeAllActionListeners()
public java.awt.event.ActionListener[] getActionListeners()
public boolean isFocusTraversable()
isFocusTraversable in class java.awt.Componentpublic void paint(java.awt.Graphics gr)
paint in class java.awt.Componentgr - The Graphics object to paint this hyperlink on.public void paintAll(java.awt.Graphics g)
paintAll in class java.awt.Componentg - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||