Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.text
Class StyledEditorKit.FontSizeAction  view StyledEditorKit.FontSizeAction download StyledEditorKit.FontSizeAction.java

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.text.TextAction
          extended byjavax.swing.text.StyledEditorKit.StyledTextAction
              extended byjavax.swing.text.StyledEditorKit.FontSizeAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Enclosing class:
StyledEditorKit

public static class StyledEditorKit.FontSizeAction
extends StyledEditorKit.StyledTextAction

Sets the font size attribute on the selected text.


Field Summary
private  int size
          The font size to set.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
StyledEditorKit.FontSizeAction(java.lang.String nm, int size)
          Creates a new instance of FontSizeAction to set the font size to size.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Performs the action.
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

private int size
The font size to set.

Constructor Detail

StyledEditorKit.FontSizeAction

public StyledEditorKit.FontSizeAction(java.lang.String nm,
                                      int size)
Creates a new instance of FontSizeAction to set the font size to size.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Performs the action.