edu.princeton.swing
Class PHyperlink

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.AbstractButton
                  extended by edu.princeton.swing.PHyperlink
All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, SwingConstants

public class PHyperlink
extends AbstractButton

PHyperlink is a subclass of AbstractButton which looks and feels like a hyperlink. Note the following correlation between the properties of a ButtonModel and the state of the hyperlink:
!isPressed() && !isRollover() && !isSelected -> Link
!isPressed() && isRollover() && !isSelected -> Hover
!isPressed() && !isRollover() && isSelected -> Visited
!isPressed() && isRollover() && isSelected -> Visited Hover
isPressed() -> Active

See Also:
Serialized Form

Nested Class Summary
static class PHyperlink.HyperlinkButtonModel
          HyperlinkButtonModel is similar to JToggleButton.ToggleButtonModel except that once it is selected, it doesn't ever toggle back without an explicit setSelected() call.
protected  class PHyperlink.Listener
          Listener implements ChangeListener to listen for changes in the ButtonModel's state and MouseListener to listen for mouse actions on the label.
static class PHyperlink.UnderlineBorder
          UnderlineBorder is a simple subclass of AbstractBorder that draws an underline.
 
Nested classes/interfaces inherited from class javax.swing.AbstractButton
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static byte BLUE_STYLE
           
static byte CLASSIC_HOVER_STYLE
           
static byte CLASSIC_STYLE
           
static byte METAL_STYLE
           
 
Fields inherited from class javax.swing.AbstractButton
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
 
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.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, 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
 
Constructor Summary
PHyperlink()
          Create a new PHyperlink.
PHyperlink(Action a)
          Create a new PHyperlink.
PHyperlink(Action a, byte style)
          Create a new PHyperlink.
PHyperlink(String text)
          Create a new PHyperlink.
PHyperlink(String text, Icon icon)
          Create a new PHyperlink.
PHyperlink(String text, Icon icon, byte style)
          Create a new PHyperlink.
PHyperlink(String text, Icon icon, Color linkColor, boolean linkUnderline, Color hoverColor, boolean hoverUnderline, Color disabledColor, boolean disabledUnderline, Color visitedColor, boolean visitedUnderline, Color visitedHoverColor, boolean visitedHoverUnderline, Color visitedDisabledColor, boolean visitedDisabledUnderline, Color activeColor, boolean activeUnderline)
          Create a new PHyperlink.
 
Method Summary
 Color getActiveColor()
          Returns the color of the link in an active, non-disabled state.
 boolean getActiveUnderline()
          Returns wheter or not to underline the link in an active, non-disabled state.
 Color getDisabledColor()
          Returns the color of the link in a non-visited, disabled state.
 boolean getDisabledUnderline()
          Returns wheter or not to underline the link in a non-visited, disabled state.
 Color getHoverColor()
          Returns the color of the link in a hover, non-visited, non-active, non-disabled state.
 boolean getHoverUnderline()
          Returns wheter or not to underline the link in a hover, non-visited, non-active, non-disabled state.
 Color getLinkColor()
          Returns the color of the link in a non-hover, non-visited, non-active, non-disabled state.
 boolean getLinkUnderline()
          Returns wheter or not to underline the link in a non-hover, non-visited, non-active, non-disabled state.
 Color getVisitedColor()
          Returns the color of the link in a non-hover, visited, non-active, non-disabled state.
 Color getVisitedDisabledColor()
          Returns the color of the link in a visited, disabled state.
 boolean getVisitedDisabledUnderline()
          Returns wheter or not to underline the link in a visited, disabled state.
 Color getVisitedHoverColor()
          Returns the color of the link in a hover, visited, non-active, non-disabled state.
 boolean getVisitedHoverUnderline()
          Returns wheter or not to underline the link in a hover, visited, non-active, non-disabled state.
 boolean getVisitedUnderline()
          Returns wheter or not to underline the link in a non-hover, visited, non-active, non-disabled state.
 void initHyperlink()
          Called by the constructors to initialize the hyperlink.
 void setActiveColor(Color color)
          Sets the color of the link in an active, non-disabled state.
 void setActiveUnderline(boolean underline)
          Sets wheter or not to underline the link in an active, non-disabled state.
 void setDisabledColor(Color color)
          Sets the color of the link in a non-visited, disabled state.
 void setDisabledIcon(Icon icon)
          Intercept setDisabledIcon() calls to propagate the changes to the label.
 void setDisabledSelectedIcon(Icon icon)
          Intercept setDisabledSelectedIcon() calls to propagate the changes to the label.
 void setDisabledUnderline(boolean underline)
          Sets wheter or not to underline the link in a non-visited, disabled state.
 void setEnabled(boolean enabled)
          Intercept setEnabled() calls to propagate the changes to the label.
 void setHoverColor(Color color)
          Sets the color of the link in a hover, non-visited, non-active, non-disabled state.
 void setHoverUnderline(boolean underline)
          Sets wheter or not to underline the link in a hover, non-visited, non-active, non-disabled state.
 void setIcon(Icon icon)
          Intercept setIcon() calls to propagate the changes to the label.
 void setLinkColor(Color color)
          Sets the color of the link in a non-hover, non-visited, non-active, non-disabled state.
 void setLinkUnderline(boolean underline)
          Sets wheter or not to underline the link in a non-hover, non-visited, non-active, non-disabled state.
 void setModel(ButtonModel model)
          Intercept setModel() calls to keep a listener on the model.
 void setPressedIcon(Icon icon)
          Intercept setPressedIcon() calls to propagate the changes to the label.
 void setRolloverIcon(Icon icon)
          Intercept setRolloverIcon() calls to propagate the changes to the label.
 void setRolloverSelectedIcon(Icon icon)
          Intercept setRolloverSelectedIcon() calls to propagate the changes to the label.
 void setSelectedIcon(Icon icon)
          Intercept setSelectedIcon() calls to propagate the changes to the label.
 void setText(String text)
          Intercept setText() calls to propagate the changes to the label.
 void setVisitedColor(Color color)
          Sets the color of the link in a non-hover, visited, non-active, non-disabled state.
 void setVisitedDisabledColor(Color color)
          Sets the color of the link in a visited, disabled state.
 void setVisitedDisabledUnderline(boolean underline)
          Sets wheter or not to underline the link in a visited, disabled state.
 void setVisitedHoverColor(Color color)
          Sets the color of the link in a hover, visited, non-active, non-disabled state.
 void setVisitedHoverUnderline(boolean underline)
          Sets wheter or not to underline the link in a hover, visited, non-active, non-disabled state.
 void setVisitedUnderline(boolean underline)
          Sets wheter or not to underline the link in a non-hover, visited, non-active, non-disabled state.
 
Methods inherited from class javax.swing.AbstractButton
actionPropertyChanged, addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, configurePropertiesFromAction, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, paramString, removeActionListener, removeChangeListener, removeItemListener, removeNotify, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisplayedMnemonicIndex, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setMultiClickThreshhold, setRolloverEnabled, setSelected, setUI, setVerticalAlignment, setVerticalTextPosition, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSIC_STYLE

public static final byte CLASSIC_STYLE
See Also:
Constant Field Values

CLASSIC_HOVER_STYLE

public static final byte CLASSIC_HOVER_STYLE
See Also:
Constant Field Values

BLUE_STYLE

public static final byte BLUE_STYLE
See Also:
Constant Field Values

METAL_STYLE

public static final byte METAL_STYLE
See Also:
Constant Field Values
Constructor Detail

PHyperlink

public PHyperlink()
Create a new PHyperlink.


PHyperlink

public PHyperlink(String text)
Create a new PHyperlink.


PHyperlink

public PHyperlink(String text,
                  Icon icon)
Create a new PHyperlink.


PHyperlink

public PHyperlink(String text,
                  Icon icon,
                  byte style)
Create a new PHyperlink.


PHyperlink

public PHyperlink(Action a)
Create a new PHyperlink.


PHyperlink

public PHyperlink(Action a,
                  byte style)
Create a new PHyperlink.


PHyperlink

public PHyperlink(String text,
                  Icon icon,
                  Color linkColor,
                  boolean linkUnderline,
                  Color hoverColor,
                  boolean hoverUnderline,
                  Color disabledColor,
                  boolean disabledUnderline,
                  Color visitedColor,
                  boolean visitedUnderline,
                  Color visitedHoverColor,
                  boolean visitedHoverUnderline,
                  Color visitedDisabledColor,
                  boolean visitedDisabledUnderline,
                  Color activeColor,
                  boolean activeUnderline)
Create a new PHyperlink.

Method Detail

initHyperlink

public void initHyperlink()
Called by the constructors to initialize the hyperlink.


setModel

public void setModel(ButtonModel model)
Intercept setModel() calls to keep a listener on the model.

Overrides:
setModel in class AbstractButton

setEnabled

public void setEnabled(boolean enabled)
Intercept setEnabled() calls to propagate the changes to the label.

Overrides:
setEnabled in class AbstractButton

setText

public void setText(String text)
Intercept setText() calls to propagate the changes to the label.

Overrides:
setText in class AbstractButton

setPressedIcon

public void setPressedIcon(Icon icon)
Intercept setPressedIcon() calls to propagate the changes to the label.

Overrides:
setPressedIcon in class AbstractButton

setIcon

public void setIcon(Icon icon)
Intercept setIcon() calls to propagate the changes to the label.

Overrides:
setIcon in class AbstractButton

setSelectedIcon

public void setSelectedIcon(Icon icon)
Intercept setSelectedIcon() calls to propagate the changes to the label.

Overrides:
setSelectedIcon in class AbstractButton

setRolloverIcon

public void setRolloverIcon(Icon icon)
Intercept setRolloverIcon() calls to propagate the changes to the label.

Overrides:
setRolloverIcon in class AbstractButton

setRolloverSelectedIcon

public void setRolloverSelectedIcon(Icon icon)
Intercept setRolloverSelectedIcon() calls to propagate the changes to the label.

Overrides:
setRolloverSelectedIcon in class AbstractButton

setDisabledIcon

public void setDisabledIcon(Icon icon)
Intercept setDisabledIcon() calls to propagate the changes to the label.

Overrides:
setDisabledIcon in class AbstractButton

setDisabledSelectedIcon

public void setDisabledSelectedIcon(Icon icon)
Intercept setDisabledSelectedIcon() calls to propagate the changes to the label.

Overrides:
setDisabledSelectedIcon in class AbstractButton

setLinkColor

public void setLinkColor(Color color)
Sets the color of the link in a non-hover, non-visited, non-active, non-disabled state. A null value indicates that color should be the same as the foreground.

Parameters:
color - The new color of a the link in a non-hover, non-visited, non-active, non-disabled state.

getLinkColor

public Color getLinkColor()
Returns the color of the link in a non-hover, non-visited, non-active, non-disabled state. A null value indicates that color should be the same as the foreground.

Returns:
The color of a the link in a non-hover, non-visited, non-active, non-disabled state.

setLinkUnderline

public void setLinkUnderline(boolean underline)
Sets wheter or not to underline the link in a non-hover, non-visited, non-active, non-disabled state.

Parameters:
underline - Wheter or not to underline the link in a non-hover, non-visited, non-active, non-disabled state.

getLinkUnderline

public boolean getLinkUnderline()
Returns wheter or not to underline the link in a non-hover, non-visited, non-active, non-disabled state.

Returns:
underline Wheter or not to underline the link in a non-hover, non-visited, non-active, non-disabled state.

setHoverColor

public void setHoverColor(Color color)
Sets the color of the link in a hover, non-visited, non-active, non-disabled state. A null value indicates that color should be the same as the link color.

Parameters:
color - The new color of a the link in a hover, non-visited, non-active, non-disabled state.

getHoverColor

public Color getHoverColor()
Returns the color of the link in a hover, non-visited, non-active, non-disabled state. A null value indicates that color should be the same as the link color.

Returns:
The color of a the link in a hover, non-visited, non-active, non-disabled state.

setHoverUnderline

public void setHoverUnderline(boolean underline)
Sets wheter or not to underline the link in a hover, non-visited, non-active, non-disabled state.

Parameters:
underline - Wheter or not to underline the link in a hover, non-visited, non-active, non-disabled state.

getHoverUnderline

public boolean getHoverUnderline()
Returns wheter or not to underline the link in a hover, non-visited, non-active, non-disabled state.

Returns:
underline Wheter or not to underline the link in a hover, non-visited, non-active, non-disabled state.

setDisabledColor

public void setDisabledColor(Color color)
Sets the color of the link in a non-visited, disabled state. A null value indicates that color should be the same as the link color.

Parameters:
color - The new color of a the link in a non-visited, disabled state.

getDisabledColor

public Color getDisabledColor()
Returns the color of the link in a non-visited, disabled state. A null value indicates that color should be the same as the link color.

Returns:
The color of a the link in a non-visited, disabled state.

setDisabledUnderline

public void setDisabledUnderline(boolean underline)
Sets wheter or not to underline the link in a non-visited, disabled state.

Parameters:
underline - Wheter or not to underline the link in a non-visited, disabled state.

getDisabledUnderline

public boolean getDisabledUnderline()
Returns wheter or not to underline the link in a non-visited, disabled state.

Returns:
underline Wheter or not to underline the link in a non-visited, disabled state.

setVisitedColor

public void setVisitedColor(Color color)
Sets the color of the link in a non-hover, visited, non-active, non-disabled state. A null value indicates that color should be the same as the link color.

Parameters:
color - The new color of a the link in a non-hover, visited, non-active, non-disabled state.

getVisitedColor

public Color getVisitedColor()
Returns the color of the link in a non-hover, visited, non-active, non-disabled state. A null value indicates that color should be the same as the link color.

Returns:
The color of a the link in a non-hover, visited, non-active, non-disabled state.

setVisitedUnderline

public void setVisitedUnderline(boolean underline)
Sets wheter or not to underline the link in a non-hover, visited, non-active, non-disabled state.

Parameters:
underline - Wheter or not to underline the link in a non-hover, visited, non-active, non-disabled state.

getVisitedUnderline

public boolean getVisitedUnderline()
Returns wheter or not to underline the link in a non-hover, visited, non-active, non-disabled state.

Returns:
underline Wheter or not to underline the link in a non-hover, visited, non-active, non-disabled state.

setVisitedHoverColor

public void setVisitedHoverColor(Color color)
Sets the color of the link in a hover, visited, non-active, non-disabled state. A null value indicates that color should be the same as the link color.

Parameters:
color - The new color of a the link in a hover, visited, non-active, non-disabled state.

getVisitedHoverColor

public Color getVisitedHoverColor()
Returns the color of the link in a hover, visited, non-active, non-disabled state. A null value indicates that color should be the same as the link color.

Returns:
The color of a the link in a hover, visited, non-active, non-disabled state.

setVisitedHoverUnderline

public void setVisitedHoverUnderline(boolean underline)
Sets wheter or not to underline the link in a hover, visited, non-active, non-disabled state.

Parameters:
underline - Wheter or not to underline the link in a hover, visited, non-active, non-disabled state.

getVisitedHoverUnderline

public boolean getVisitedHoverUnderline()
Returns wheter or not to underline the link in a hover, visited, non-active, non-disabled state.

Returns:
underline Wheter or not to underline the link in a hover, visited, non-active, non-disabled state.

setVisitedDisabledColor

public void setVisitedDisabledColor(Color color)
Sets the color of the link in a visited, disabled state. A null value indicates that color should be the same as the link color.

Parameters:
color - The new color of a the link in a visited, disabled state.

getVisitedDisabledColor

public Color getVisitedDisabledColor()
Returns the color of the link in a visited, disabled state. A null value indicates that color should be the same as the link color.

Returns:
The color of a the link in a visited, disabled state.

setVisitedDisabledUnderline

public void setVisitedDisabledUnderline(boolean underline)
Sets wheter or not to underline the link in a visited, disabled state.

Parameters:
underline - Wheter or not to underline the link in a visited, disabled state.

getVisitedDisabledUnderline

public boolean getVisitedDisabledUnderline()
Returns wheter or not to underline the link in a visited, disabled state.

Returns:
underline Wheter or not to underline the link in a visited, disabled state.

setActiveColor

public void setActiveColor(Color color)
Sets the color of the link in an active, non-disabled state. A null value indicates that color should be the same as the link color.

Parameters:
color - The new color of a the link in an active, non-disabled state.

getActiveColor

public Color getActiveColor()
Returns the color of the link in an active, non-disabled state. A null value indicates that color should be the same as the link color.

Returns:
The color of a the link in an active, non-disabled state.

setActiveUnderline

public void setActiveUnderline(boolean underline)
Sets wheter or not to underline the link in an active, non-disabled state.

Parameters:
underline - Wheter or not to underline the link in an active, non-disabled state.

getActiveUnderline

public boolean getActiveUnderline()
Returns wheter or not to underline the link in an active, non-disabled state.

Returns:
underline Wheter or not to underline the link in an active, non-disabled state.