|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.klg.jclass.util.swing.JCFontEvent
Fired for font related events.
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 |
public static final int FONT_CHANGE
public static final int FONT_NAME_CHANGE
public static final int FONT_SIZE_CHANGE
public static final int BOLD_STYLE_CHANGE
public static final int ITALIC_STYLE_CHANGE
public static final int UNDERLINE_STYLE_CHANGE
Constructor Detail |
public JCFontEvent(Object source, int event, Font oldFont, boolean oldUnderline, Font font, boolean underline, boolean fontChanging)
JCFontEvent
.
event
- the eventsource
- a JCFontChooser
classoldFont
- the old fontoldUnderline
- the old underline indicationfont
- the new fontunderline
- the new underline indicationfontChanging
- the font changing indicationMethod Detail |
public int getEvent()
public Font getOldFont()
public boolean getOldUnderline()
public Font getFont()
public boolean getUnderline()
public void setFont(Font font)
FontChanging()
.
font
- new fontpublic void setFont(Font font, boolean underline)
FontChanging()
.
font
- new fontunderline
- underline indicationpublic void setUnderline(boolean underline)
FontChanging()
.
underline
- underline indicationpublic boolean isCancelFontChange()
cancelFontChange
indication.
cancelFontChange
indicationpublic void setCancelFontChange(boolean cancelFontChange)
cancelFontChange
indication.
cancelFontChange
- public boolean isFontChanging()
fontChanging
indication.
fontChanging
indicationpublic boolean isFontChanged()
fontChanged
indication.
fontChanged
indication
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |