JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.swing
Class JCFontEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.util.swing.JCFontEvent
All Implemented Interfaces:
Serializable

public class JCFontEvent
extends EventObject

Fired for font related events.

See Also:
Serialized Form

Field Summary
static int BOLD_STYLE_CHANGE
          Font bold style change event.
static int FONT_CHANGE
          Font change event.
static int FONT_NAME_CHANGE
          Font name change event.
static int FONT_SIZE_CHANGE
          Font size change event.
static int ITALIC_STYLE_CHANGE
          Font italic style change event.
static int UNDERLINE_STYLE_CHANGE
          Font underline style change event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCFontEvent(Object source, int event, Font oldFont, boolean oldUnderline, Font font, boolean underline, boolean fontChanging)
          Creates a JCFontEvent.
 
Method Summary
 int getEvent()
          Retrieves the event.
 Font getFont()
          Retrieves the new font.
 Font getOldFont()
          Retrieves the old font.
 boolean getOldUnderline()
          Retrieves the old underline indication.
 boolean getUnderline()
          Retrieves the new underline indication.
 boolean isCancelFontChange()
          Gets the cancelFontChange indication.
 boolean isFontChanged()
          Gets the fontChanged indication.
 boolean isFontChanging()
          Gets the fontChanging indication.
 void setCancelFontChange(boolean cancelFontChange)
          Sets the cancelFontChange indication.
 void setFont(Font font)
          Sets the new font.
 void setFont(Font font, boolean underline)
          Sets the new font and underline indication.
 void setUnderline(boolean underline)
          Sets the new underline indication.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FONT_CHANGE

public static final int FONT_CHANGE
Font change event.

See Also:
Constant Field Values

FONT_NAME_CHANGE

public static final int FONT_NAME_CHANGE
Font name change event.

See Also:
Constant Field Values

FONT_SIZE_CHANGE

public static final int FONT_SIZE_CHANGE
Font size change event.

See Also:
Constant Field Values

BOLD_STYLE_CHANGE

public static final int BOLD_STYLE_CHANGE
Font bold style change event.

See Also:
Constant Field Values

ITALIC_STYLE_CHANGE

public static final int ITALIC_STYLE_CHANGE
Font italic style change event.

See Also:
Constant Field Values

UNDERLINE_STYLE_CHANGE

public static final int UNDERLINE_STYLE_CHANGE
Font underline style change event.

See Also:
Constant Field Values
Constructor Detail

JCFontEvent

public JCFontEvent(Object source,
                   int event,
                   Font oldFont,
                   boolean oldUnderline,
                   Font font,
                   boolean underline,
                   boolean fontChanging)
Creates a JCFontEvent.

Parameters:
event - the event
source - a JCFontChooser class
oldFont - the old font
oldUnderline - the old underline indication
font - the new font
underline - the new underline indication
fontChanging - the font changing indication
Method Detail

getEvent

public int getEvent()
Retrieves the event.

Returns:
the event

getOldFont

public Font getOldFont()
Retrieves the old font.

Returns:
old font

getOldUnderline

public boolean getOldUnderline()
Retrieves the old underline indication.

Returns:
old underlint indication

getFont

public Font getFont()
Retrieves the new font.

Returns:
new font

getUnderline

public boolean getUnderline()
Retrieves the new underline indication.

Returns:
new underline indication

setFont

public void setFont(Font font)
Sets the new font. This is available only in FontChanging().

Parameters:
font - new font

setFont

public void setFont(Font font,
                    boolean underline)
Sets the new font and underline indication. This is available only in FontChanging().

Parameters:
font - new font
underline - underline indication

setUnderline

public void setUnderline(boolean underline)
Sets the new underline indication. This is available only in FontChanging().

Parameters:
underline - underline indication

isCancelFontChange

public boolean isCancelFontChange()
Gets the cancelFontChange indication.

Returns:
cancelFontChange indication

setCancelFontChange

public void setCancelFontChange(boolean cancelFontChange)
Sets the cancelFontChange indication.

Parameters:
cancelFontChange -

isFontChanging

public boolean isFontChanging()
Gets the fontChanging indication.

Returns:
fontChanging indication

isFontChanged

public boolean isFontChanged()
Gets the fontChanged indication.

Returns:
fontChanged indication

Copyright © 2004 Quest Software Inc..
All rights reserved.