|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--com.webcab.chat.gui.TextScroll
This bean represents a multi-line region which can displays text and pictures, customize desktop images,
allow word-wrap control, smooth scrolling. It also allows the user to change font sizes, colors and
styles, play sounds and choose image render quality.
TextScroll is somewhat similar to the basic java.awt.TextArea class, which
draws text on more than just one line. Albeit, this bean extends the Canvas class and
provides much more possibilities in displaying image and text.
The bean has many features, some of them kindly offered by the BeanInfo class as a
convenience for designers. Here are some:
setConfigurationFile for full description.
ScrollArea
ScrollArea, which adds the scrolling bars. You may implement any of these,
according to your requirements. The optimal way to use them is by providing a configuration file wherein
all the settings are defined.
ScrollArea,
setConfigurationFile(java.lang.String),
ColorPicker,
ImageCache, Serialized Form| Inner classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static java.lang.String |
AREA
This constant is the string definition for an area-like behaviour of the componen, being used inside the configuration file. |
static java.lang.String |
CENTER
The constant which specifies the string correspondent of the IMAGE_CENTER
integer constant. |
static short |
DEFAULT_MAX_FONT_SIZE
This is the absolute maximum font size that a user or developer may access. |
static int |
DEFAULT_MAX_NO_LINES
The default maximum size of lines the scroll area can hold. |
static short |
DEFAULT_MIN_FONT_SIZE
This is the absolute minimum font size that a user or developer may access. |
static java.lang.String |
FAST
The constant which specifies the string correspondent of the java.awt.Image.SCALE_FAST
integer constant. |
static int |
IMAGE_CENTER
This constant is sent as an argument to setDisplayFlag in order
to specify that the background image will be centered. |
static java.lang.String |
IMAGE_SIGN
|
static int |
IMAGE_STRETCH
This constant is sent as an argument to setDisplayFlag in order
to specify that the background imagez will be stretched to fit the desktop. |
static int |
IMAGE_TILE
This constant is sent as an argument to setDisplayFlag in order
to specify that the background image will be tiled. |
java.lang.String[] |
imageDefinitions
|
static java.lang.String |
LIST
This constant is the string definition for an list-like behaviour of the component, being used inside the configuration file. |
static int |
SELECT_ALLOW
This constant tells the setSelectFlag method
that this bean behave like a list, by allowing mouse selection. |
static int |
SELECT_NONE
This constant tells the setSelectFlag method
that this bean behave like a text area. |
static java.lang.String |
SIZE_SIGN
|
static java.lang.String |
SMOOTH
The constant which specifies the string correspondent of the java.awt.Image.SCALE_SMOOTH
integer constant. |
static java.lang.String |
STRETCH
The constant which specifies the string correspondent of the IMAGE_STRETCH
integer constant. |
static int |
TEXT_OVER
Not implemented yet. |
static int |
TEXT_WITH
Not implemented yet. |
static java.lang.String |
TILE
The constant which specifies the string correspondent of the IMAGE_TILE
integer constant. |
static int |
VALIGN_AREA
The vertical alignment is specified as to scroll upwards, like a scrolling area. |
static int |
VALIGN_LIST
The vertical alignment is specified as to scroll downwards, like a standard list. |
| 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 | |
TextScroll()
|
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
By adding an ActionListener to an instance of this bean, an actionPerformed (ActionEvent) method will be invoked every time the user double-clicks inside the working area. |
void |
addNotify()
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
addScrollAreaListener(ScrollAreaListener l)
This method registers a ScrollArea specific listener object. |
void |
addString(java.lang.String string)
Adds a new line to the text. |
void |
addString(java.lang.String string,
int mode)
Add a new line and marks with the mode flag. |
void |
changeImage(int backgroundNumber)
Changes the background image to the indexth one. |
void |
changeImage(int backgroundNumber,
int displayFlag,
int stretchMode)
Changes the background image to the indexth one, in the specified
display mode and stretch type. |
void |
delAll()
Clears the list of all of its elements. |
void |
delItem(int index)
Deletes the indexth line numbe. |
void |
destroy()
Disposes all resources this bean might use. |
void |
disposeConfigurationDialog(ConfigurationDialog givenDialog)
This method is called only by the configuration dialog object created by TextScroll itself. |
java.applet.Applet |
getApplet()
If you have specified an applet in setApplet, this method will
return its pointer. |
java.awt.Color |
getBackgroundColor()
Gets the color of the background. |
java.awt.Image |
getBackgroundImage()
Gets the image as it appears on the background. |
java.awt.Image |
getBackgroundImageAt(int index)
Gets one of the images that are in the desktop images list. |
int |
getBackgroundNumber()
Gets the index number of the desktop image. |
java.awt.Color[] |
getColorTable()
Gets the background, text, highlighted text and links color in a java.awt.Color array. |
boolean |
getConfigurable()
If this method returns true then right or middle mouse button cliking on the desktop will pop a configuration dialog up. |
java.lang.String |
getConfigurationFile()
Gets the name of the configuration file. |
int |
getDisplayFlag()
Gets the flag for displaying the desktop image. |
java.awt.Color |
getHighlightColor()
Gets the color that the user wishes to use for highlighted text. |
java.lang.String |
getItem(int index)
Gets the line at the specified index. |
int |
getItemCount()
Gets the number of lines this bean has. |
java.awt.Color |
getLinkColor()
Gets the color that the user wishes to use for Internet links. |
int |
getMaxFontSize()
Returns the value of the maximum font size that the user can choose inside the configuration dialog. |
int |
getMaxNoLines()
Gets the maximum limit of the number of lines this component may display. |
int |
getMinFontSize()
Returns the value of the minimum font size that the user can choose inside the configuration dialog. |
java.awt.Dimension |
getMinimumSize()
This is the overriden method from java.awt.Component which returns
whatever is specified by setMinimumSize. |
int |
getNoBackgrounds()
Gets the number of total desktop images. |
java.awt.Dimension |
getPreferredSize()
Returns the minimum size returned by getMinimumSize. |
int |
getSelectedIndex()
If the bean is in the list mode, then this method returns the index of the selected line. |
java.lang.String |
getSelectedItem()
If the bean is in the list mode, then this method returns the selected line. |
int |
getSelectFlag()
Returns SELECT_NONE if the bean acts like a text area or SELECT_ALLOW if the
bean acts like a list. |
int |
getStretchMode()
Gets the rendering method for the desktop image. |
java.awt.Color |
getTextColor()
Gets the default color of the text, as selected by the user. |
java.awt.Font |
getTextFont()
Gets the current text font. |
int |
getValignMode()
Informs on the type of alignment this area provides. |
boolean |
getWordWrap()
Returns true if the text is being word wrapped or false otherwise. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
paint(java.awt.Graphics g)
|
void |
removeActionListener(java.awt.event.ActionListener l)
This method unregisters an ActionListener object. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
removeScrollAreaListener(ScrollAreaListener l)
This method unregisters a previously registered ScrollArea listener object. |
void |
setApplet(java.applet.Applet applet)
If you wish to use this bean inside an applet, register it through this method. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color of the rendering surface. |
void |
setBounds(int x,
int y,
int w,
int h)
|
void |
setColorTable(java.awt.Color[] colorTable)
Sets all the colors - background, text, highlighted text and links - to the ones specified in the java.awt.Color array. |
void |
setConfigurable(boolean configurable)
If set to false, the configuration dialog will not be accessible when right clicking on the
desktop. |
void |
setConfigurationFile(java.lang.String url)
This method specifies the URL location of the configuration file, where all the startup settings are being specified. |
void |
setDisplayFlag(int displayFlag)
Sets a flag for displaying the desktop image. |
void |
setFinalString(java.lang.String string,
java.lang.String headerString)
The documentation for this method is not public. |
void |
setHighlightColor(java.awt.Color color)
Sets the color of the highlighted text. |
void |
setItemAt(java.lang.String item,
int index)
Changes the value of the indexth line number to item. |
void |
setLinkColor(java.awt.Color color)
Sets the color of the Internet links. |
void |
setMaxFontSize(int maxFontSize)
Sets the maximum font size that the user can configure from the Configuration Dialog. |
void |
setMaxNoLines(int maxNoLines)
Defines the maximum limit of the number of lines this component may display. |
void |
setMinFontSize(int minFontSize)
Sets the minimum font size that the user can configure from the Configuration Dialog. |
void |
setMinimumSize(java.awt.Dimension size)
Defines the minimum layout size of this component. |
void |
setSelectedIndex(int selectedIndex)
Changes the selection bar to the specified line number. |
void |
setSelectFlag(int value)
Determines whether this bean should act like a normal text area or like a list. |
void |
setStretchMode(int stretchMode)
This method sets the rendering method for the desktop image. |
void |
setString(java.lang.String string,
java.lang.String headerString)
The documentation for this method is not public. |
void |
setTextColor(java.awt.Color color)
Sets the default color of the rendered text. |
void |
setTextFont(java.awt.Font font)
Selects a new font for the text. |
void |
setValignMode(int mode)
This method specifies the way new elements added to the area should be laid out. |
void |
setWordWrap(boolean wordWrap)
Enable word wrapping, so all text be seen on the screen. |
void |
update(java.awt.Graphics g)
|
| Methods inherited from class java.awt.Canvas |
getAccessibleContext |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_MAX_NO_LINES
setMaxNoLines(int),
getMaxNoLines()public static final int SELECT_NONE
setSelectFlag method
that this bean behave like a text area.setSelectFlag(int),
getSelectFlag()public static final int SELECT_ALLOW
setSelectFlag method
that this bean behave like a list, by allowing mouse selection.setSelectFlag(int),
getSelectFlag()public static final int VALIGN_AREA
setValignMode.setValignMode(int),
getValignMode()public static final int VALIGN_LIST
setValignMode.setValignMode(int),
getValignMode()public static final int IMAGE_CENTER
setDisplayFlag in order
to specify that the background image will be centered.setDisplayFlag(int),
getDisplayFlag()public static final int IMAGE_TILE
setDisplayFlag in order
to specify that the background image will be tiled.setDisplayFlag(int),
getDisplayFlag()public static final int IMAGE_STRETCH
setDisplayFlag in order
to specify that the background imagez will be stretched to fit the desktop.setDisplayFlag(int),
getDisplayFlag()public static final java.lang.String LIST
List".setValignMode(int)public static final java.lang.String AREA
Area".setValignMode(int)public static final java.lang.String CENTER
IMAGE_CENTER
integer constant. It is used in the configuration file in order to recognize settings for
DISPLAY_FLAG value. See setConfigurationFile for a full description. The value
of this constant is "Center".setConfigurationFile(java.lang.String)public static final java.lang.String TILE
IMAGE_TILE
integer constant. It is used in the configuration file in order to recognize settings for
DISPLAY_FLAG value. See setConfigurationFile for a full description. The value
of this constant is "Tile".setConfigurationFile(java.lang.String)public static final java.lang.String STRETCH
IMAGE_STRETCH
integer constant. It is used in the configuration file in order to recognize settings for
DISPLAY_FLAG value. See setConfigurationFile for a full description. The value
of this constant is "Stretch".setConfigurationFile(java.lang.String)public static final java.lang.String SMOOTH
java.awt.Image.SCALE_SMOOTH
integer constant. It is used in the configuration file in order to recognize settings for
STRETCH_MODE value. See setConfigurationFile for a full description. The value
of this constant is "Smooth".setConfigurationFile(java.lang.String)public static final java.lang.String FAST
java.awt.Image.SCALE_FAST
integer constant. It is used in the configuration file in order to recognize settings for
STRETCH_MODE value. See setConfigurationFile for a full description. The value
of this constant is "Fast".setConfigurationFile(java.lang.String)public static final int TEXT_OVER
public static final int TEXT_WITH
public static final short DEFAULT_MIN_FONT_SIZE
4pt.public static final short DEFAULT_MAX_FONT_SIZE
250pt.public static final java.lang.String SIZE_SIGN
public static final java.lang.String IMAGE_SIGN
public java.lang.String[] imageDefinitions
| Constructor Detail |
public TextScroll()
| Method Detail |
public void addActionListener(java.awt.event.ActionListener l)
addScrollAreaListener(com.webcab.chat.gui.ScrollAreaListener)public void removeActionListener(java.awt.event.ActionListener l)
removeScrollAreaListener(com.webcab.chat.gui.ScrollAreaListener)public void addScrollAreaListener(ScrollAreaListener l)
ScrollAreaListener,
addActionListener(java.awt.event.ActionListener)public void removeScrollAreaListener(ScrollAreaListener l)
removeActionListener(java.awt.event.ActionListener)public void setMinimumSize(java.awt.Dimension size)
size - The dimension of the minimum sizegetMinimumSize()public java.awt.Dimension getMinimumSize()
java.awt.Component which returns
whatever is specified by setMinimumSize. There is though a default
reasonable value for the minimum size.getMinimumSize in class java.awt.ComponentsetMinimumSize(java.awt.Dimension)public java.awt.Dimension getPreferredSize()
getMinimumSize.getPreferredSize in class java.awt.ComponentgetMinimumSize()public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in class java.awt.Componentpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in class java.awt.Componentpublic void setApplet(java.applet.Applet applet)
applet - The applet where this component is going to be added.getApplet()public java.applet.Applet getApplet()
setApplet, this method will
return its pointer.setApplet(java.applet.Applet)public void setConfigurationFile(java.lang.String url)
NAME = VALUE lines. The
VALUE may be an integer, a text, a boolean or a font description. Here are the tags you
may use inside a configuration file.
NEW_BACKGROUND = String Adds an image to the list of desktop images, as a URL.
These images become available when you browse the configuration dialog.
See ConfigurationDialog for details. The String parameter may omit the two "-quotes.
STARTUP_IMAGE = Number Specifies the desktop image which should be displayed by default.
The numbering starts from 0 in the same order as the images were been added. Thus, STARTUP_IMAGE = 5
will display the sixth image in the list.
NEW_PICTURE = String Adds a picture to the list of pictures. The pictures list is accessed
to by using an image definition tag.
WORD_WRAP = True/False If the value is True, the text will be word wrapped
so all text be displayed.
DISPLAY_FLAG = Center/Tile/Stretch Sets the way the desktop image is displayed, according
to the setDisplayFlag method.
STRETCH_MODE = Fast/Smooth Sets the way the desktop image will be stretched, according to
the setStretchMode method.
SELECT_FLAG = SELECT_NONE/SELECT_ALLOW Tells the bean whether to act as a list or a as a
text area, according to setSelectFlag.
FONT = String, PLAIN/BOLD/ITALIC/BOLDITALIC, Number Specifies the text area font,
by name, style and size.
backgroundColor = Red, Green, Blue Specifies the background color in RGB format. As an
alternative, you may avoid writing all the color codes, by specifying the name of the color you want to use.
Choose one of the following: Black, Blue, Red, Cyan, Magenta, Yellow, White, Gray, LightGray, DarkGray, Pink,
Orange and Green.
textColor = Color Selects the color for the normal text, in the same format as
the background color.
highlightColor = Color Selects the color for the highlighted text, in the same format as
the background color.
linkColor = Color Selects the color for web links, in the same format as
the background color.
Configuration File for ScrollArea NEW_BACKGROUND = "http://webcab.co.uk/chat/library/back1.jpg" NEW_BACKGROUND = "library/back2.jpg" - This file is loaded relative to the applet's code base NEW_BACKGROUND = "http://webcab.co.uk/chat/library/open.jpg" NEW_BACKGROUND = "http://webcab.co.uk/beans/gifs/cigar_med_wte.gif" NEW_BACKGROUND = "http://webcab.co.uk/chat/library/back5.jpg" NEW_BACKGROUND = "http://webcab.co.uk/chat/library/back6.jpg" STARTUP_IMAGE = 5 WORD_WRAP = TRUE DISPLAY_FLAG = TILE STRETCH_MODE = FAST SELECT_FLAG = SELECT_ALLOW FONT = "SansSerif", PLAIN, 14 backgroundColor = 150, 150, 250 textColor = 0, 0, 120 highlightColor = 255, 0, 255 linkColor = 0, 120, 255 NEW_PICTURE = "http://webcab.co.uk/beans/gifs/cigar_med_wte.gif" NEW_PICTURE = "http://webcab.co.uk/beans/gifs/cmtcigars_logo.jpg" NEW_PICTURE = "http://webcab.co.uk/beans/gifs/animcigar.gif" NEW_PICTURE = "http://webcab.co.uk/chat/library/pictures/happy1.gif" NEW_PICTURE = "http://webcab.co.uk/chat/library/pictures/happy2.gif" NEW_PICTURE = "http://webcab.co.uk/chat/library/pictures/happy3.gif"
getConfigurationFile(),
ConfigurationDialogpublic java.lang.String getConfigurationFile()
StringsetConfigurationFile(java.lang.String)public void setConfigurable(boolean configurable)
false, the configuration dialog will not be accessible when right clicking on the
desktop.configurable - The true/false boolean.getConfigurable()public boolean getConfigurable()
setConfigurable(boolean)public void setValignMode(int mode)
mode parameter should be given the VALIGN_AREA value. In this case,
any new line added will display at the bottom of the rendering surface, and all the previous lines will
be scrolled up to fit it in.
In case you wish the area act in a List-like mode, use the VALIGN_LIST value,
allowing the first elements to be added from top to bottom.
Any other values will be ignored.
getValignMode()public int getValignMode()
setValignMode(int)public void setSelectFlag(int value)
value - If this is equal to SELECT_NONE, the bean acts like a text area, if it
equals to SELECT_ALLOW, the bean acts like a list. The latter allows you to select
each separate line individuallygetSelectFlag(),
SELECT_NONE,
SELECT_ALLOWpublic int getSelectFlag()
SELECT_NONE if the bean acts like a text area or SELECT_ALLOW if the
bean acts like a list.setSelectFlag(int),
SELECT_NONE,
SELECT_ALLOWpublic boolean getWordWrap()
true if the text is being word wrapped or false otherwise.setWordWrap(boolean)public void setWordWrap(boolean wordWrap)
wordwrap - True to enable wordwraping, false to disable it.getWordWrap()public int getSelectedIndex()
getSelectedItem(),
setSelectedIndex(int)public java.lang.String getSelectedItem()
getSelectedIndex()public int getItemCount()
public java.lang.String getItem(int index)
index line.getSelectedItem()
public void setItemAt(java.lang.String item,
int index)
indexth line number to item.
Could result in an ArrayIndexOutOfBoundsException.item - The new string valueindex - The line numberpublic void delItem(int index)
indexth line numbe.index - The line to be deleteddelAll()public void delAll()
delItem.delItem(int)public void setSelectedIndex(int selectedIndex)
selectedIndex - The index to change to. If -1, no line is selectedgetSelectedIndex()public int getBackgroundNumber()
0.getBackgroundImage()public java.awt.Image getBackgroundImage()
getBackgroundNumber(),
getBackgroundImageAt(int)public java.awt.Image getBackgroundImageAt(int index)
0.index - The index of the desktop image.indexth background image, or null if out of range.getBackgroundImage()public int getNoBackgrounds()
getBackgroundNumber()public void setMaxNoLines(int maxNoLines)
maxNoLines - The maximum number of lines.getMaxNoLines()public int getMaxNoLines()
setMaxNoLines(int)public void setDisplayFlag(int displayFlag)
IMAGE_CENTER - Centers the image on the background
IMAGE_TILE - Tiles the image on the background
IMAGE_STRETCH - Stretches the image on the background so it fits the desktop
displayFlag - One of the above flagsgetDisplayFlag(),
IMAGE_CENTER,
IMAGE_TILE,
IMAGE_STRETCHpublic int getDisplayFlag()
IMAGE_CENTER - The image is centered on the background
IMAGE_TILE - The image is tiled on the background
IMAGE_STRETCH - The image is stretched on the background so it fits the desktop
setDisplayFlag(int),
IMAGE_CENTER,
IMAGE_TILE,
IMAGE_STRETCHpublic void setStretchMode(int stretchMode)
IMAGE_STRETCH. You may choose one of the following:
java.awt.Image.SCALE_FAST - Scales fast with poor quality
java.awt.Image.SCALE_SMOOTH - Scales slow with smooth rendering
stretchMode - One of the above constantsgetStretchMode()public int getStretchMode()
IMAGE_STRETCH. You may get one of the following:
java.awt.Image.SCALE_FAST - The image is scaled fast with poor quality
java.awt.Image.SCALE_SMOOTH - The image is scaled slow with smooth rendering
0, otherwise it returns 1.setStretchMode(int)
public void changeImage(int backgroundNumber,
int displayFlag,
int stretchMode)
indexth one, in the specified
display mode and stretch type.backgroundNumber - The number of the new background image to be displayed.displayFlag - The display flag as it is defined in setDisplayFlagstretchMode - The stretch mode as it is defined in setStretchModegetNoBackgrounds(),
setDisplayFlag(int),
setStretchMode(int),
changeImage(int)public void changeImage(int backgroundNumber)
indexth one.backgroundNumber - The number of the new background image to be displayed.getNoBackgrounds(),
changeImage(int, int, int)
public void setBounds(int x,
int y,
int w,
int h)
setBounds in class java.awt.Componentpublic java.awt.Color getBackgroundColor()
getColorTable()public java.awt.Color getTextColor()
getColorTable()public java.awt.Color getHighlightColor()
getColorTable()public java.awt.Color getLinkColor()
getColorTable()public java.awt.Color[] getColorTable()
java.awt.Color array.setColorTable(java.awt.Color[]),
getBackgroundColor(),
getTextColor(),
getHighlightColor(),
getLinkColor()public void setColorTable(java.awt.Color[] colorTable)
java.awt.Color array.colorTable - The array of colorsgetColorTable()public void setBackgroundColor(java.awt.Color color)
setColorTable(java.awt.Color[])public void setTextColor(java.awt.Color color)
setColorTable(java.awt.Color[])public void setHighlightColor(java.awt.Color color)
setColorTable(java.awt.Color[])public void setLinkColor(java.awt.Color color)
setColorTable(java.awt.Color[])public int getMinFontSize()
setMinFontSize(int)public int getMaxFontSize()
setMaxFontSize(int)public void setMinFontSize(int minFontSize)
getMinFontSize()public void setMaxFontSize(int maxFontSize)
getMaxFontSize()public void setTextFont(java.awt.Font font)
font - The new text fontgetTextFont()public java.awt.Font getTextFont()
setTextFont(java.awt.Font)public void addNotify()
addNotify in class java.awt.Canvaspublic void update(java.awt.Graphics g)
update in class java.awt.Componentpublic void paint(java.awt.Graphics g)
paint in class java.awt.Canvaspublic void addString(java.lang.String string)
string - The String object to be added.
public void addString(java.lang.String string,
int mode)
addString(java.lang.String)
public void setFinalString(java.lang.String string,
java.lang.String headerString)
setString(java.lang.String, java.lang.String)
public void setString(java.lang.String string,
java.lang.String headerString)
setFinalString(java.lang.String, java.lang.String)public void disposeConfigurationDialog(ConfigurationDialog givenDialog)
disposeConfigurationDialog (this), from the body of the
ConfigurationDialog created by this TextScroll instance.givenDialog - The local ConfigurationDialogConfigurationDialogpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void destroy()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||